Skip to content


LCD Ready

Yesterday I promised to post the pictures of the ready made LCD circuit. Here they are:

LCD circuit ready

LCD circuit ready

Hello World!

Hello World!

And here is the final design:

Final LCD circuit design

Final LCD circuit design

I also promised to upload the LCD test program:

// include the library code:
 #include <LiquidCrystal.h>

 const int numRows = 2;
 const int numCols = 16;

 const int lcdBackLightPin = 12;

 // initialize the library with the numbers of the interface pins
 LiquidCrystal lcd(13, 11, 10, 9, 8, 7);

 void setup() {
 // set up the LCD's number of rows and columns:
 lcd.begin(numRows, numCols);
 lcd.clear();
 lcd.setCursor(2, 0);
 lcd.print("Hello World!");

 pinMode(lcdBackLightPin, OUTPUT);
 }

 void loop() {
 digitalWrite(lcdBackLightPin, HIGH);
 lcd.setCursor(5, 1);
 lcd.print("xISTIx");
 delay(500);
 digitalWrite(lcdBackLightPin, LOW);
 lcd.setCursor(5, 1);
 lcd.print("XistiX");
 delay(500);
 }

Source file is here: xISTIx_Hello_LCD

My source file is based on this example: http://arduino.cc/en/Tutorial/LiquidCrystal

I just simplified the loop and changed the pin numbers according to my circuit. I also added the control for the LCD back light on pin 12.

Finally a comment for Linux 64 bit users. If you use the arduino package I have suggested earlier, you might face some compilation problem. It is because the LCD library is old in that package. I simply downloaded the arduino017 32 bit Linux software from the official arduino site and copied the LCD library from there. It works fine.

Posted in microcontroller, xISTIx HSP Controller.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

You must be logged in to post a comment.