These are the connections needed to wire the 16x2 LCD Display to the feather. You can also follow the fritzing diagram.
LCD Connections
- LCD #1 (leftmost) to Feather GND
- LCD 2 to Feather USB
- LCD 3 to Middle pin Potentiometer
- LCD 4 to Feather 6
- LCD 5 to Feather GND
- LCD 6 to Feather 5
- skip 7, 8, 9, 10
- LCD 11 to Feather 9
- LCD 12 to Feather 10
- LCD 13 to Feather11
- LCD 14 to Feather 12
- LCD 15 to Feather USB
- LCD 16 (rightmost) to Feather GND
The potentiometer is used for adjusting the contrast. To connect that we will connect the middle pin to LCD 3. Then one pin to Feather USB and the other pin to Feather GND. It does not matter which outer pin is power or ground.
The power for the potentiometer and LCD are connected to USB on the Feather since that will provide 5V when powered via USB. The 3.3V output on the Feather can not power the display.
The following is the code to load on the Feather.
// include the library code: #include <LiquidCrystal.h> // initialize the library with the numbers of the interface pins LiquidCrystal lcd(6, 5, 9, 10, 11, 12); void setup() { // set up the LCD's number of columns and rows: lcd.begin(16, 2); lcd.print("It works"); lcd.setCursor(0,1); //2nd line on display lcd.print("Proceed to next"); } void loop() { }
If everything is set correctly this is how it should look and what will be on the display. You may need to adjust the contrast potentiomer if you do not see the text.
For more information on using the 16x2 LCD display with Arduino check out this guide.
Page last edited December 17, 2016
Text editor powered by tinymce.