Could you please help me to understand what is going wrong, whenever I use Nokia 5110 LCD display with my Arduino Uno ?
I am building a two finger gripper using Arduino Uno. There are 1 ultra-sonic sensor for object detection, two FSRs connected to each arm to detect pressure on object and a servo motor controls the finger closing and opening motion. All my functionality is working fine, and I can see output via Serial.begin(9600).
The issue started, when I added, a NOKIA 5110 LCD screen. I used Adafruit_PCD8544.h library.
Whenever I put the command to put char into display using display.display(), the Arduino behaves randomly. It starts going into some other loop, then comes back to same loop, as if it went crazy.
I used a couple of other libraries as well, like LCD5110_Graph.h, and the same problem happened.
I learned from few similar forums, that I should put some delays for 20~50ms to resolve this, but that didn't help. Arduino cannot be faulty, because it works perfectly, when I remove the display.display() for Adafruit_PCD8544.h or myGLCD.update() for Library LCD5110_Graph.h
Could you please help me to understand, what gets wrong?
As I suspect,
- There may be specific things, which may be forcing Arduino to be out of clock sync ?
- Clock speed of NOKIA 5110 LCD and Arduino----are both same ? and 16MHz ?