I2C: part 2

Introduction

In the previous tutorial, we learned about the I2C Communication. Also, we introduced two components and learned how to communicate with them. To understand this way of communication better, let’s work with another component and define an Arduino as a slave.

Temperature: DS1621

DS1621

Command Table

Register byte

output of temperature

Link to the Datasheet

Command Table

Configuration registers

temperature setup temperature output gif

Arduino as an I2C Slave

  • onRequest
  • onReceive

Arduino slave temperature

Arduino slave temperature gif

Arduino slave temperature request gif

Conclusion

© 2025 LiterallyTheOne