Sulabh Sethi · Blog ← Main Site

All tags / Protocols

Tagged “Protocols” (2)

EmbeddedI2CArduinoProtocolsElectronics

I2C Protocol, Explained

9 August 2023 · Sulabh Sethi

Inter-Integrated Circuit (I2C): how the master/slave two-wire bus works, where it is used, and a simple Arduino example for reading a sensor over I2C.

EmbeddedSPIArduinoProtocolsElectronics

SPI Protocol, Explained

9 August 2023 · Sulabh Sethi

Serial Peripheral Interface (SPI): the four wires (MOSI, MISO, SCK, CS), how a transaction works, its pros and cons versus I2C, and a simple Arduino example.