I have an mega2580 board i have used pins 2, 3, 4, 6, 7, 8, 9, 10, pin5 broken
used for keypad works fine
need to wire lcd used pins 12, 11 and digital pins 38, 36,32,30 dosen't work can anyone help me out
with pin configuation tom
Did you say "digital pins 38, 36,32,30 dosen't work" ?
What LCD are you using, give us a URL.
Did you try the example code? Show us your code.
Tom, please slow down. Make complete sentences. It is hard to understand your half sentences. We are here to help, so give us the full information slowly.
Thanks.
Not only when posting messages, take it easy period.
If you get stuck with the hobby, put it aside.
Have a cup of coffee, tea or something stronger, set your mind to something else and calm down.
Do you know that it doesn't matter what pins you use, and that you have to tell the library what pins you're actually using ?
So, as jackwp already asked: show us what you've already tried and how you connected it (perhaps make and upload a good picture).
Here is the files i am working on. The first is a dxf of my wireing.
The next is my lcd code, that dosen't work.
The 3thrd is my keypad code that works fine. I want to combine both codes and write to the lcd.
Thanks for helping me with the pins.
LCD-key.dxf (165 KB)
HelloWorld2.ino (1.62 KB)
keypad_tom.ino (652 Bytes)
#define pin13 = HIGH;
This not doing what you want. #define is a macro, not a statement. so you have created a text-replace macro called "pin13" with the string "= HIGH;". That doesn't "do" anything.
Does the LCD work with other pins?
Yes if i set up the lcd like the hello world with the pins 2,3,4,5,6,11,12. It will work fine.
but i have to use this pins for the keypad, keypad won't work on the digital pins. thanks tom
Ha Tom,
What LCD are you using? give us a url to it, such as
Do you have boards stacked, or using jumper wires?
What all do you have attached to the arduino ?
Thanks, Jack
I am using a basic 16 x 2 character lcd from sparkfun lcd 00709.
I have everything connected with jumper wires.
Sorry Tom, I didn't get that URL (to the web page).
I can't find a url number on the packing list from sparkfun.
I wired the lcd useing arduinio tutorial - connecting a paralled lcd page 1 of 16.
thanks tom
Ok, so we don't know which LCD you are using. How abut the keypad? Can you find the URL for it?
I don't want to be to picky, but often these different modules have special/different configurations that may well be effecting your systems operation.
You couldn't tell me which tire I need for my standard General Motors automobile could you?
Hang in there. There is an answer.
It's really not that hard to google that display.
That page has all you need to use the display.
It has a datasheet, an extended datasheet, and an AVR example (that's the chip family of the Arduino, but the example isn't Arduino specific).
Remember that the mentioned Arduino's over there are not your mega2560, so they are missing your pins with numbers larger than 19.
(Is it 2560 or 1280 ?)
You did set the right board type in your IDE, right ?
Could you also provide some information about the keypad connected to the analog pin(s) (even though that works correct) ?
The keypad is a 4 x4 matrix with a 10 pin header telephone style.
123A
456B
789C
*0#D
Don't have a data sheet on it . tom
4 x 4 matrix is good for 8 digital inputs.
You could (or might be able to) change that to be 1 or 2 analog inputs (i'm not sure how reliable 16 analog (resistor) values would be, but 8 should be doable).
Point is, you don't NEED the analog pins for that.
Did you specify you're using an Arduino Mega in the IDE ?
By the way, the i don't have a program that understands the *.dxf file format.
So i can't read that.
I've got a bunch of schematics programs installed (all free programs), and i don't like to install an other one just for this thread.
Are you able to convert it to an other format or as a *.pdf ?
The programer is arduino mega (atmegl 1280).
The schematic was done on AutoCad i made it myself but my old verision only supports dxf. files.
If you need a schematic program let me know if i can download a program an copy what i have .
thanks tom