HD44780U LCD No Display from Beaglebone Green Wireless

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Rothb
 
Posts: 4
Joined: Mon Dec 05, 2016 2:10 pm

HD44780U LCD No Display from Beaglebone Green Wireless

Post by Rothb »

I cannot get a display onto my HD44780U LCD from my Beaglebone Green Wireless. I have re-wired the pins and tried multiple example codes (I'm running in 4-bit mode). There may be some fundamental initial steps I may be missing or something, I'd like to know what you guys think.

Wiring:
Image
I have a resistor on the +5V connection for the backlight to dim it a bit. This is the only thing I ever got on the LCD, completely blank, no bars or cursor.
Image
Just used some GPIO pins (P8_7-10, P8_15, P8_18) to connect it.

I used this website to get my code from: http://www.thebrokendesk.com/post/writi ... black/#ref

I changed my pin declarations to this:

PINS = {'E':'P8_15', # pin 6 on LCD
'RS':'P8_18', # pin 4 on LCD
'DB7':'P8_10', # pin 14 on LCD
'DB6':'P8_9', # pin 13 on LCD
'DB5':'P8_8', # pin 12 on LCD
'DB4':'P8_7' # pin 11 on LCD
}

def initalizePins(pins):
GPIO.setup("P8_7", GPIO.OUT)
GPIO.setup("P8_8", GPIO.OUT)
GPIO.setup("P8_9", GPIO.OUT)
GPIO.setup("P8_10", GPIO.OUT)
GPIO.setup("P8_15", GPIO.OUT)
GPIO.setup("P8_18", GPIO.OUT)

Otherwise all the code I left untouched. I would prefer to get this working in python as I have working code for an IR receiver and an accelerometer already properly working. Any help would be appreciated, I've already spent way too much time trying to get this to work.

User avatar
drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: HD44780U LCD No Display from Beaglebone Green Wireless

Post by drewfustini »

Where is the LCD from?

I do have a 20x4 LCD which I could try to replicate with.

Have you verified that the LCD works okay with an Arduino? I usually test hardware with an Arduino Uno first before trying to get it working with BeagleBone.

An alternative Python libray that you may want to try is Adafruit_Python_CharLCD:
Python library for accessing Adafruit character LCDs from a Raspberry Pi or BeagleBone Black.

User avatar
Rothb
 
Posts: 4
Joined: Mon Dec 05, 2016 2:10 pm

Re: HD44780U LCD No Display from Beaglebone Green Wireless

Post by Rothb »

drewfustini wrote:Where is the LCD from?

I do have a 20x4 LCD which I could try to replicate with.

Have you verified that the LCD works okay with an Arduino? I usually test hardware with an Arduino Uno first before trying to get it working with BeagleBone.
[/quote]

The LCD I got from Amazon (https://www.amazon.com/Arducam-Display- ... ds=hd44780)

I currently don't have an Arduino on hand, so I can't test it with that. I believe I have already tried that library, but I will try it again, thanks.

User avatar
drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: HD44780U LCD No Display from Beaglebone Green Wireless

Post by drewfustini »

I have this Adafruit LCD which has a HD44780 controller:
RGB backlight positive LCD 20x4 + extras - black on RGB

I will wire up to my BeagleBone, try that code, and reply with my results.

User avatar
drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: HD44780U LCD No Display from Beaglebone Green Wireless

Post by drewfustini »

I'd suggest wiring the LCD according to this tutorial:
Character LCD with Raspberry Pi or BeagleBone Black
Connect BeagleBone Black 5V power pin P9_7 to the power rail of the breadboard. From the power rail connect one outer lead of the potentiometer, LCD pin 2 (VDD), and LCD pin 15 (LED+).
Connect BeagleBone Black ground pin P8_2 to the ground rail of the breadboard. From the ground rail connect the other outer lead of the potentiometer, LCD pin 1 (VSS), and LCD pin 5 (R/W).
Connect the middle lead of the potentiometer to LCD pin 3 (V0/contrast).
Connect BeagleBone Black pin P8_8 to LCD pin 4 (RS).
Connect BeagleBone Black pin P8_10 to LCD pin 6 (E/clock enable).
Connect BeagleBone Black pin P8_18 to LCD pin 11 (DB4).
Connect BeagleBone Black pin P8_16 to LCD pin 12 (DB5).
Connect BeagleBone Black pin P8_14 to LCD pin 13 (DB6).
Connect BeagleBone Black pin P8_12 to LCD pin 14 (DB7).
Connect BeagleBone Black pin P8_7 to LCD pin 16 (-R/red).
Connect BeagleBone Black pin P8_9 to LCD pin 17 (-G/green).
Connect BeagleBone Black pin P8_11 to LCD pin 18 (-B/blue).
raspberry_pi_BBB_RGB_bb.png
raspberry_pi_BBB_RGB_bb.png (124.25 KiB) Viewed 632 times

Locked
Please be positive and constructive with your questions and comments.

Return to “Beagle Bone & Adafruit Beagle Bone products”