Go to Post I believe everyone should give a modicum of repsect to each person they meet for the first time. After that it is up to them as to whether to give you a reason to increase that respect or detract from it. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #38   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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:27.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi