LCD shield won't work with Leonardo

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

LCD shield won't work with Leonardo

Postby cyborg5 » Thu Jul 19, 2012 12:31 pm

I've got a Adafruit LCD shield with a 16x2 display. The display works just fine with my software. The "hello world" schedule also works properly when the device is connected to an Arduino Uno. However when I unplugged it from the Uno and plug it into my new Arduino Leonardo it does not work. The Leonardo itself does seem to work properly. I was able to successfully upload a mouse control test sketch and it moved my mouse exactly like it should. However for some reason we will not drive the LCD shield. I'm not sure if it's putting any text on the screen but I do know that the backlight will not illuminate so I can't really tell what's going on. Again these exact same sketches on the same shield work perfectly on the Uno. And if there's something wrong with the Leonardo or with my installation is not so wrong that it won't do other things that it is supposed to do.

Any suggestions?
cyborg5
 
Posts: 32
Joined: Tue Apr 24, 2012 3:13 pm

Re: LCD shield won't work with Leonardo

Postby pburgess » Thu Jul 19, 2012 12:58 pm

The Leonardo design has some pin functions moved around, and unfortunately this means that a lot of existing shields won't work with it.

You might be able to run wires from pin 2 to A4 and pin 3 to A5, but I'm not 100% certain that this will make it work.
User avatar
pburgess
 
Posts: 1327
Joined: Sun Oct 26, 2008 1:29 am

Re: LCD shield won't work with Leonardo

Postby cyborg5 » Thu Jul 19, 2012 1:13 pm

Actually even though I said it's a "shield" I did not constructed as such. I left the pins off and just wired four wires to the ground, +5v, and the two signal wires. The signal wires running to A4 and A5 exactly as they do on the Uno.

I'm not sure I understand what you mean about the pinouts being different between the Leonardo and the Uno. They are labeled exactly the same.

Any other suggestions?
cyborg5
 
Posts: 32
Joined: Tue Apr 24, 2012 3:13 pm


Re: LCD shield won't work with Leonardo

Postby cyborg5 » Thu Jul 19, 2012 2:40 pm

Many thanks. I just managed to figure that one out after some research on my own. Was just about to post a message here.

Unfortunately that's going to cause me a whole other bit of conflicts because I was already using pin 3 for some other uses. Which included the use of Timer2. Now I've got to go recode everything to use Timer1.

Of course that's assuming I know how to do that :-)

I'll figure it out eventually.

Thanks for leading me in the right direction.
cyborg5
 
Posts: 32
Joined: Tue Apr 24, 2012 3:13 pm

Re: LCD shield won't work with Leonardo

Postby Ziauddin Ansari » Thu Sep 06, 2012 8:14 pm

Since you have made the shield yourself, all you have to do is to connect the wires to 2 and 3 of Leonardo instead 0f A4 and A5
Ziauddin Ansari
 
Posts: 1
Joined: Thu Sep 06, 2012 6:04 pm


Return to Arduino

Who is online

Users browsing this forum: mibignistinly and 8 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]