Rachel Legerski - Fab Academy 2015
Networking and Communications
Week 14 Assignment
The assignment for this week is to design and build a wired &/or wireless network connecting at least two processors.
Struggles
- Learning to use python...again! This is a struggle for me because it is not intuitive. I have to open up my notes each time I have to work through the process.
- "Blurt out" a message and the board will "handshake" The message will be sent out and an acknowledgement will be sent. WHAT???
- Network code? I get the idea but I'm not sure how to make it happen.
- When we first tried Python, we got an error message that the computer could not find term.py
- I went back to the class schedule and found it under Input Week. After copying that to our computer, we were in business!
Where to begin?
Persistence and Success
- Gail and I supported each other through this trying process.
- I learned that the command sudo make creates an outfile. It turns the C file into a hex file.
- After the sudo make command, we had to enter the password to send the command to the board.
- After sudo make program-avrisp2, we ran python to talk to both boards sudo python term.py /dev/TTYUSB0 9600.
- I was very excited to type in the 0 and watch my first board respond. Unfortunately, when I typed in the 1, the second board flashed but did not acknowledge receipt.
The first picture shows my boards being programmed. The second picture shows all the windows I needed to open to get through this!
Programming Steps
- sudo means run as root (administrator)
- sudo make compiles c file into hexfile
- sudo make program avrisp2 sends the hexfile into the ATTiny using an avrisp2
- After sudo make program-avrisp2, we ran python to talk to both boards (sudo python term.py/dev/ttyUSBO9600.
- sudo python term.py /dev/TTYUSB0 9600 allows the use of python to run term.py using the USB port at 9600 baud
Project Files:
Back To Home