how much equipment needed for robot arm control?

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
kgraf
 
Posts: 38
Joined: Fri Nov 16, 2012 4:27 pm

Re: how much equipment needed for robot arm control?

Post by kgraf »

We have more or less decided to get digital servos? Do you recommend a servo
control board? We are considering adding a rotating elbow, so we might have
7 servos to drive.

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

Re: how much equipment needed for robot arm control?

Post by adafruit_support_bill »

I don't have any recommendations there. My experience with digital servos is limited.

kgraf
 
Posts: 38
Joined: Fri Nov 16, 2012 4:27 pm

Re: how much equipment needed for robot arm control?

Post by kgraf »

https://www.adafruit.com/products/81
2 connections for 5V 'hobby' servos connected to the Arduino's high-resolution dedicated timer - no jitter!

Do you sell anything that can handle more than 2 servos?

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

Re: how much equipment needed for robot arm control?

Post by adafruit_support_bill »

Do you sell anything that can handle more than 2 servos?
Will 922 be enough? :wink: https://www.adafruit.com/products/815

kgraf
 
Posts: 38
Joined: Fri Nov 16, 2012 4:27 pm

Re: how much equipment needed for robot arm control?

Post by kgraf »

6 weeks now and we still haven't gotten our servos. we cancelled and re-ordered this week.
Is it possible to create an additional IC2 connection into the arduino mega in addition to pins 20 and 21? we have 3 invensense gyros that don't have SPI - they call sda and scl TWI two wire interface instead of IC2. The gyros only have two selectable addresses. the gyros are invensense mpu-6050

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

Re: how much equipment needed for robot arm control?

Post by adafruit_support_bill »

There is a link to a software i2c library here: http://forums.adafruit.com/viewtopic.php?f=25&t=13722

kgraf
 
Posts: 38
Joined: Fri Nov 16, 2012 4:27 pm

Re: how much equipment needed for robot arm control?

Post by kgraf »

A quick search of the XMega_Manual for TWI and I found
"up to four I2C and SMBUS
compatible two-wire serial interfaces (TWIs);"

Is there an xmega mcu available that has 3 or 4 I2C or TWI connections?
the 2560 board (from adafruit) I am currently using has only 1 at pins 20 and 21.

I do find some two TWI mcu's available
ATxmega256A3
ATxmega192A3
ATxmega128A3
ATxmega64A3
and another reference to 4 TWI
http://www.atmel.com/products/microcont ... xmega.aspx
High Integration — XMEGA devices integrate AES and DES BANNED modules, up to 32 PWM outputs, 8 UART, 4 TWI (I2C) and 4 SPI channels, a CRC generator module, and more.

kgraf
 
Posts: 38
Joined: Fri Nov 16, 2012 4:27 pm

Re: how much equipment needed for robot arm control?

Post by kgraf »

asked and answered:

the ATxmega128A1U has 4 TWI on ports C D E F
pins 15 16 25 26 35 36 45 46

I do have another question:
Our digital servo and analog servo both test fine on a test code - rotate 180 degrees cw and ccw
then we hook the sensor to drive the analog servo and it works fine
then we hook the sensor to the digital servo and nothing happens
we check the signal on a scope and the signal is fine

does this sound like any common problem with analog compared to digital servo performance?

kgraf
 
Posts: 38
Joined: Fri Nov 16, 2012 4:27 pm

Re: how much equipment needed for robot arm control?

Post by kgraf »

asked and answered again!

We resolved the issues it turned out that the solar motors have a lower baud range than the arduino software assumes. The motors still go from 0 to 180 degrees but the difference in the the baud rate is lower. We got the motors to react properly to change in sensor readings so we just need to remember this when fine turning the code.

kgraf
 
Posts: 38
Joined: Fri Nov 16, 2012 4:27 pm

Re: how much equipment needed for robot arm control?

Post by kgraf »

concluding post:
thank you for your responses and info,
the project was moderately successful considering we only worked on it for 4 weeks because of a 7 week delay in getting servo motors. Anyone interested in the project can view the course required documentation at
http://www.eecs.ucf.edu/seniordesign/fa2012sp2013/g10/

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

Re: how much equipment needed for robot arm control?

Post by adafruit_support_bill »

This has to be one of the longest running threads on the forum. Thanks for posting your results! :)

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

Return to “Microcontrollers”