LCD Brick

Hello , I was playing a little bit with the LCD Display from the Electronic Brick series.

I was updating the library file, and the example is working.
But I experience a lot of porblems to show an integer or a changin number.
I was connecting a changeable resistor brick, and trying to show the value. the middle range (values between 10 and 80 are working) but the both ends of the resistor seem to be very big problems, the display is flickering, the numbers are floating through the columns, when I show the values through a serial connection, there are clean values between 0 and 512.
I don’t know what is the real problem.
Any help is appreceated
Regards inside-man

Here is the programtext:
void loop()
{
// Print a message to the LCD.
int analogValue = analogRead(1);
lcd.clear();
lcd.print(“Setpoint”);
delay(10);
//lcd.clear();
lcd.setCursor(2,1);
lcd.print(analogValue);
delay(10);

}

Hi,

Then you use the BUS2 of the Chassis, the analog pin of A0,A1,A2,A3 are connceted to BUS2. So you’d better use the analog pin of A4,A5. Here I will give you a example code which I have tested.

// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(10,11,12,13,14,15,16);

void setup() {
// set up the LCD’s number of rows and columns:
lcd.begin(16, 2);
}

void loop() {
lcd.clear();
lcd.print(“Setpoint”);
int analogValue = analogRead(5);
lcd.setCursor(2,1);
lcd.print(analogValue);
lcd.display();
// Turn on the display:
delay(100);
}

Thanks,
-SQX
BB.jpg

Hello, very special thanks for your answer. All is working very well!!! Problem is solved.

Can you explain for short, what is the real problem in my configuration.
Is on the digital lines a high frequency, which is confusing the values on analog inputs?
is the controller struggling with high changing rates on the inputs?

thanks again for the useful help

regards inside-man

Hi,

The input voltage of the changeable resistor brick affect the data sending of LCD brick.

Thanks,
-SQX