16x2 LCD

COURSE FEATURES

  • Duration 11:10
  • Hardware 16x2 LCD

ABOUT THE COURSE

To easily display odds and other information I used a 16x2 LCD display. You will see 10 of these on the odd's board to display the odds, 1 on the countdown clock, and one on each bet station for information.

What You Will Learn

In this tutorial, we will hook up a 16x2 LCD display.



Video #5

#include 

int credits = 0;

void setup()
{
	lcd.begin(16,2);
	lcd.setCursor(0,0);
	lcd.print("Derby Time");
	lcd.setCursor(0,2);
	lcd.print("Credits = ");
	lcd.setCursor(10, 2);
	lcd.print(credits);
}

void loop()
{
	lcd.begin(16,2);
	lcd.setCursor(0,0);
	lcd.print("Derby Time");
	lcd.setCursor(0,2);
	lcd.print("Credits = ");
	lcd.setCursor(10, 2);
	lcd.print(credits);
	
	credits++;
	delay(2000);
}


Review

The odds board and betting stations both use these displays. To make it more authentic you could use 7 segment LEDs, but these are much more efficient in displaying information and numbers.

Here is a photo of the left side of the odds board.