On our Arduino Uno and compatible boards the pins used are: Within these tutorials we consider the Arduino board to be the master and the SPI devices to be slaves. Each SPI device needs a unique SS line back to the Arduino This line tells the device on the bus we wish to communicate with it. This line carries data from the SPI-controlled device(s) back to the Arduino This line carries data from our Arduino to the SPI-controlled device(s) To allow synchronous data transmission, the SPI bus uses four wires. It is a synchronous serial data bus – data can travel in both directions at the same time, as opposed to (for example) the I2C bus that cannot do so. SPI is an acronym for “Serial Peripheral Interface”. In this tutorial things will be kept as simple as possible.īut first of all, what is it? And some theory… The SPI bus may seem to be a complex interface to master, however with some brief study of this explanation and practical examples you will soon become a bus master! To do this we will learn the necessary theory, and then apply it by controlling a variety of devices. This is the first of two chapters in which we are going to start investigating the SPI data bus, and how we can control devices using it with our Arduino systems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |