top of page
This is the program for the Simple Wifi Signal Dial with an RC Servo, which is used in it's respective project as well as activity 4001-act11. This is what makes the WiFi signal control the servo arm
Program
---
Simple Wifi Signal Metre with an RC Servo 4001-act11
---
prog_vars =
d/run_no 0
d/arm_angle 0
prog_vars.
prog_start =
pclear
"4001-act11 Simple Wifi Signal Metre with an RC Servo Program"
svp a1 0
prog_start.
prog_loop =
-- Calc the arm angle.
mapi -90 -30 0 180 /s_wifisig -> /arm_angle
-- Set the servos arm
svp a1 /arm_angle
-- Display the Wifi Signal Strength
"Run /run_no Wifi signal /s_wifisig Arm /arm_angle"
inc /run_no
prog_loop.
prog_stop =
print "Bye"
svp a1 0
prog_stop.
bottom of page