I really just want to turn on the backlight and print 'Hello World" for right now, but I would eventually like to use this on my Arduino's RX1 pin to capture data.
But pin 2 is the Arduino RX pin. If you want to receive (RX) something on the LCD then you have to connect it to to the transmitter (TX) of the Arduino.
Hi, have you tried the test mode using the dip switches on the rear of the PCB to check you LCD is working correctly? Also have you set the right baud rate again via the dip switches? The tx pin on the uno needs to be connected to the LCD's rx pin, remember the serial connections cross over.
Hi thanks for helping.
Yes, I've tried the dip switches on the back and set them both to OFF in order to test whether it was working or not. It does work and goes into demo mode.
I switched the dip switches to be set at 9600 baud, then I ran that example sketch that came with the Parallax Serial library.
It doesn't work.
I did notice that there isn't any code in there that determines the baud rate. Shouldn't it also have serial.begin(9600); or something of that nature?
I tried serial.begin(9600); by the way and it doesn't work either.
Yes it does work, but no luck with the Parallax LCD library.
Here is how I got it working so far:
// Parallax LCD #27977 codes that seem to work
// Work in progress
void setup() {
Serial.begin(9600); // 2400, 9600, or 19,200
}
// Uncomment the ones you want
void loop() {
// Serial.print(0x11,BYTE); // turn the backlight on all the time
// Serial.print(0x12,BYTE); // turn the backlight off all the time
// clearLCD(); // seems to work
// Serial.print("Hello Parallax"); // prints text to the current cursor position.
}
Now that I have this working somewhat, maybe someone can tell me where I can find out more information on the 'Serial.print()' commands?
For instance I now know that 'Serial.print(0x11,BYTE);' turns the backlight on, but where do I find more information on other codes? Exactly what type of codes are they?
The type of LCD I have indicates that it has a Piezospeaker; now how do I use that?
Any help regarding the codes would be much appreciated.
I am trying to use the same LCD display. I'm trying to the example ParallaxLCD but its giving me errors regarding the NewsoftSerial its saying the directory cannot be found meanwhile the file in same directory as the pde file. I also changed the <> to "" but no luck.
I'm trying to the example ParallaxLCD but its giving me errors
The ParallaxLCD is giving you errors? Hard to fathom that.
regarding the NewsoftSerial
NewsoftSerial is rubbish. NewSoftSerial is correct.
its saying the directory cannot be found
What is saying that? Which directory can not be found?
meanwhile the file in same directory as the pde file.
What file? The NewSoftSerial.h and NewSoftSerial.cpp files belong in the NewSoftSeria directory in the libraries directory in the sketchbook directory, NOT in the same directory as the pde file.