I'm trying to hook up a 16x2 OLED display to a Raspberry Pi,
http://www.adafruit.com/products/823
When I connect just the 1st and 2nd pins to the +5v and GND coming off the Pi's GPIO header, the Pi immediately resets, as if it had been shorted or too much current was drawing off it. However, the 50mA +3.3v pin works fine, and I can hook up the rest of the display straight to the GPIO pins and drive it with no problem.
Although the datasheet has the display at up to 30mA, I probably shouldn't be using the +3.3v pin for this(?).
Does the display have any known issues at 5v? Thanks.
Raspberry Pi 5v + 16x2 OLED
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88087
- Joined: Sat Feb 07, 2009 10:11 am
Re: Raspberry Pi 5v + 16x2 OLED
I did all my testing on these using 5v, so that shouldn't be a problem. How are you powering the Pi?
-
- Posts: 7
- Joined: Fri Feb 01, 2013 6:18 am
Re: Raspberry Pi 5v + 16x2 OLED
I'm using a standard 1A USB mains power supply.adafruit_support wrote:I did all my testing on these using 5v, so that shouldn't be a problem. How are you powering the Pi?
- adafruit_support_bill
- Posts: 88087
- Joined: Sat Feb 07, 2009 10:11 am
Re: Raspberry Pi 5v + 16x2 OLED
That should be enough unless you have a lot of peripherals connected. But the display works fine at 3.3v, so it is not a short in the display. Maybe it creates some noise on the 5v rail that causes a reset?
-
- Posts: 7
- Joined: Fri Feb 01, 2013 6:18 am
Re: Raspberry Pi 5v + 16x2 OLED
Same problem with a different power supply, and when I bring the 5v rail down to 3.3v or 3.7v and try and use that, although the Pi no longer resets itself, the OLED display doesn't respond at all.
This is weird, any other suggestions please?
This is weird, any other suggestions please?
- adafruit_support_bill
- Posts: 88087
- Joined: Sat Feb 07, 2009 10:11 am
Re: Raspberry Pi 5v + 16x2 OLED
How are you doing that?and when I bring the 5v rail down to 3.3v or 3.7v and try and use that
-
- Posts: 7
- Joined: Fri Feb 01, 2013 6:18 am
Re: Raspberry Pi 5v + 16x2 OLED
A potential divider using two resistors (tested with a multimeter);adafruit_support wrote:How are you doing that?and when I bring the 5v rail down to 3.3v or 3.7v and try and use that
+5v => 10k resistor => 3.3v => 20k resistor => GND
- zener
- Posts: 4567
- Joined: Sat Feb 21, 2009 2:38 am
Re: Raspberry Pi 5v + 16x2 OLED
There's a little problem with doing it that way... Did you verify the 3.3V while you were doing all that? Because it probably dropped out a lot. Quiz question is: what happens when you start to draw current through the 10k of the divider?
-
- Posts: 7
- Joined: Fri Feb 01, 2013 6:18 am
Re: Raspberry Pi 5v + 16x2 OLED
Do you mean read off the voltage in series while it's connected to the display?Zener wrote:There's a little problem with doing it that way... Did you verify the 3.3V while you were doing all that? Because it probably dropped out a lot. Quiz question is: what happens when you start to draw current through the 10k of the divider?
I've tried it all the way up to 4.67v, still no luck. Although, when I send commands to it, it sometimes briefly flashes.
- zener
- Posts: 4567
- Joined: Sat Feb 21, 2009 2:38 am
Re: Raspberry Pi 5v + 16x2 OLED
Hook a volt meter to teh 3.3V line and verify that it is still 3.3V with everything hooked up. I am guessing it is not.
-
- Posts: 7
- Joined: Fri Feb 01, 2013 6:18 am
Re: Raspberry Pi 5v + 16x2 OLED
You're absolutely right, it's dropping right down to 0.8v with the divider, but remains at 3.3v when hooked up to the working 3.3v line.Zener wrote:Hook a volt meter to teh 3.3V line and verify that it is still 3.3V with everything hooked up. I am guessing it is not.
Thanks! Can you suggest a better way to lower the voltage please?
- zener
- Posts: 4567
- Joined: Sat Feb 21, 2009 2:38 am
Re: Raspberry Pi 5v + 16x2 OLED
Put 3 diodes in series. That's not the best correct way but will work. Correct way is 3.3V regulator or bench supply.
-
- Posts: 7
- Joined: Fri Feb 01, 2013 6:18 am
Re: Raspberry Pi 5v + 16x2 OLED
Tried again and with a 5v->3.3v regulator and it's working great, thanks! Looks like these things (or mine, at least) have an issue with 5v.Zener wrote:Put 3 diodes in series. That's not the best correct way but will work. Correct way is 3.3V regulator or bench supply.
- static
- Posts: 188
- Joined: Thu Dec 23, 2010 6:21 pm
Re: Raspberry Pi 5v + 16x2 OLED
Glad I saw this. I'll be integrating a display into one of mine at some point.
Please be positive and constructive with your questions and comments.