PIR activated Servo using Cutebot Expansion board
ฝัง
- เผยแพร่เมื่อ 2 พ.ย. 2024
- This video demonstrates the use of the PIR motion sensor connected to the input pin on the Elecfreaks Cuteboard expansion board to activated the servo motor to turn through a specific angle. In this set up the PIR Motion sensor from Keyestudio was used. (Any PIR motion sensor would work). The servo is a standard SG90 servo motor (3.3 to 5 V). The servo motor is connected to the servo pin on the expansion board.
**Hint
On start while true (loop), if the condition of the PIR sensor compared to a comparator (logic and if else loop) == 1 (motion detected, the servo motor shaft shall rotate an angle set to 180 C, else shall return to 0 degrees.
Related videos
• Microbit Projects : AI...