In the last project I simply lit up an LED and a Neopixel strip, here we look at using multiple Servos.
Adafruit simplify things by having a supplied Servo module, where we can supply an angle (or direction/speed if continuous 360 servos).
from adafruit_seesaw.seesaw import Seesaw
from adafruit_seesaw.pwmout import PWMOut
from adafruit_motor import servo
import board
The servo pins are the pins 17, 16, 15, 14, controlled via i2c via their "Seesaw" chip.
i2c = I2C(board.SCL, board.SDA)
seesaw = Seesaw(i2c)
As usual with Servos, we set the position with PWM (50 Hz).
# servo object
pwm = PWMOut(seesaw, 17)
pwm.frequency = 50
my_servo = servo.Servo(pwm)
Once you have a servo object you can simply set it's position:
my_servo.angle = 90
Hey Amazing post ...!
Thanks @makerhacks for sharing 😀
What kind of strength and rigidity does this allow for? Can it flip a switch? Turn on a faucet? Lift a car (kidding)?
The main constraint will be the plastic gears in these little cheap plastic servos :)
Can more heavy duty servos be used with the Adafruit boards? or are they not that easy to plug and play with?
They can, up to 1 amp draw
Imformition is good
Join our Discord Channel to connect with us and nominate your own or somebody else's posts in our review channel.
Help us to reward you for making it ! Join our voting trail or delegate steem power to the community account.
Your post is also presented on the community website www.steemmakers.com where you can find other selected content.
If you like our work, please consider upvoting this comment to support the growth of our community. Thank you.
Hi @makerhacks!
Your post was upvoted by utopian.io in cooperation with steemmakers - supporting knowledge, innovation and technological advancement on the Steem Blockchain.
Contribute to Open Source with utopian.io
Learn how to contribute on our website and join the new open source economy.
Want to chat? Join the Utopian Community on Discord https://discord.gg/h52nFrV