help with my project

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Delwig
 
Posts: 2
Joined: Sun Nov 22, 2015 9:15 pm

help with my project

Post by Delwig »

Hello, I need some help,

I have an Arduino Uno and a Adafruit 16-Channel 12-bit PWM/Servo Shield - I2C interface,

I can get them to sweep and go separate, but I need help with making them move simultaneously and also at different times,

For Example, I need 5 servos to move 45 degrees every 48 seconds and return and 5 servos to move 45 degrees every 2 seconds and return and 5 servos to move 45 degrees every 3.5 mins and return.

This is for a phone tapper with stylus pens project.

any help would be greatly appreciated.

Thank you

User avatar
adafruit_support_bill
 
Posts: 88141
Joined: Sat Feb 07, 2009 10:11 am

Re: help with my project

Post by adafruit_support_bill »

This tutorial shows how to control multiple servos simultaneously:
https://learn.adafruit.com/multi-taskin ... 1/overview

User avatar
Delwig
 
Posts: 2
Joined: Sun Nov 22, 2015 9:15 pm

Re: help with my project

Post by Delwig »

only problem with that is i have Adafruit 16-Channel 12-bit PWM/Servo Shield - I2C interface

and the normal arduino code does not seem to work

it has to use the Adafruit PWM Servo Driver Library and i have yet to find a tutorial on that that explains anything more then Pulse Length, setPWMFreq(freq), and setPWM(channel, on, off)

User avatar
adafruit_support_bill
 
Posts: 88141
Joined: Sat Feb 07, 2009 10:11 am

Re: help with my project

Post by adafruit_support_bill »

This shows how to convert degrees to pulselength.
https://learn.adafruit.com/adafruit-16- ... lse-length

And the same multitasking principles apply regardless of which library you use.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”