Go Down

Topic: Program a Arduino with Another Arduino without a USB Cable (Read 2 times) previous topic - next topic

drbogger

Okay, I have a project that is stationary in a totally different room than my computer is at.

I cannot just take the unit down to program it.

Is there a way I can program it with another Arduino chip?

Say "Connect Arduino 1 to Computer, program chip" >> "Bring Arduino 1 to Arduino 2, program Arduino 2"

Is it possible to do something like that?

johnwasser

It's certainly possible but I don't think anyone has implemented it yet.  You would probably need an SD card or external EEPROM to store the program.  You could start with the ArduinoISP sketch and divide it into two parts:  the part that accepts programing from the PC and the part that sends programming to the target processor.  In between you would buffer the data in a file on the SD card or on an EEPROM.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

retrolefty


Okay, I have a project that is stationary in a totally different room than my computer is at.

I cannot just take the unit down to program it.

Is there a way I can program it with another Arduino chip?

Say "Connect Arduino 1 to Computer, program chip" >> "Bring Arduino 1 to Arduino 2, program Arduino 2"

Is it possible to do something like that?


Wouldn't be easier (and much cheaper) to just download the program to the arduino #1 at the PC, then remove the 328p chip and bring it to your arduino #2 and replace the existing 328p chip in arduino #2?

For around $6 you can obtain a spare 328p processor chip with bootloader so you have a spare to play around with.

Lefty

CrossRoads

How about wiring a connecter that you can access? Then walk your laptop over with a AVR ISP programmer (connects to ICSP header) and reprogram that way.

Or if is has an accessible serial port, program it thru its serial port from your laptop and normal bootloader program.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

westfw

The "optiLoader" and "optiFix" sketches I've posted do this.  They rely on the hex file for the target sketch being small enough to fit inside the "programming" sketch, but could be changed to read the hex from from some sort of external media instead.

Go Up