Stamp not found after connecting LCD
idleup
Posts: 46
I am not sure where to start trouble shooting this problem. If I go into the stamp editor and click to verify ID it finds the stamp and recognizes it as a BS2pe. However as soon as I hook up my LCD the stamp cannot be found. I lick to verify the ID and it shows echo as 'Yes' but it is blank where it usually shows the model of stamp, hence it will not write the code.
I have checked for shorts in the wiring and cannot find any. I have used the following cross connect chart for attaching the LCD: http://www.weethet.nl/english/basicstamp2_lcdcontrol.php.
Can anyone help me find where to start debugging to find the problem? Thanks.
UPDATE: I removed all pins accept power and ground (pin 1 and 2) and it still cant find the stamp. As soon as I remove one of them it finds it. So somehow that is shorting something? anyway, I did check and the pins are correct, the voltage is 5v.
- Matt
Post Edited (idleup) : 10/15/2005 11:45:34 PM GMT
I have checked for shorts in the wiring and cannot find any. I have used the following cross connect chart for attaching the LCD: http://www.weethet.nl/english/basicstamp2_lcdcontrol.php.
Can anyone help me find where to start debugging to find the problem? Thanks.
UPDATE: I removed all pins accept power and ground (pin 1 and 2) and it still cant find the stamp. As soon as I remove one of them it finds it. So somehow that is shorting something? anyway, I did check and the pins are correct, the voltage is 5v.
- Matt
Post Edited (idleup) : 10/15/2005 11:45:34 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
I did just move the power to the LCD to the switched 5v and now with the LCD connected it is recognizing the stamp. So that gets me past the problem. However, I put in the example code on·the HD44780 lcd on the stamp site and while it loads to the stamp okay, there is no response on the LCD screen... I cannot run the code that I found on the website I pasted earlier either where I got the pin connects becasue it gives an error, here is the code (http://www.weethet.nl/english/basicstamp2_lcdcontrol.php#example1). The error is "expected a label" and highlights this word "LCDCMD" on the GOTO line. I added the BS2pe directive.
I am new to this so I am not as knowledgable to how to diagnose these things...
- Matt
- Matt
One other thing... I have the LCD Enable pin going to pin 1. so pin 0 on the stamp is empty. Is this correct? I think I am reading the manual correctly that if you start at pin 1 on the stamp than all other pins used are 2-7.
Also, does it matter that my display is a 2x20 and the sample code is writen for 2x16? I have attached the PDF for my display I am using.
Post Edited (idleup) : 10/16/2005 12:37:47 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Example:
display docs say:
RS·· R/W·· DB7·· DB6·· DB5·· DB4
0····· 0······ 0····· 0······ 1····· 1
and the LCDCMD looks like this:
LCDCMD Lcd, %00110000
How can I determine the equivellant LCDCMD command to do the command as displayed in the display docs?
- Matt
You might also look at our LCD AppMod docs, BS2p PlusPack docs, and StampWorks -- all have material on LCD use that will help. Be patient, it may take you a few days to absorb everything.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
- Matt
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
1. I still find it odd that if I attach the LCD power to the stamp constant 5v instead of the switched 5v that the IDE cannot find the stamp. Not sure if this is indicitive of another problem. It works fine when on the switched 5v.
2. At the end of the ribbon cable I measure 5v but as soon as I plug the ribbon cable into the LCD and take a voltage reading across the VSS and VDD pins I show .75 volts. Not sure if that is normal due to circuitry in the LCD or if that is indicitive of a problem.
3. I am using an OWLogic board and top breakout board from tracy (http://www.emesystems.com/OWL2pepr.htm) and am not sure if it could be circuitry in that board preventing this from working.
Any feedback on if those items are normal or should be a cause for concern would be appreciated. I also have an old·BS2 that I am thinking of trying. It doesnt support the LCDCMD or LCDOUT commands but that sample code I posted earlier doesnt require it. If it is something in Tracys board then I can narrow it down that way...
- Matt
2. What is the 5v supply when you see this condition? If you're using the BASIC Stamp's onboard regulator the problem is explained above. If you're using a separate supply, then you may have a bad LCD.
3. I don't know -- hopefully Tracy can chime in and assist on that part.
We have have bunches of LCD code for every one of our controllers -- I've been connecting LCDs to BASIC Stamps since the BS1 days. Download our LCD AppMod docs for code and connections with a standard BS2. Those connections are BS2p-compatible, so if you get it working you'll be able to change the commands that allow for native LCD support.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
2. I am using a separate supply that shows 5v before I plug in the LCD. As soon as I do plug in the LCD it drops to .75v. the voltage is not only .75 at the LCD pins but also at the supply.
3. I moved everything over to my old BS2 and am still having all the same problems so I dont think it has to do with tracys board.
It sounds like the suspicious thing right now is the power going to .75 v at hooked up to the LCD. I have emailled the manufacturer of the LCD (one stop displays) to see what they say. I dont know if it means anything, but I am getting about 9.7 k ohms across pin 1 and 2 of the LCD (vss & vdd). Not sure if that should be like that...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax