LCD 16 × 2 with I2C backpack with TinkerPie
The classic green or blue character display.
| Type | Displays and lights |
|---|---|
| Connect to | SENSOR port · 0x27 or 0x3F |
| Gives | 2 lines of 16 characters |
| Simulator | Yes: a control appears under the simulated board |
How it works
The 16 × 2 LCD shows 2 lines of 16 characters. The small I2C "backpack" on its back lets the board control it with only two wires instead of many.
How to wire it
OLED and LCD go into a SENSOR port (I2C). The 4-digit display and LED strips use one or two signal pins.
Code
In blocks: Accessories category in TinkerPie Studio. As code:
// JavaScript
lcd.showText('Hello', 0)
lcd.showNumber(21.5, 1)
// Arduino C++
lcd::showText("Hello", 0)
lcd::showNumber(21.5, 1) Good to know
- Common I2C addresses are 0x27 and 0x3F.
- Turn the small blue knob on the back to adjust the contrast if you see nothing or only blocks.
- Most modules need 5 V power.
Projects with the LCD 16 × 2 with I2C backpack
Similar modules
More projects to try
Questions
Can I try the LCD 16 × 2 with I2C backpack without buying one?
Yes. In TinkerPie Studio the simulator shows a control for it under the board, so you can test your program before you build it.
My LCD lights up but shows no text. What is wrong?
Usually the contrast: turn the blue knob on the backpack slowly. Also check that the I2C address in your code matches your module.