Arduino NANO 3.0 กับ LCD มีปัญหาครับ

Started by pacozaa, February 28, 2013, 05:36:05 PM

Previous topic - Next topic

pacozaa

ผมทดลองต่อกับ Arduino UNO ปรากฎว่า LCD ใช้งานได้ตามปกติครับ ลองเอามาใช้กับ
NANO 3.0
ใช้ pin 2,4,7,8,9,10 ครับ ตรวจสอบการต่อสายกับการเขียนโปรแกรม(pin ไหนเป็นอะไร)
เปลี่ยนชื่อบอร์โ เรียบร้อยครับ
ตัวบอร์ด Arduino NANO 3.0 นี้ผมก็ลองขับ SERVO ปกติดีครับ
แต่พอลองใช้โค้ด LCD มันกลับไม่ทำงานตามต้องการ pixel ติดสว่างทุก pixel เลยครับ


bird techstep

ข้อมูลน้อยไปหน่อย ให้ดีลง code ไว้ จะได้เดาได้
Make it Simple But it Work

pacozaa

LiquidCrystal lcd(2, 4, 7, 8, 9, 10);

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() {
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  // print the number of seconds since reset:
  lcd.print(millis()/1000);
}


bird techstep

ใช้ได้ปกติดีครับ
2 = RS
GND = RW
4 = E
7-10 = D4-D7
ขา Vo ถ้าไม่ต่อ VR ก็ GND
Make it Simple But it Work

pacozaa

ของผมใช้ไม่ได้อ่าครับ เช็คหลายรอบเลย เป็นไปได้ไหมครับว่าบอร์ดเสียบาง port

bird techstep



port ไม่น่าเสียครับ นาโนของใหม่หรือเปล่าครับ ลองเช็คขาดู หรือย้ายขาดู
Make it Simple But it Work

pacozaa

ของใหม่ครับ  เดี๋ยวลองเช็คอีกทีครับ

p_chusak

port output ของ avr เสียได้นะครับ บางเสียเสียฝั่ง high หรือ low อย่างเดียว ก็เชคยาก ถ้าม่เอาสโคปจับนี่ดูไม่ออกครับ