Using OLED bonnet with DAC

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
szecode
 
Posts: 10
Joined: Fri Apr 01, 2022 10:57 am

Using OLED bonnet with DAC

Post by szecode »

Hi,

I am building an Internet radio with the "Adafruit 128x64 OLED Bonnet for Raspberry Pi" for control and display. I am thinking of adding a DAC for better sound.

As both the OLED bonnet and the DAC use the 40-pin connector, how do I determine if they can stack?

One DAC I am considering is the "Inno-Maker Raspberry Pi HiFi DAC HAT PCM5122".

Thank you!

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Using OLED bonnet with DAC

Post by mikeysklar »

The OLED bonnet is I2C based so the only additional pins you would be looking at using would the ones for the joystick as shown in the example code:

Code: Select all

# Input pins:
button_A = DigitalInOut(board.D5)
button_A.direction = Direction.INPUT
button_A.pull = Pull.UP

button_B = DigitalInOut(board.D6)
button_B.direction = Direction.INPUT
button_B.pull = Pull.UP

button_L = DigitalInOut(board.D27)
button_L.direction = Direction.INPUT
button_L.pull = Pull.UP

button_R = DigitalInOut(board.D23)
button_R.direction = Direction.INPUT
button_R.pull = Pull.UP

button_U = DigitalInOut(board.D17)
button_U.direction = Direction.INPUT
button_U.pull = Pull.UP

button_D = DigitalInOut(board.D22)
button_D.direction = Direction.INPUT
button_D.pull = Pull.UP

button_C = DigitalInOut(board.D4)
button_C.direction = Direction.INPUT
button_C.pull = Pull.UP
https://learn.adafruit.com/adafruit-128 ... l#overview

What pins do you need for the DAC?

I use a USB based on DAC on my Pi and it makes a huge difference in quality.

User avatar
szecode
 
Posts: 10
Joined: Fri Apr 01, 2022 10:57 am

Re: Using OLED bonnet with DAC

Post by szecode »

I compared the pin-outs of the bonnet and the DAC (see attached) and it looks like there are overlaps. So I guess they are not compatible.

Which USB DAC did you use / recommend? I thought of using a USB one too but wasn't able to find a decent one.

Thank you!
Attachments
pin-outs.png
pin-outs.png (510 KiB) Viewed 107 times

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Using OLED bonnet with DAC

Post by mikeysklar »

I don't see any pin conflicts betweent the DAC and OLED bonnet which means they will likely play nicely stacked. Which pins did you see that would be an issue?

I use the Audio Quest Dragonfly series of USB DACs. These work very well with Linux. The only downside is the price $$$.

User avatar
szecode
 
Posts: 10
Joined: Fri Apr 01, 2022 10:57 am

Re: Using OLED bonnet with DAC

Post by szecode »

Maybe I am not understanding it correctly, but for example, pins 3 and 5 are used by both?

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Using OLED bonnet with DAC

Post by mikeysklar »

Pin 3 (SDA) and 5 (SDL) are the I2C pins. I2C is a bus which means you can hang many devices off it such as an OLED and a DAC (plus a bunch more stuff). Each I2C device has an address so as long as the addresses are unique you can share the bus.

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”