از همون example ها استفاده کمید و تغییرات مورد نظرتون رو توش اعمال کنبد
دقیقا چه مشکلی داره؟
اگر بیشتر توضیح بدی شاید بتونم کمک کنم
ابن یه برنامه معمولیه
کد:
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("hello, world!");
}
void loop() {
// Turn off the display:
lcd.noDisplay();
delay(500);
// Turn on the display:
lcd.display();
delay(500);
}
که پایه های ال سی دی رو هم باید بصورت زیر وصل کنید
* 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
* LCD R/W pin to ground
* 10K resistor:
* ends to +5V and ground
* wiper to LCD VO pin (pin 3)
مشکل شما دقیقا چیه؟