Here I am back, trying to test my new setup of Arduino using a 4x20 LCD as output.
The idea is to monitor a car engine with Arduino.
Something is wrong in my construction.
The program is a simple test routine:
#include <LiquidCrystal.h>
/* LiquidCrystal display with:
LCD 4 (RS) to arduino pin 12
LCD 5 (R/W) to ground (pin 14)
LCD 6 (E) to arduino pin 11
LCD DB4, DB5, DB6, DB7 on arduino pins 7, 8, 9, 10 */
LiquidCrystal lcd(12, 14, 11, 7, 8, 9, 10);
void setup()
{
lcd.begin(20,4);
lcd.clear();
lcd.setCursor(2,0); // Position cursor on line x=3,y=1
lcd.print("4x20 LCD DISPLAY"); // Print a message to the LCD
lcd.setCursor(4,1);
lcd.print("BBB Freeduino");
lcd.setCursor(4,2);
lcd.print("BUB programmer");
}
void loop()
{
}
The output I am getting is a double rows of black squares.
The mistake? The data plug was plugged to the wrong pins!
Next steps:
Test and adjust programs for 7 signals, first in the office.
Test the programs with the car signals.
Adjust signals impedance.
Make a single program for the 7 signals.
Test the program with the car.