Loading...
Pages: [1]   Go Down
Author Topic: Mega 2560 can't run "Dimmer" example  (Read 505 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I run "Dimmer" example with Mega 2560, but it can't receive or response to the serial data that is sent from processing program. I have UNO, it communicate with processing progarm propably. Any special setup is needed for Mega 2560? Running "Fade", "Digital read serial" example with Mega 2560 are ok, so it should not be the problem of downloading or pin failure. Please help.
Logged

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

i am having the same problem? any help?
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 7
Posts: 3532
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

It might be that the Processing program starts transmitting too soon and so the bootloader on the Mega 2560 never times out (and starts the Dimmer sketch).  Try adding a delay() to the end of the setup() function in the Processing program.  Or check, in the Processing program, that millis() > 5000 (or so) in order to send data over the serial port.
Logged

Copenhagen, Denmark
Online Online
God Member
*****
Karma: 18
Posts: 839
Have you testrun your PDE file today?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, this is the same problem I have reported, too, and for a while I've given up. Thought that hordes of (un)happy Mega2650 owners by now would have provoked Processing to fix their Serial - or tell us about a new driver. Interesting that it works with a UNO, it too uses the new-USB/Serial chip/driver, right?

Seems not so, yet.

I tried the delay - makes no difference.
Logged

Copenhagen, Denmark
Online Online
God Member
*****
Karma: 18
Posts: 839
Have you testrun your PDE file today?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

twwong: Can you try my Arduino/Processing program pair from this post on both your 2560 and UNO and tell us how much/little works, in particular if it is only in one direction?
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 161
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Anyone here was lucky enough to find a solution?
If not, I find this to be quite crazy that the Mega and processing simply do not perform well together and no one has addressed this problem  smiley-mad
Logged

Pages: [1]   Go Up
Print
 
Jump to: