Devices & Components
Arduino Uno Rev3
Jumper wires (generic)
Alphanumeric LCD, 16 x 2
Breadboard (generic)
Resistor 1k ohm
Software & Tools
Arduino IDE
Project description
Code
Code for LCD
h
1// Electronics University 2// SUBSCRIBE US 3 4#include <LiquidCrystal.h> 5 6// initialize the library by associating any needed LCD interface pin 7// with the arduino pin number it is connected to 8 9LiquidCrystal lcd(7,8,9,10,11,12); 10 11void setup() { 12 // set up the LCD's number of columns and rows: 13 lcd.begin(16, 2); 14 // Print a message to the LCD. 15 lcd.print("Yeh!U learned it"); 16} 17 18void loop() { 19 // set the cursor to column 0, line 1 20 // (note: line 1 is the second row, since counting begins with 0): 21 lcd.setCursor(0, 1); 22 lcd.print ("SUBSCRIBE US"); 23} 24
Code for LCD
h
1// Electronics University 2// SUBSCRIBE US 3 4#include <LiquidCrystal.h> 5 6// 7 initialize the library by associating any needed LCD interface pin 8// with the 9 arduino pin number it is connected to 10 11LiquidCrystal lcd(7,8,9,10,11,12); 12 13void 14 setup() { 15 // set up the LCD's number of columns and rows: 16 lcd.begin(16, 17 2); 18 // Print a message to the LCD. 19 lcd.print("Yeh!U learned it"); 20} 21 22void 23 loop() { 24 // set the cursor to column 0, line 1 25 // (note: line 1 is the 26 second row, since counting begins with 0): 27 lcd.setCursor(0, 1); 28 lcd.print 29 ("SUBSCRIBE US"); 30} 31
Downloadable files
Diagram
Diagram

Comments
Only logged in users can leave comments