Pages: [1]   Go Down
Author Topic: Mega 2560 servo pins & Fio AREF  (Read 911 times)
0 Members and 1 Guest are viewing this topic.
Ft. Worth, Texas
Offline Offline
God Member
*****
Karma: 0
Posts: 591
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

1. What pins are for each timer, to use servos? I'll be putting between 15 and 20 servos on one 2560.

2. To do battery sensing of a 7.4 2S LiPo pack on a FIO, would I just use the analogReference(INTERNAL) and a 25K/10K voltage divider?
Logged

KF5RVR

Dubai, UAE
Offline Offline
Edison Member
*
Karma: 22
Posts: 1675
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi
Servos can go on any pin if you are using the servo library, or try this trick to put all of them on one pin -

http://rcarduino.blogspot.com/2012/08/arduino-serial-servos.html

Duane B

rcarduino.blogspot.com
Logged


Ft. Worth, Texas
Offline Offline
God Member
*****
Karma: 0
Posts: 591
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi
Servos can go on any pin if you are using the servo library, or try this trick to put all of them on one pin -

http://rcarduino.blogspot.com/2012/08/arduino-serial-servos.html

Duane B

rcarduino.blogspot.com

Well it says 48 servos...the mega has 53 digital and 16 analog..which pins go to which timers?

Going to have only 2 or 4 servos themselves. The other 13-15 will be motors running on ESC's....and not just little ones. The robot will be running on 2 optima yellow tops if that says anything. If there's room, might fit 4 of the buggers and ignore the 80 pound penalty. 4 motors would be nice but there's only so much room, and only so much you gain in a pull-pull situation.
« Last Edit: September 01, 2012, 02:24:17 am by magnethead794 » Logged

KF5RVR

Dubai, UAE
Offline Offline
Edison Member
*
Karma: 22
Posts: 1675
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Again - Any Pins, it has nothing to do with timers.

In the background, the servo library is using a timer to tell it when to toggle the servo pins, the actual toggling is done in software and is not connected to timer pins in anyway whatsoever, so just choose which pins you want - any of them - and crack on.

There is a simplified overview of what the library does to manage a servo on any pin here -

http://rcarduino.blogspot.com/2012/01/can-i-control-more-than-x-servos-with.html

Duane B

rcarduino.blogspot.com


Logged


USA, FL
Offline Offline
God Member
*****
Karma: 14
Posts: 688
A life? Where can I download one of those?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is a spreadsheet that states what pins are on what timers. https://spreadsheets.google.com/pub?key=rtHw_R6eVL140KS9_G8GPkA&gid=0
Logged

//LiNK

Pages: [1]   Go Up
Jump to: