I2C auto identification

Rob Dobson discusses the I2C interconnection bus (sometimes called two wire).

Ever since I attached my first I2C device to a microcontroller I’ve loved the simplicity of the I2C bus. It always seems kinda magical to have this plug-and-play ability with just two wires (maybe Dallas 1 wire is twice as magical though?).

I2C has some amazing strengths which should not be underestimated:

  • There are many, many devices from manufacturers including TI, ST and Microchip that support I2C bus standard and include: touch sensors, gas sensors, distance sensors, PIR sensors, RFID readers, Analog-to-Digital converters, accelerometers, magnetometers, gyroscopes, pressure sensors, and many more
  • Sparkfun and Adafruit have defined, respectively, Qwiic and Stemma-QT interface definitions (which are essentially the same thing and use the JST-SH 4-pin connector as standard) and provide a ton of “breakout” modules with these interfaces which makes experimentation really easy
  • I2C is simple – I know I already said that but it is really important to me so I’ve said it again!

Rob’s work is part of RaftI2C (a part of the Raft framework) and can be found on GitHub and the example application is in the examples folder of the repo. You can read the methodology in the post here.


Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 38,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 11/15/2024 Featuring Adafruit bq25185 USB / DC / Solar Charger with 3.3V Buck Board! (Video)

Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

Adafruit IoT Monthly — The 2024 Recap Issue!

Maker Business – Adafruit Daily — Apple to build another chip at TSMC Arizona

Electronics – Adafruit Daily — SMT Tip – Stop moving around!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !


No Comments

No comments yet.

Sorry, the comment form is closed at this time.