This will be the repository for the Raspberry pi running Johnny-five script containing simple servo motor control code using toggle switch.
For the final project in our class.
- Raspberry Pi (at least 3 Model B)
- Servo Motor (a small one will do)
- Relay
- Toggle Switch (SPDT)
- Male-to-Female Jumping Wires
- Small Breadboard
- Refer to the Pin Information here: https://github.com/nebrius/raspi-io/wiki/Pin-Information
- Connect the DC IN and GND of both the servo motor and the toggle switch to the appropriate 5V and GND GPIO ports of the Pi
- Use method 2 from this link: https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/
- Turn on pi, and run.
Please do comment here or send me a message. Thanks!