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!
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/
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/
- mikeysklar
- Posts: 14194
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Using OLED bonnet with DAC
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:
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.
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
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.
- szecode
- Posts: 10
- Joined: Fri Apr 01, 2022 10:57 am
Re: Using OLED bonnet with DAC
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!
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 (510 KiB) Viewed 111 times
- mikeysklar
- Posts: 14194
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Using OLED bonnet with DAC
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 $$$.
I use the Audio Quest Dragonfly series of USB DACs. These work very well with Linux. The only downside is the price $$$.
- szecode
- Posts: 10
- Joined: Fri Apr 01, 2022 10:57 am
Re: Using OLED bonnet with DAC
Maybe I am not understanding it correctly, but for example, pins 3 and 5 are used by both?
- mikeysklar
- Posts: 14194
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Using OLED bonnet with DAC
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.
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/
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/