Pages: [1]   Go Down
Author Topic: PWM is dead (Mega)  (Read 427 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, this is my first time working with the Arduino platform.  I took to it pretty well, and my team at school built a bot for a competition.  Everything was working great all semester.  10 pm before the competition our PWM pretty much just quit.  It would just give out junk.  We unplugged every other system besides the motors and the motor shield, and it still didn't work.  Then we took an Uno board we had, with the exact same code and the same motor shield, and it worked great.  My only guess is that the PWM circuit on the Mega got fried.  Before we trash the board, just want to know if anyone else has encountered this problem before and if you found a fix.  We'd also like to wipe the board and start over or do a hard reset, but we don't know how.  Any help or suggestions?
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 199
Posts: 12768
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you able to upload Sketches to the dead board?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, in fact we can still read sensor values from a serial print, and it's calling the correct functions to run the motors (we even set it to JUST go forward).  And like I said, same code, same motors and motor shield, it works great with the Uno.

Correction, I said it was the same code, the pins were changed, i.e. they were plugged into the correct pwm pins on their respective boards.
« Last Edit: March 22, 2011, 01:25:47 pm by dedbot » Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 199
Posts: 12768
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


If you can, try running something very simple like fade...

http://www.arduino.cc/en/Tutorial/Fading
http://arduino.cc/en/Tutorial/Fade

Does that work?

On the dead board, do the PWM pins work as normal digital pins?  Are you able to turn an LED on / off using the PWM pins?
Logged

Pages: [1]   Go Up
Jump to: