28029 Parallax Inc, 28029 Datasheet - Page 321

KIT PARTS SMART SENSORS W/TEXT

28029

Manufacturer Part Number
28029
Description
KIT PARTS SMART SENSORS W/TEXT
Manufacturer
Parallax Inc
Datasheet

Specifications of 28029

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
BASIC Stamp® or Javelin Modules
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Other names
28029PAR
Appendix B: Parallax Serial LCD Documentation · Page 309
As you can see from the table, there is also a fourth choice called Test. Now that you’ve
connected the power, use this Test mode to confirm that the power and ground to the
LCD are hooked up correctly before you send it any data. Move the dip switches to the
Test setting and turn on the power. The LCD display should turn on with the backlight
on (models 27977, 27979) and display the following text:
Parallax, Inc.
www.parallax.com
If you don’t see the text at first, try adjusting the LCD contrast by turning the pot labeled
“Increase Contrast” with a screwdriver. Turn it in the direction of the arrow to make the
characters show up more clearly. If you still don’t see the characters, go back and check
your electrical connections and try again. Once you’ve successfully completed test
mode, move the dip switches to the correct positions to select the baud rate you want to
use for your application.
Displaying Text
Now that the LCD is set up, it’s time to start sending text to the display. To display a
character of text on the Serial LCD, simply send the ASCII code of that character to the
Serial LCD over the serial port at the correct baud rate.
When a character is received, the Serial LCD displays that character at the current cursor
position and then moves the cursor one position to the right. When you first turn on the
LCD, the cursor is in the leftmost position on the top line, as you might expect. The short
bar on the bottom of the character shows where the cursor is positioned currently.
Once you’ve sent a full line characters to the LCD, you will notice that the cursor
automatically wraps around to the leftmost position of the second line, just like the text in
a book. The text will wrap like this at the end of every line, with the end of the bottom
line wrapping back around to the top line of the LCD. The text will never “run off” the
display; you’ll always see all of the characters you send.
Try the following code on your BASIC Stamp 2 to send a text string to the LCD display.
First, set the baud rate on your Serial LCD to 19,200. Then, load the code below into
your BASIC Stamp 2 and run it. You will see the text string show up and wrap to the
second line of the display.

Related parts for 28029