View Single Post
  #14   Spotlight this post!  
Unread 10-06-2010, 19:23
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Jaguar/Victor question

As long as you feed them a good PWM signal at 5v levels, they will be very happy and run your motors.

If you miss an update, they will stop your motors.

If you are using a Jaguar:
Pulse between .8 and 2.2 ms long(I think this is correct)
Center is at 1.5 ms long
Update at least every 20 ms
Update no more then every 5 ms

Pulse between 1 and 2 ms
Center is 1.5 ms

Update at least every 50 ms ish - I dont know this exact time, sooner is better
Update no more then every 10 ms

All times are in milliseconds.

Since you are on Arduino and using unsigned integers, you should probably store the speed value as a uint8 and then scale it to a uint16 (microseconds) for output.

Edit: Squirrel beat me to it.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack