natalie haddad
fab academy 2012

networking and communications

hello serial bus

after downloading the code for the hello bus i edited the C code 3 times to account for the 3 different nodes i made.
the first node was '0' so i edited the line #define node_id '0'
then i compiled the code sudo make -f hello.bus.45.make
and flashed the board sudo make -f hello.bus.45.make program-usbtiny
i switched the FabISP to node 1, changed the code again #define node_id '1'
then compiled it sudo make -f hello.bus.45.make
flashed itsudo make -f hello.bus.45.make program-usbtiny
and finally edited the code one more time #define node_id '2'
recompiled it sudo make -f hello.bus.45.make
and flashed itsudo make -f hello.bus.45.make program-usbtiny

once all 3 boards were programmed, i opened up terminal and ran term.py
python term.py /dev/tty.usbserial-FTF3M8HK 9600

once the program was running i could type '1' and all three boards would flash and node 1 would flash again. this reaction was consistent when typping '1', '2', and '3'.
**node 1 did not show on the screen but the LED reacted on the board when it was pressed.

video available here.