Tuesday, September 13, 2016

[RPI GPIO] Mini Servo Test on Raspberry Pi 2

12 September 2016

Mini Servo Test on Raspberry Pi 2 (Python GPIO)

1. Using PWM
Pinout Raspberry Pi 2
Mini Servo -> RPI
orange PWM -> pin11
red vcc -> vcc 5v / pin2 / pin4
brown ground -> gnd / pin6, pin9, pin14...

2. Send python script or write script to RPI


3. Test Run
sudo python servotest.py


Referensi
-pinout = https://www.raspberrypi.org/documentation/usage/gpio-plus-and-raspi2/
-PWM = https://sourceforge.net/p/raspberry-gpio-python/wiki/PWM/
-datasheet mini servo = http://www.micropik.com/PDF/SG90Servo.pdf

No comments:

Post a Comment