View Single Post
  #53   Spotlight this post!  
Unread 08-06-2016, 11:47
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 520
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: swerve drive with arduino mega 2560

Quote:
Originally Posted by beckster1999 View Post
it's definitely the right port, the "blink" example worked
Ok, did you wire pin(9) of the Mega to the PWM signal of the motor controller?
Did you wire GND of the Mega to the PWM Gnd of the motor controller?
You can wire the PWM Red to +5v of the Mega, but I am pretty sure it is not required.

The Sweep servo program uses pin(9) in the sketch.

*As a debug tool, you could add code to turn on, or blink the LED on pin 13, so you would know that the program is running.
__________________
The sooner we get behind schedule, the more time we have to catch up.


Last edited by tr6scott : 08-06-2016 at 11:53. Reason: Added note about the LED.
Reply With Quote