Week 15 - Networking and Communications
Build a wired and/or wireless network connecting at least two processors.
Steps:
* Networking exercise
* Design a network
Networking exercise
I started with something simple to understand well the topic: I connected two Arduino Leonardo and playing with the serial. I loaded the same code on both, just changing the name to differentiate them (Serial and Serial1).

I program them to comunicate each other what I write in the computer and works!

Design a network
I decided to focus on programming and save time and microcontrollers by using some of the boards that I had already prepared in the previous weeks. Would be greate to use my array, but there wasn't enough pin free, so I use the others two boards.

I use a Master_reciver and Slave_sender exercise. I use an Arduino uno as FabISP and I use the arduino IDE for programming.


But in my board I don't have an easy access to the I2C pin because I design them with other intentions. So I analize them and I decide to leave this interesting way and do a serial networking.

I create 2 sketches on Arduino IDE: network_out for the board on the left and network_in for the board on the right. My right board sand a value every second and the left board recive this value and read it as an input that switch on and off his led. As you can see from the video below, if you disconnect the RX-TX wire the led remain with the last information he had recived.


RETURN UP
← week 14 / Composite | week 16 / Interface and Application Programming → |
---|