Pages: [1]   Go Down
Author Topic: Question about LCD Shield  (Read 510 times)
0 Members and 1 Guest are viewing this topic.
Argentina
Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi to every one. I don't speak english, I hope i make my self clear.
I have an LCD with Keypad Shield, it works fine. But I also have a home made shield for my project. The LCD shield use the pin 9 (which is pwn) as "enable", but I really need that pwn pin for my project, so I can't use both shields at the same time...  My question is if someone know if I can cut the pin 9 of the shield and connect it directly to 5 volts so the shield is always enabled and I can use the 9 pin for my shield.

Is this possible without burning something??

Thanks to everyone!  smiley-lol
Logged

Dee Why NSW
Offline Offline
Edison Member
*
Karma: 48
Posts: 2295
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It might be simpler to leave the LCD shield alone and use another pin on the other shield.  LCD shields typically provide points for wiring on pins D0-D7 with this sort of thing in mind, but I have never seen a point on pin 9.  This means that you would have to wire to the top of the pin. I had a clash between LCD and the main board but I kept the LCD pin and ran a jumper on the intervening proto shield.
Logged

Argentina
Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It might be simpler to leave the LCD shield alone and use another pin on the other shield.  LCD shields typically provide points for wiring on pins D0-D7 with this sort of thing in mind, but I have never seen a point on pin 9.  This means that you would have to wire to the top of the pin. I had a clash between LCD and the main board but I kept the LCD pin and ran a jumper on the intervening proto shield.

HI Nick, thanks for your answer! But I'm a little bit eager so I've already made what I ask for ahah, everything works fine, no smoke so far. Now I use the pin 12 as the enable of the shield and change the definition of the lcd in the code.

Thanks anyway!  smiley
Logged

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 74
Posts: 7227
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Don't wire enable to 5V! Arduino needs that to tell the lcd to read from the bus. Cut the pin on the bottom of the shield and simply wire it to an unused pin.

You explained yourself perfectly clearly in English. It is often not an issue with the language but rather the personality. Speaking the language doesn't translate into clearly stating a problem. You did this well, English is always secondary.

« Last Edit: February 01, 2013, 08:06:28 pm by liudr » Logged


Dee Why NSW
Offline Offline
Edison Member
*
Karma: 48
Posts: 2295
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It might be simpler to leave the LCD shield alone and use another pin on the other shield. 

HI Nick, thanks for your answer! But I'm a little bit eager so I've already made what I ask for ahah, everything works fine, no smoke so far. Now I use the pin 12 as the enable of the shield and change the definition of the lcd in the code.

Hi Monti.

OK.
I think in principle it is best to leave the store-bought stuff alone an make the modifications on your own stuff but, if it works, it works!

Having said that, I submit that pin 12 is a poor choice you may regret later.  This is typically used for MISO on the SPI bus, and best left for that purpose.   Pins 2-10 are usually all PWM  and equally convenient.

I got real value making up a colourful Excel spreadsheet of the pin allocations, enabling me to (hopefully) plan for everything.  This particularly applies if you home-brew proto shields!
Logged

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 74
Posts: 7227
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

UNO only has 6 PWM pins, not all 2-10 are pwm. The op should also consider whether tone() is needed in the project, which breaks two PWM channels.
Logged


Argentina
Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks to everyone for the answers! I've finally modified both the LCD shield and my own shield and everything is working OK. I've Changed the enable pin to the pin 12 and also another pin which is using my lovely pwn pins  smiley-mr-green.

As nick said it would be better to modify my shield instead of the LCD, but the LCD is destinated to this project so I did it anyway.

Thanks again! I'll share my project when its finished
Logged

Pages: [1]   Go Up
Jump to: