|
Post by achyuthans on Jun 2, 2017 14:04:06 GMT
Hi,
I need to use a 16x2 LCD display [4-bit operation] with the Shieldbuddy, but it doesn't respond. I'm using the basic Arduino 'Hello World' example sketch on core0, with pins 22-27 in place of pins 12, 11, 5, 4, 3, 2 (in that order). The connections are proper. I can only see a series of black boxes in the first row and the second row is blank. The contrast voltage only lightens and darkens the boxes, nothing else.
It seemed this could be an initialisation issue, so I added a delay of 1 ms after each statement in the setup and loop functions. Still the same results. I thought it could be a problem with the LCD, but the LCD module works fine with PIC16F877A, dsPIC30F4011, and Arduino Uno. It's a generic HD47780 based LCD controller with JHD 162A written on it. Any help is appreciated.
Thanks, Achyuthan S
Edit: I've tried using the pins (12, 11, 5, 4, 3,2) for the LCD but the result is the same. The same code and the same circuit gets proper response from Arduino Mega 2560 as well, but not from Shieldbuddy.
|
|
|
Post by Anonim on Aug 2, 2017 6:45:11 GMT
Hello,
I have the same problem for the ShieldBuddy TC275. Did you resolve something?
Thanks in advance!
|
|
|
Post by Admin on Aug 2, 2017 7:41:57 GMT
Hi,
It seems that the LCD example no longer runs properly. We will check this to find out why. You are probably seeing this problem.
|
|
|
Post by Admin on Aug 2, 2017 7:56:35 GMT
Mystery solved! In the later ShieldBuddy add-in, the digitalWrite() function was changed to make it much faster. This seems to cause a problem with the LCD driver (LiquidCrystal.cpp). The original slower arduino-style digitalWrite() is still in the library though, now as "digitalWriteA()". To fix it, we changed all the "digitalWrite()" statements to "digitalWriteA()" in LiquidCrystal.cpp. The fixed version is attached. Copy this to "C:\Program Files (x86)\Arduino\hardware\aurduino_Dx\aurix\libraries\LiquidCrystal" and "C:\Program Files (x86)\Arduino\hardware\aurduino\aurix\libraries\LiquidCrystal". We will fix this in the next release. Attachments:LiquidCrystal.cpp (8.4 KB)
|
|