Serial Communication between 2 satshakits
In the previous assignment we are connecting our board basically with hardware serial interface, using the TX and RX in the communication with the computer. This example is the same to established from the communication with our Fab ISP. Serial Peripheral Interface (SPI), it is only intended for short distance communications within a single device. In this time I will send and receive data between two Satshakits, using the “software Serial” (I²C) library from arduino IDE.
About I2C: The Inter-integrated Circuit (I2C) Protocol is a protocol intended to allow multiple “slave” digital integrated circuits (“chips”) to communicate with one or more “master” chips. Like the Serial Peripheral Interface (SPI), it is only intended for short distance communications within a single device. Like Asynchronous Serial Interfaces (such as RS-232 or UARTs), it only requires two signal wires to exchange information. https://learn.sparkfun.com/tutorials/i2c
I²C (Inter-Integrated Circuit), pronounced I-squared-C, is a multi-master, multi-slave, single-ended, serial computer bus invented by Philips Semiconductor (now NXP Semiconductors). It is typically used for attaching lower-speed peripheral ICs to processors and microcontrollers in short-distance, intra-board communication. Alternatively I²C is spelled I2C (pronounced I-two-C) or IIC (pronounced I-I-C).
I found this program that explain a little bit the big thematic arround serial Communication. Arduino Tutorial #10: Arduino to Arduino I2C
What I did
1. I connect directly the satshakits trying to upload the code, i have some problems to uploading the code I has some Ardunio error note
Troubleshooting : I connect directly the satshakits trying to upload the code, i have some problems to uploading the code I has some Arduino error note the code in the slave has a some wrong word , In fact I have some type error. 3, the connection with the SDA and SCL was in the wrong direction. Be Careful !!!! the TX is always connected with RX of the satcha and the RX is connected with TX! Well this problem takes me the whole day to discover, why I can not upload my program if the jumper ar well-connected !!!
After correcting he hold problems I could communicate my Gyro SK with the AC2016 (final Project Board. As you can see in the video I can communicate both boards pressing the Letter H for high and the letter L. low.