Categories

How to configure I2C sensors with Arduino

Posted on Tuesday, November 7th, 2017 in Arduino, how-to by DP

sensorpan-600

Edward Mallon writes:

I’ve spent the last year in the ‘uncanny valley’ of the Arduino. That’s the point where you understand the tutorials at Arduino.cc, but still don’t get much from the material on gitHub because trained programmers would never stoop to using the wire.h library when they could just roll their own in native C++ using the avr-g++ compiler.  The problem with establishing sensor communication at the level of the TWI peripheral inside the AVR is that there are so many fiddling details to keep track of that it quickly overruns the 7±2 things this average human can hold in his head at one time: Computers aren’t the only things that crash after a buffer overflow!  So this post is meant to be a chunking exercise for beginner-intermediate level people like myself who want to get a new sensor working using the standard IDE.  I’ve tried to distill it all down to things that I run into frequently, but there’s still a lot of material here:  So pour yourself a cuppa before diving in…

More details at Arduino based underwater sensors blog.

This entry was posted on Tuesday, November 7th, 2017 at 11:55 am and is filed under Arduino, how-to. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

One Response to “How to configure I2C sensors with Arduino”

  1. Edward Mallon says:

    Like a great Hollywood franchise, I’ve finally put together the prequel – months after the I2C registers tutorial was released:

    https://edwardmallon.wordpress.com/2017/12/17/adding-sensors-to-an-arduino-data-logger/

    This adds to the set for beginners that I’ve been working on for my teacher friends. There are so many different kinds of sensors, that there is necessarily a lot missing from that post (like async serial..). So Adding Sensors (part 2) will follow in the new year when I can grab the time.

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments