Two LCD Shield Kits - i2caddr

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Two LCD Shield Kits - i2caddr

Postby KE5QDA » Wed Feb 06, 2013 9:18 am

Hi,

I just bought two of the LCD Shield Kits and intend to use them both for a transceiver. I know it's a simple thing, but, how do I change the i2caddr? I want to use addresses 0x4 and 0x5 for the LCDs. Yes, I've already downloaded the software and it looks great, except for the address thing. I'm a newbie. :oops:
KE5QDA
 
Posts: 3
Joined: Wed Feb 06, 2013 9:08 am

Re: Two LCD Shield Kits - i2caddr

Postby adafruit_support_bill » Wed Feb 06, 2013 10:18 am

The base address of the chip is 0x20 and it has 3 address lines. That means the range of possible addresses are 0x20-0x27.

Since it was designed as a shield, the address lines are not brought out. A0, A1 & A2 are all tied to ground. If you are willing to cut traces on the board, you could pull one or more address lines high with a 10K resistor to change the address on one of the boards. You'd probably need to do a little hacking in the library to handle the address change as well.
User avatar
adafruit_support_bill
 
Posts: 15898
Joined: Sat Feb 07, 2009 9:11 am

Re: Two LCD Shield Kits - i2caddr

Postby KE5QDA » Wed Feb 06, 2013 10:23 am

Thanks for the quick reply! That is just what I needed...I'll be back if I can't make it work. :wink:
KE5QDA
 
Posts: 3
Joined: Wed Feb 06, 2013 9:08 am

Re: Two LCD Shield Kits - i2caddr

Postby KE5QDA » Sat Feb 16, 2013 3:34 pm

I'm baaaack! The code doesn't seem to work for two reasons. 1. The address is defined in Adafruit_LCM2013.h and it is not easy to add another address without throwing everything off. 2. The code for making it work uses "lcd.action" code that won't work without an lcd library file and is also using "Serial" code that doesn't apply to i2c.

Do I just need to figure this out on my own, or, is there something easy to do??? When I compile, I get too many errors to troubleshoot and they are all related to "lcd" and "serial".
KE5QDA
 
Posts: 3
Joined: Wed Feb 06, 2013 9:08 am


Return to Arduino Shields from Adafruit

Who is online

Users browsing this forum: No registered users and 13 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [105]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]