Τα πρωτόκολλα επικοινωνίας I2C και SPI και η υλοποίησή τους σε σύστημα τηλεχειρισμού, με τη χρήση της ηλεκτρονικής πλατφόρμας προτυποποίησης Arduino
The I2C and SPI communication protocols and their implementation in a remote control system, based on the Arduino electronics prototyping platform
View/ Open
Keywords
Πρωτόκολλα ; Arduino ; Τηλεχειρισμός ; Σειριακή επικοινωνίαAbstract
The goal of this master thesis is to introduce and implement the Ι2C and SPI serial communication protocols, which are utilized mainly in embedded systems for data transfer between a microprocessor and its peripheral devices.
In order to investigate the benefits of these two protocols as well their special requirements, during their implementation in real systems, an Arduino prototyping platform including electronics circuit designing and software development was deployed. This project’s purpose was to control remotely 128 digital input pins from the control panel, or through an Ethernet network by a personal computer. A program (sketch) was developed for the Arduino’s microprocessor programming, so that the input pins be able to be controlled from the control panel, while another program was created for the project’s presentation needs, which enables the user to control the input pins from a personal computer.
The 128 digital input pins were acquired by using eight integrated circuits MCP23017. In order these IC s to communicate with Arduino’s microprocessor, the Ι2C bus was utilized.
The connection of Arduino with Ethernet network realized by using the Arduino Ethernet Shield extension board. In order this extension board to communicate with Arduino’s microprocessor, the SPI bus was utilized.
The implementation of I2C and SPI protocols in this remote control application, contributed to reliable communications between Arduino’s microprocessor and these peripheral devices. Moreover, the special advantages of each protocol were brought out, the simplicity when connecting on I2C bus and the high data bit rates through SPI.