Servo Types: The difference between a standard (regular) servo and a continuous (robot) servo:
A continuous rotation servo (sometimes called a full rotation or 360° servo) looks like a regular hobby servo. While a regular servo motor only turns over a narrow range, with precise control over position, a continuous rotation servo has a shaft that spins continuously, with control over its speed and direction.
How pulses change the direction of the motor:
Controlling Servo Motors (with the servo bonnet)
Enable I2C (what is I2C?)
Power Down the Pi. You may damage or destroy it if you don't power down.
Add tape to the bottom of the motor controller to prevent a short on some unused pi pins.
Add the board to the top of the pi, as shown below. Do not reverse of the orientation of the board
Add battery pack and servo. Note which channel the servo is connected to. In this example it’s 0.
Install Servo Bonnet software:
sudo pip3 install adafruit-circuitpython-servokit
Additional instructions here if needed: https://learn.adafruit.com/adafruit-16-channel-pwm-servo-hat-for-raspberry-pi?view=all
Example to control one continuous rotation servo(hooked to zero) and one standard (hooked to one):
servo.py
Challenges:
Attach wheels and/or brackets to the servos and see what you can move.
Use a button or sensor to set off a servo movement
Make a servo move based on API data. Example: moving an arm based on weather data
Can you control a motor over the internet with a custom interface?