[vc_row][vc_column][vc_column_text]Description: This is the latest evolution of our serial LCD. Included on a single board is a 16×2 LCD and an embedded circuit based around a PIC 16F88. The on-board PIC takes a TTL serial input and prints the characters it receives onto the LCD. The installed firmware also allows for a number of special commands so you can clear the screen, adjust the backlight brightness, turn the display on/off, and more.
Communication with SerLCD requires 5V TTL serial at a default baud rate of 9600bps (8-N-1). You can adjust the baud to any standard rate between 2400 and 38400bps. The power (VDD), ground (GND) and RX pins are all broken out to both a 0.1″ pitch header as well as a 3-pin JST connector.[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Parts list” tab_id=”1394076470-1-75″][vc_column_text]one pcDuino v2
one Serial UART 16 × 2 LCD
three DuPont wires[/vc_column_text][/vc_tab][vc_tab title=”Wiring diagram” tab_id=”1394076470-2-54″][vc_column_text]Serial UART 16×2 LCD GND ->pcDuino GND
Serial UART 16×2 LCD 5V->pcDuino +5V
Serial UART 16×2 LCD Rx ->pcDuino D3[/vc_column_text][/vc_tab][vc_tab title=”Program code” tab_id=”1394085161390-2-4″][vc_column_text]
#include <coer.h> void lcdPosition(int row, int col) { Serial.write(0xFE); //command flag Serial.write((col + row*64 + 128)); //position delay(LCDdelay); } void clearLCD(){ Serial.write(0xFE); //command flag Serial.write(0x01); //clear command. delay(LCDdelay); } void backlightOn() { //turns on the backlight Serial.write(0x7C); //command flag for backlight stuff Serial.write(157); //light level. delay(LCDdelay); } void backlightOff(){ //turns off the backlight Serial.write(0x7C); //command flag for backlight stuff Serial.write(128); //light level for off. delay(LCDdelay); } void serCommand(){ //a general function to call the command flag for issuing all other commands Serial.write(0xFE); } void setup() { Serial.begin(9600); backlightOn() ; clearLCD(); lcdPosition(0,0); LCD.print(" pcDuino: Hello World!"); } void loop() { }
[/vc_column_text][/vc_tab][vc_tab title=”The results” tab_id=”1394085260323-3-3″][vc_column_text]
Serial UART 16×2 LCD display successfully :”pcDuino:hello World!”[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]
Leave a Reply
You must be logged in to post a comment.