Examples - Electronic Bricks - Electronic Brick LCDisplay

LCD Display - How to use the lcd brick and display your sensor values

This program gives you a basic understanding of using the LCD Brick.

Most of the sensors and switches use a single wire for signal. There are modules that need more than one signal line, so we need the bus connection. The 16*2 Character LCD module has 16 pins, there are 5 power pins and 11 signal pins. At least 10 pins are needed to control the 16*2 Character LCD modules, so we need a bus to connect it to Arduino.

Hardware Setup:

Connect the 16*2 Character LCD Brick with the 10pins cable to the BUS2 connector of Chassis. And toggle the power switch to ‘On’. We can use the library for Liquid Crystal to control the LCD easily. This library allows an Arduino board to control Liquid Crystal displays (LCDs) based on most popular Hitachi HD44780 (or a compatible) chipset. The library works in either 4- or 8-bit mode.

Software Setup:



/*
Sensor Display
Example: Read a tempertatur sensor, light sensor
and screen it on a LCDisplay
* LCD RS pin to digital pin 12
* LCD Enable pin to digital pin 11
* LCD D4 pin to digital pin 5
* LCD D5 pin to digital pin 4
* LCD D6 pin to digital pin 3
* LCD D7 pin to digital pin 2

*/

coming soon...