Back to Parent

Process

For this project I started by individually testing the servo motor and the PIR sensor by starting with code from the DIoT Labs and Guides. From there, I modified the code to work for the range of servo motion I needed, which was limited. For the PIR sensor, I set up the code to publish an event when motion is detected, but also to keep track of when there are long periods of no motion. Lastly I wired an LED to blink 3 times after the long no motion period as a warning. The servo then is activated and rotates to hit the light switch.


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0