Go Down

Topic: Programming Colorduino with Mega2560 serial passthrough (Read 850 times) previous topic - next topic

kd7eir

Jun 10, 2012, 08:56 am Last Edit: Jun 10, 2012, 09:40 am by kd7eir Reason: 1
I spent several days trying in vain to program my Colorduino using my Mega2560.
None of the tutorials that I found seemed to work for me.

This is what I came up with that worked right away:

Mega2560           Colorduino
-----------------------
RX0 (pin 0)  ->>  RXD
TX0 (pin 1)  ->>  TXD
RESET         ->>  DTR
5V              ->>  VDD
GND           ->>  GND

Mega2560
Reset -> 4.7uF capacitor -> 5V

When I uploaded the sketch, as soon as the size of the sketch appeared in the window, I held down the RESET switch on the Mega2560 until the upload completed.

I am now happily able to program my Colorduino using my Mega2560.

winner10920

#1
Jun 10, 2012, 09:31 am Last Edit: Jun 10, 2012, 09:33 am by winner10920 Reason: 1
So basically you just passed the serial along to the colorduino, not isp
when you put the rx to the rx of the colorduino you are actually putting the tx of the 8/16u2 onboard the mega to the colorduinos rx, allowing you to uploud using the regualt arduino bootloader present on the colorduino, and by holding the reset you prevent the mega from responding to the 8/16u2 allowing the colorduino to do so instead

kd7eir

Thank you clarifying that.  I edited the title of my post to reflect what I was actually doing.

Go Up