Week 14 - Networking and Communications

Assignment: design and build a wired and/or wireless network connecting at least two processors

trying out the example boards

At first I started out by trying the hello.45.bus boards. I made the boards in the modela and assembled them. I tried the C program first just with a single node to make sure it was working and after that I programmed the other boards as well

I discoverd a program called coolterm wich I found really useful. A nice feature it has is being able to see the data in hex CoolTerm link

This photo shows how the circuit is hooked up when programing

Implementing networking in the final project

In the final project I will have three pcb board each one with their unique role. To be able to make them network I will assign them there ID. I will then have one master program that will be running on linux that talks to all the boards.

My plan is to use this week to work on the networking in my final project. I will have one master program that talks to three microcontrollers that will have their own Id.

list of boards ID

  • Speaker board ID = "S"
  • magnetic board ID = "M"
  • button board ID = "B"

  • For the button and magneting board there will be communication both ways from RX and TX but the speaker board will only be receiving data from RX.

    I made the program for the magnet board in arduino IDE and used cool term to see if it was working. I sent the ID "M" and got back a "Y" which means the magnet is present. Then I took the magnet and sent "M" from cool tem and got "N" so I got that working. The button board works in a similar way, I would be able to send either "B" or "M" depending on what status I wanted to get. I did not manage to make the speaker program and will do that later.

  • The magnet board program - Magnet.ino