I2C + Multiple Character Lcds, encoding

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

I2C + Multiple Character Lcds, encoding

Postby platypus » Sat Feb 16, 2013 1:19 am

Successfully got the 16x2 and 20x4 character lcds working with the I2C backpack.
Yes you do need to be careful in setting lcd.begin(16,2) or lcd.begin(20,4) else, well, spaghetti display!

Now looking at configuring multiple Lcds on the I2C bus.

What is the limiting number of Lcds that can be supported - the tutorial says 7 - but where does this limit of 7 come from?

Is there example code and method to configure multiple Lcds?

Thanks
platypus
 
Posts: 34
Joined: Thu Jan 19, 2012 12:47 am

Re: I2C + Multiple Character Lcds, encoding

Postby adafruit_support_bill » Sat Feb 16, 2013 7:37 am

See "Changing the I2C address" at the bottom of the tutorial page: http://learn.adafruit.com/i2c-spi-lcd-b ... ect-to-i2c
The A1, A2, A3 address pads referred to in the tutorial are on the lower left of the board.
Image

What is the limiting number of Lcds that can be supported - the tutorial says 7 - but where does this limit of 7 come from?

The chip supports 3 bits of addressing. I haven't tested it, but I believe you can actually have up to 8, since 3 bits of addressing allow for addresses from 0 to 7.
User avatar
adafruit_support_bill
 
Posts: 16027
Joined: Sat Feb 07, 2009 9:11 am

Re: I2C + Multiple Character Lcds, encoding

Postby platypus » Sun Feb 17, 2013 3:30 am

That's great, thanks - I missed the bcd encoding when I glanced through it.

Yes that encoding should work - I think the limit is with the chip, but that's fair enough - 7 lcds should be sufficient.

Do you stock a 40x4, 16 pinout lcd, compatible with the I2C backpack?
platypus
 
Posts: 34
Joined: Thu Jan 19, 2012 12:47 am



Return to Other Arduino products from Adafruit

Who is online

Users browsing this forum: No registered users and 4 guests

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


New Products [103]

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[109]
 
Wireless[14]
Cables[61]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
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]