Other types of serial communication

Arduino does not only support RS-232 serial communication, but also supports two more communication protocols:

  • Serial Peripheral Interface (SPI): A special master/slave serial communication protocol used in short distance communications and very popular among different types of sensors. Its main disadvantage is the need for four pins to establish the communication channel.
  • Inter-Integrated Circuit (I2C): A bus-based master/slave communication protocol allowing for multimasters and multislaves. It is mainly aimed at connecting low speed devices.

They are out of the scope of this book and I will simply give you some links in case you want to investigate a little more by yourself:

Arduino easily supports both of these protocols by using dedicated libraries that come included in the Arduino programming environment. The use of external libraries is a topic that we will see in a later section of this chapter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset