Using 4 ch motor + 16 servo shield for Arduino by doit.am

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey guys, so i have this shield (imgs and schematic in pdf attached), that i bought for a mobile robot arm project. So I contacted the manufacturers (doit.am) asking them for the libraries to control the servo and motor pins. They said there are no libraries required as the servos operate on IIC or some such thing. Please help me out. 
I have used arduinos with multiple sensors, shields and libraries but don't know how to do this. Any documentation/code examples would also be well appreciated.

 

Link to manufacturer's website:  https://github.com/SmartArduino/SZDOITWiKi/wiki/2-4ch-DC-motor-%26amp%3B-16ch-servo-shield---motor-and-servo-shield

 

EDIT 1: Found this on another forum, still on the process of testing out library: https://learn.adafruit.com/16-channel-pwm-servo-driver/using-the-adafruit-library .

But still no idea on how to operate the motors via shield. Cheers

Last Edited: Mon. Jun 24, 2019 - 04:45 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Please provide a link to the shield, doit.am does not have the shield listed.....

in other words, where did you buy it?

 

Ok, I see the link to the wiki, but that seems to be all they have, so must be a work in progress.

Most likely you are SOL.

 

Jim

 

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...

 

 

 

 

Last Edited: Mon. Jun 24, 2019 - 04:58 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Some poking around found this: https://github.com/SmartArduino/...

 

Jim

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...

 

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The key thing there seems to be the identity of:  PCA9685 as shown in detail at  https://learn.adafruit.com/16-channel-pwm-servo-driver/downloads  which includes links to things like the datasheet: https://cdn-shop.adafruit.com/da... so it's clearly an RGB LED driver but as that uses PWM too I guess they can use it for servo control too. The key thing in servos is setting up a 20ms period then making a high pulse that lasts between 1ms to 2ms of that.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Alright guys, here's the complete reply, with some precautions for future users.

The shield can be used via the library available at https://learn.adafruit.com/16-channel-pwm-servo-driver/using-the-adafruit-library.

(Shoutout to @djsfantasi ).

NOTE : One of the main things to ensure is that the 5v power supply for the servos must be separate from that of the arduino, as it messes up the servos somehow.

The motors can be powered via the given slots on the shield. All you have to do is supply the DIR and PWM values to the 1st 8 available arduino pins (after pin 0 and 1, ie, 2-9). It is pretty easy to figure out which pin controls which channel.

NOTE: Since the motor pins are available via male headers stacked very close together, i would suggest using female headers/jumper wires before connecting them to your motors. I burned my 1st shield's motor driver due to the +ve and -ve ending up shorted together.

 

Thanks for the replies everyone and best of luck to you guys reading this