Networking and Communications
Assignment: Build a wired &/or wireless network with at least two nodes
Networking and Communications Bus
- Simple multiprocessor system with on/off keying
- One wire for communication
- Each node takes a turns controlling the bus
- Node number is complied into the program as an id
- Multi-processor network with an Attiny44
- Talk to one processor with master slave
- The board for each node has the same C code however there is a change to one line of code to give them a different id
Programming nodes
- With the micro-controller connected with the USB
to your computer, connect and the bridge board to
the micro-controller. At the command line enter
make -f hello.bus.45.make
- If no errors occur, with the bridge still connected to the
micro-controller connect the bridge to the
FTDI-cable. At the command line enter
sudo make -f hello.bus.45.make program-usbtiny
- With the bridge still connected to the
micro-controller and the FTDI cable, connect the
node to the bridge.
Change the node_id in the hello.bus.45.c program from 0 to
1 and save. At the command line enter
sudo make -f hello.bus.45.make program-usbtiny
- With the bridge still connected to the
micro-controller and the FTDI cable, connect the next
node to the bridge. Change the node_id in the hello.bus.45.c program from 1 to
2. At the command line enter
sudo make -f hello.bus.45.make program-usbtiny
Programming bus |
Network bus |