LCD 16x2, Arduino and Special Software (liShowLCD)

by Tezeusz in Circuits > Software

2547 Views, 39 Favorites, 0 Comments

LCD 16x2, Arduino and Special Software (liShowLCD)

Snapshot_2013-10-11_234058.jpg
LCD_bb-png-e1381521357793.jpg
Snapshot_2013-10-11_234124.jpg

This is my first project on Instructables. I know that this project you can find anywhere, but I want to introduce it because I created a program with which you can communicate with displays.

The program is called liShowLCD and it's opensurce

Also the software to run, you need to. NET Framework 4.0.3

Advantage of software is that you can print real-time text on the LCD's


All you need is:
-Arduino (uno in my case)
-LCD: 8x2 or 16x2 or 16x4 or 20x4 (16x2 in my case. i have not tried with 8x2 , 16x4 and 20x4)
- 10k pot

The connection is like in picture.

Now, all you have to do is to upload the code:

// autor: Florea Alexandru


#include
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int state=0;
void setup(){

lcd.begin(16, 2);

Serial.begin(9600);
lcd.clear();
}

void loop()
{

if (Serial.available()) {

state = Serial.read();
switch(state)
{
case ’1′:

lcd.setCursor(0, 0);
lcd.print(” “) //
20 free characters in quotation marks (space)
delay(100);
lcd.setCursor(0, 0);

while (Serial.available() > 0) {
lcd.write(Serial.read());
}
break;

case ’2′:

lcd.setCursor(0, 1);
lcd.print(” “)//
20 free characters in quotation marks (space)
delay(100);
lcd.setCursor(0, 1);

while (Serial.available() > 0) {
lcd.write(Serial.read());
}
break;

case ’3′:

lcd.setCursor(0, 2);

lcd.print(” “)//
20 free characters in quotation marks (space)
delay(100);
lcd.setCursor(0, 2);
while (Serial.available() > 0) {
lcd.write(Serial.read());
}
break;

case ’4′:

lcd.setCursor(0, 3);

lcd.print(” “)//
20 free characters in quotation marks (space)
delay(100);
lcd.setCursor(0, 3);
while (Serial.available() > 0) {
lcd.write(Serial.read());
}
break;
case ’5′:
lcd.clear();
}
}
}

// end code

Sorry for my English





Downloads