ASSIGNMENT:
1.) Design and build a wired or wireless network connecting at least two processors.
This assignment I divided in two parts:
- First, I searched basic tutorials that helped me to communicate my Fabduino with an Arduino.
- Second, based on the examples of schedule I designed and build a master board and two slaves boards to test the comunicacón between two microcontrollers.
To start I read this two tutorials where I can see everything I needed to communicate the microcontrollers between them:
Then using basic examples found on the web I have written a code consisting of "request and response", where I experienced the basics communicating two microcontrollers between arduino and my fabduino.
In the video you can see that when from the COM 7 Sending the letter "a" in the COM 8 a request is answered immediately on the monitor serial COM 7 arrives.
This exercise helped me understand the logic of serial communication of the easiest and fastest way to go to realize the asynchronous communication between two microcontrollers Attiny 45.
To download the master and slave boards you can acces:
- Master board click here
- Slave board click here
I used this code to program asynchronous serial communication my three cards (master, 2 slaves).
To program the MASTER first, it is important to note that the address in the code is "0". Subsequently, for SLAVES should appear as "1" and "2" respectively.
To display the operation of the network I used the arduino serial monitor.
In the Fab Lab TECSUP they have provided us with the files to build the FABDUINO. In this link you can download them.
You can download the heavy files (more than 1MB) here from DROPBOX.
- I experimented with two classes of networking exercises.
- Communication between two ATtiny45 was achieved.
- With the serial asynchronous network I need to use the monitor serial of Arduino IDE to test it. Previously tested an application in Ubuntu but did not work.
- I have tried to experiment with the I2C protocol but I could not burn the boards by surface welding problems, I have not been able to find a solution and that is why I have experienced the asynchronous.
- Try to experiment with the I2C protocol.
I'm currently taking this course in FAB LAB TECSUP, in Lima-Perú, through CIDI FADA UNA with the support of CONACYT and PARQUE TECNOLOGICO ITAIPU FOUNDATION
©DESIGNED AND BUILD BY FABIO IBARRA - FAB ACADEMY 2016
EMAIL: fabioibarrab@gmail.com