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.
Duration : 0:4:30
Leave a Reply
You must be logged in to post a comment.