Main Content

I2C Scanner

Detect your I2C device’s slave address using an LCD and a barebones MSP430 (M430G2553).

Overview
Things
Story
The Steps
Trying it out
Custom parts and enclosures
Schematics
Code
Credits
Comments(4)

2

HyperChiicken
HyperChiicken
Published April 14, 2019 © MIT
I2C Scanner
Detect your I2C device’s slave address using an LCD and a barebones MSP430 (M430G2553).

Easy
Full instructions provided
1.5 hours
206
I2C Scanner
Things used in this project
Hardware components
MSP-EXP430G2 MSP430 LaunchPad
Texas Instruments MSP-EXP430G2 MSP430 LaunchPad
× 1
Alphanumeric LCD, 20 x 4
Alphanumeric LCD, 20 x 4
× 1
Software apps and online services
Energia
Texas Instruments Energia
Story
I had some parts lying around, and I wanted to give them some purpose. So I went ahead and pimped my breadboard with an i2c scanner. The scanner basically looks for the device’s slave address then displays it on the LCD screen. This makes it easier to find the address without diving into the datasheet. I still suggest CTRL+F the displayed slave address within the datasheet to confirm.

For this project, I cobbled the following parts together:

barebones MSP430 (M430G2553)
20x4 LCD screen
breadboard
The Steps
It’s important to test things out before soldering and mounting things together. So I started out by wiring connections to their respective ports (as seen on the schematics posted), then uploaded the code onto the MSP430 devboard using Energia (TI’s fork of the Arduino IDE).

Once it’s working properly, I did the following:

I soldered my rendition of a MSP430 barebones board. It’s definitely missing some parts like decoupling capacitors and whatnot, but it works.
Mounted the LCD to the stand.
Mounted the LCD combo to the breadboard.
Wired up the connections.
I encountered some problems where the was code working with the devboard but not with the barebones board. To fix it, I needed to modify the boards.txt found in C:\Users\yourusername\AppData\Local\Energia15\packages\energia\hardware\msp430\1.0.3. The directory can be different in your system.”

Link to article