Jan 13
So der erste Versuch ein 16×2 LCD-Display anzusteuern war erfolgreich. Wenn nicht hätte ich mir auch Gedanken gemacht
Danke an die Arduio.cc Tutorials!
Natürlich musste ich mich erstmal eine Stunde damit beschäftigen das Breadboard falsch zu benutzen … Nächstes Projekt Arduino LCD + Wii Nunchuck
Nix neues aber kann man ja mal mitnehmen!
Heute ist mein watterott Paket gekommen:
- 1x Kabels zum stecken
- 1x kleines Breadboard
- 1x Nunchuck Adapater
- 1x LCD
- Format: 16×2
- Zeichenhöhe: 5,55mm
- Sichtfeld: 61×15,8mm
- Modulgröße: 80×36mm
- Tech: STN - gelb/grüne LED Hintergrundbeleuchtung
- Temp: -20^C - +70°C
- Image: Pos
Datasheet: DEM 16216 SYH-LY
Hier ein Auszug aus dem standard Arduino-Sketch:
// include the library code: #include// 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 rows and columns: lcd.begin(16, 2); // initialize the serial communications: Serial.begin(9600); } void loop() { // when characters arrive over the serial port... if (Serial.available()) { // wait a bit for the entire message to arrive delay(100); // clear the screen lcd.clear(); // read all the available characters while (Serial.available() > 0) { // display each character to the LCD lcd.write(Serial.read()); } } }
VIDEO: Arduino LCD