Tutorial: Arduino MKR1000 Display LCD HD44780

Tutorial: Arduino MKR1000 Display LCD HD44780

This is an easy tutorial to use the Arduino MKR1000 with the HD44780 Lcd Display.

In this case i’ve used a 16×2 display, the same is for 20×4 or others display you have only to change the code.

For this tutorial i’ve used the MKR1000 digital pin from D0 to D5.

To power up the LCD you need to use 5V and GND pins.

The potentiometer is needed to have the right contrast on the display.

If code and connection are ok try to move the potentiometer, something must appear 🙂

Requirements:

  1. Install the LiquidCrystal library in Arduino IDE
  2. 10KΩ Variable Resistor
  3. 1KΩ Resistor ( if your display has backlight )
  4. MKR1000
  5. 16×2 HD44780 Display with or without backlight

Connection:

MKR1000_Display_16x2_LCD

MKR1000_Display_16x2_LCD

 

!!! If your display has no backlight the last two display pin with 1KΩ and GND connection are not used. !!!

 

Arduino MKR1000 Display LCD HD44780
Arduino MKR1000 Display LCD HD44780

Code:

#include <LiquidCrystal.h>

// initialize the library with the numbers of the MKR Pin: ( From D0 to D5 )
LiquidCrystal lcd(0, 1, 2, 3, 4, 5);

void setup() {
// setup the LCD’s number of columns and rows:
lcd.begin(16, 2); // If you have 20×4 LCD user (20,4)
}
void loop() {

lcd.setCursor(0, 0); // Lcd first row is 0
lcd.print(“ArduinoAir”);
lcd.setCursor(0, 1);// Lcd second row is 1
lcd.print(“Pollution”);
}

For original LiquidCrystal tutorial for Arduino UNO you can check the official arduino website

Precedente Arduino UNO + Ethernet Shield + LM35 + Dust Sensor Successivo XIAOMI Chuangmi 720P Disassembly