How do i connect the SG90 to the raspberry pi 2b and then make an code for it in the terminal.
And can someone tell me ho i run the file.
I wod prefer if the code was an python code(.py).
How do i connect the SG90 to the raspberry pi 2b and then make an code for it in the terminal.
And can someone tell me ho i run the file.
I wod prefer if the code was an python code(.py).
Adafruit produce a servo hat that will give you all you need, they even provide a Python library for it. see https://learn.adafruit.com/adafruit-16-channel-pwm-servo-hat-for-raspberry-pi/
The details on their web site should answer your questions.