Arduino sketch that can program other boards

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
10,168
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 20, 2010

Here is an Arduino sketch I've developed that is able to "copy itself" to other boards it is connected to via serial.

The code can now be found at:
http://github.com/George1024/Arduino-Copier

After you've finished watching this video, take a look at the updated self-replicating version of the sketch: http://www.youtube.com/watch?v=VSCxIg77K6E

It is an implementation of the STK500 protocol within an Arduino sketch. STK500 is used by avrdude and the Arduino IDE to write sketches to AVR chips.

A normal sketch ('BlinkSync' is used in the video) is first compiled and then converted from the Intel Hex format to a series of bytes written in C (by a Python script), which can be inserted into the Copier sketch as the data to be written to the destination Arduinos.
Afterwards, the Copier sketch and the BlinkSync sketch are stuck together, resulting in a sketch that performs both the original task and the copying of that task to other boards.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (CyberGEORGE1024)

  • If Board 1 is the programmer and Board 2 is the 'programee', then they are wired up as follows:

    Board 1 RX -> Board 2 TX

    Board 1 TX -> Board 2 RX

    Board 1 5V -> Board 2 5V

    Board 1 GND -> Board 2 GND

    Board 1 D7 -> Board 2 Reset

    (D7 is Digital Pin 7)

Top Comments

  • What about an Arduino that can programm an "naked" Atmel controller without any bootloader yet??

  • very cool - please post code!

see all

All Comments (9)

Sign In or Sign Up now to post a comment!
  • SuPer lyk..**

  • hehe sounds like a virus :)

  • We can accomplish many awesome things with that.

  • omg....its like the replicators from stargate...

  • Thanks!

  • Do you have a diagram or list for the physical connections between the two boards?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more