Tutorial 9: SPI Communication
This tutorial is similar to my previous tutorial on I2C communication. This time I show you how to communicate with a DS3234 real time clock (RTC) using SPI communication. ICs communicate with your Arduino via several protocols, SPI being one of them.
The purpose of this tutorial isn't to quickly show you how to get your clock up and running. There are perfectly fine libraries out there that will get your clock up and running in just a few minutes. The purpose of this tutorial is to show you how to read the datasheet of a SPI device and write the relevant code to access the full functionality of the device. This is analogous to my I2C communication tutorial, with a focus on SPI.
If you have made it this far in my Arduino tutorials, congratulations. You have a solid foundation for your projects!