Hello all,
It is possible to get 3,5mm jack on Raspberry Pi 400 via GPIO ?
Thank you.
-
- Posts: 8
- Joined: Wed Nov 04, 2020 12:25 pm
Re: Raspberry Pi 400 3,5mm jack
Yes, but would require some extra electronics.
https://learn.adafruit.com/introducing- ... io-outputs
https://learn.adafruit.com/introducing- ... io-outputs
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.
Working in the Applications Team.
-
- Raspberry Pi Engineer & Forum Moderator
- Posts: 4808
- Joined: Mon Sep 29, 2014 1:07 pm
- Location: Cambridge
Re: Raspberry Pi 400 3,5mm jack
From a software perspective you just need to add "dtoverlay=audremap" to config.txt, which will enable the audio outputs on GPIOs 12 & 13 (header pins 32 and 33). "dtoverlay=audremap,pins_18_19" will send the output to GPIOs 18 & 19 (header pins 12 & 35) . But as James says, you really need some external circuitry to turn it into a usable audio signal.
-
- Posts: 6984
- Joined: Sat Aug 18, 2012 2:33 pm
Re: Raspberry Pi 400 3,5mm jack
ahh, i see how it works
the `compatible = "brcm,bcm2835-audio"` in the device-tree handles both the ALT muxing, and presenting a vchiq service as an alsa device
but i dont see the code in `drivers/staging/vc04_services/bcm2835-audio/bcm2835.c` that is responsible for setting the pins to the chosen set from the gpio block in the dts
and how does the firmware know if it should use pwm0 or pwm1?
i notice a swap_lr in the overlay, but the driver never reads it, is the firmware peeking at the dtb after applying overlays and then acting on that?
the `compatible = "brcm,bcm2835-audio"` in the device-tree handles both the ALT muxing, and presenting a vchiq service as an alsa device
but i dont see the code in `drivers/staging/vc04_services/bcm2835-audio/bcm2835.c` that is responsible for setting the pins to the chosen set from the gpio block in the dts
and how does the firmware know if it should use pwm0 or pwm1?
i notice a swap_lr in the overlay, but the driver never reads it, is the firmware peeking at the dtb after applying overlays and then acting on that?
Re: Raspberry Pi 400 3,5mm jack
AFAIK, extracting audio from GPIO using passive circuity does not really give a good high quality audio...
so if I were to venture into doing that...I'd rather:
a. use a USB audio dongle with 3.5mm jack, or
b. make my own I2S audio adapter to be plugged to the 40 pin header
audio will be directed to a 3.5mm jack that I will install (on the I2S adapter)
I still have a few PCM5102A modules with me...
enabling the USB audio dongle or the I2S module are much easier to do...
so if I were to venture into doing that...I'd rather:
a. use a USB audio dongle with 3.5mm jack, or
b. make my own I2S audio adapter to be plugged to the 40 pin header
audio will be directed to a 3.5mm jack that I will install (on the I2S adapter)
I still have a few PCM5102A modules with me...
enabling the USB audio dongle or the I2S module are much easier to do...
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"
Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"
Come to me with 'problems' and I'll help you find solutions"
Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"
-
- Posts: 6984
- Joined: Sat Aug 18, 2012 2:33 pm
Re: Raspberry Pi 400 3,5mm jack
except, that is exactly what the 3.5mm jack on every existing pi model is doing
so its more a question of if the old quality is good enough, or if you want to go for something better
Re: Raspberry Pi 400 3,5mm jack
you have a very good point there...everyone has their preferences...cleverca22 wrote: ↑Thu Nov 05, 2020 9:47 amexcept, that is exactly what the 3.5mm jack on every existing pi model is doing
so its more a question of if the old quality is good enough, or if you want to go for something better
"tinker for good.... or tinker for even better...."
well anyway what will eventually be done will be sort of a "pluggable module" to the GPIO header...
that may be swapped according the the user's use case...
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"
Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"
Come to me with 'problems' and I'll help you find solutions"
Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"
-
- Posts: 6984
- Joined: Sat Aug 18, 2012 2:33 pm
Re: Raspberry Pi 400 3,5mm jack
i'm thinking that a hat (with the overlay eeprom) and a 3.5mm jack would be a pretty easy board to design, and would make upgrades trivial for the end-userLTolledo wrote: ↑Thu Nov 05, 2020 9:56 amyou have a very good point there...everyone has their preferences...cleverca22 wrote: ↑Thu Nov 05, 2020 9:47 amexcept, that is exactly what the 3.5mm jack on every existing pi model is doing
so its more a question of if the old quality is good enough, or if you want to go for something better
"tinker for good.... or tinker for even better...."
well anyway what will eventually be done will be sort of a "pluggable module" to the GPIO header...
that may be swapped according the the user's use case...
Re: Raspberry Pi 400 3,5mm jack
I'd prefer fitting the audio interface internally, soldered to the back of the GPIO connector. Leaving the outside gpio clear.cleverca22 wrote: ↑Thu Nov 05, 2020 10:05 ami'm thinking that a hat (with the overlay eeprom) and a 3.5mm jack would be a pretty easy board to design, and would make upgrades trivial for the end-userLTolledo wrote: ↑Thu Nov 05, 2020 9:56 amyou have a very good point there...everyone has their preferences...cleverca22 wrote: ↑Thu Nov 05, 2020 9:47 am
except, that is exactly what the 3.5mm jack on every existing pi model is doing
so its more a question of if the old quality is good enough, or if you want to go for something better
"tinker for good.... or tinker for even better...."
well anyway what will eventually be done will be sort of a "pluggable module" to the GPIO header...
that may be swapped according the the user's use case...
-
- Posts: 6984
- Joined: Sat Aug 18, 2012 2:33 pm
Re: Raspberry Pi 400 3,5mm jack
that could also be done, and id argue that there was already room for that, but the RPT says there wasnt
you just need to make sure the end-user doesnt try to use those pins for something else, and then drill a hole somewhere for the headphone jack
Re: Raspberry Pi 400 3,5mm jack
those new and upcoming devices may not be called HATs anymore as it wont be on "top" of the board
it might be a bit awkward to call it HAB (as in Hardware Attached to Back)
I wonder how the RPi folks will name those.....

it might be a bit awkward to call it HAB (as in Hardware Attached to Back)

I wonder how the RPi folks will name those.....

"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"
Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"
Come to me with 'problems' and I'll help you find solutions"
Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"
Re: Raspberry Pi 400 3,5mm jack
I think the simplest, easiest, cheapest pluggable audio connection is a USBaudio card.
Or USB speakers with single USB connection
[Edited to remove info on speakers that, it turns out, require 3.5mm socket]
Or USB speakers with single USB connection
[Edited to remove info on speakers that, it turns out, require 3.5mm socket]
Last edited by PiGraham on Fri Nov 06, 2020 1:45 pm, edited 1 time in total.
Re: Raspberry Pi 400 3,5mm jack
You mean like the many that already exist?cleverca22 wrote: ↑Thu Nov 05, 2020 10:05 ami'm thinking that a hat (with the overlay eeprom) and a 3.5mm jack would be a pretty easy board to design, and would make upgrades trivial for the end-user
Knowledge, skills, & experience have value. If you expect to profit from someone's you should expect to pay for them.
All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides
All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides
Re: Raspberry Pi 400 3,5mm jack
...beret?
Re: Raspberry Pi 400 3,5mm jack
"back side"... yes...
confusion may arise if thought to be as "left side" or "right side"
maybe better wait for any "official announcement" from RPF folks on this matter.....
anyways.... it seems that RPi400 may not be powered via GPIO headers..(read from another forum topic).
may dampen some of my upcoming audio projects with the RPi400..
thus in the meantime... USB audio dongles or USB attached speakers are the only option at the moment
good thing though... my Sound Blaster XiFi Go is available for use....
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"
Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"
Come to me with 'problems' and I'll help you find solutions"
Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"
-
- Posts: 16107
- Joined: Fri Mar 09, 2012 7:36 pm
- Location: Vallejo, CA (US)
Re: Raspberry Pi 400 3,5mm jack
Not *quite* the only options...one could use Bluetooth attached speakers as an option.
Re: Raspberry Pi 400 3,5mm jack
yeah... forgot about that...sorryW. H. Heydt wrote: ↑Thu Nov 05, 2020 10:00 pmNot *quite* the only options...one could use Bluetooth attached speakers as an option.

being used to physically wired connections only...

"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"
Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"
Come to me with 'problems' and I'll help you find solutions"
Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"
-
- Posts: 6984
- Joined: Sat Aug 18, 2012 2:33 pm
Re: Raspberry Pi 400 3,5mm jack
i mean a new shape/design, that fits the shape of the pi400, and wont stick out like an old hat that perfectly fit the pi4bthagrol wrote: ↑Thu Nov 05, 2020 4:53 pmYou mean like the many that already exist?cleverca22 wrote: ↑Thu Nov 05, 2020 10:05 ami'm thinking that a hat (with the overlay eeprom) and a 3.5mm jack would be a pretty easy board to design, and would make upgrades trivial for the end-user
Re: Raspberry Pi 400 3,5mm jack
I see. Personally I think RPT missed a trick by not rotating the GPIO connector 180 degrees. Existing boards would then plug in vertically. I guess the desire to have the pins in the same orientation as all other models and all those internet diagrams won out.cleverca22 wrote: ↑Fri Nov 06, 2020 8:23 ami mean a new shape/design, that fits the shape of the pi400, and wont stick out like an old hat that perfectly fit the pi4bthagrol wrote: ↑Thu Nov 05, 2020 4:53 pmYou mean like the many that already exist?cleverca22 wrote: ↑Thu Nov 05, 2020 10:05 ami'm thinking that a hat (with the overlay eeprom) and a 3.5mm jack would be a pretty easy board to design, and would make upgrades trivial for the end-user
Knowledge, skills, & experience have value. If you expect to profit from someone's you should expect to pay for them.
All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides
All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides
Re: Raspberry Pi 400 3,5mm jack
I am not sure how you mean because it seems to me they do. Admittedly the keyboard user would be looking at the underside of a HAT when plugged in rather than the top.
I have to admit the official RPF "You can connect HAT hardware directly to the 40-pin GPIO header, but it will be pointing backwards and down" makes no sense to me. The 400 looks to be using a right-angle header set against a normal Pi. HAT's which covered a Pi would therefore pivot about the header, facing backwards but up.
Maybe I'm missing something.
Last edited by hippy on Fri Nov 06, 2020 1:41 pm, edited 1 time in total.
Re: Raspberry Pi 400 3,5mm jack
Sorry for the lack of clarity. What I meant was leave it where it is but instead of having physical pin one in the top right have it in the bottom left. HATs would then plug in directly with the board extending upwards not downwards as they would now.hippy wrote: ↑Fri Nov 06, 2020 1:28 pmI am not sure how you mean because it seems to me they do. Admittedly the keyboard user would be looking at the underside of a HAT when plugged in rather than the top.
Is that what you are meaning; put the HAT connector on its top, adjust the 400 header to suit ?
That would work but they'd have to find a connector with some means of preventing existing HAT's being plugged in and I can foresee problems when ribbon cable gets used.
Edit:
Scratch that. I think I've visualised it incorrectly.
Knowledge, skills, & experience have value. If you expect to profit from someone's you should expect to pay for them.
All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides
All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides
Re: Raspberry Pi 400 3,5mm jack
I edited my post, but will repeat here as it better facilitates flow ...
I have to admit the official RPF "You can connect HAT hardware directly to the 40-pin GPIO header, but it will be pointing backwards and down" makes no sense to me. The 400 looks to be using a right-angle header set against a normal Pi. HAT's which covered a Pi would therefore pivot about the header, facing backwards but up.
Maybe I'm missing something.
Re: Raspberry Pi 400 3,5mm jack
They should have removed one pin (an earth) to make a key to prevent the connector being connected the wrong way round.hippy wrote: ↑Fri Nov 06, 2020 1:43 pmI edited my post, but will repeat here as it better facilitates flow ...
I have to admit the official RPF "You can connect HAT hardware directly to the 40-pin GPIO header, but it will be pointing backwards and down" makes no sense to me. The 400 looks to be using a right-angle header set against a normal Pi. HAT's which covered a Pi would therefore pivot about the header, facing backwards but up.
Maybe I'm missing something.
-
- Posts: 6984
- Joined: Sat Aug 18, 2012 2:33 pm
Re: Raspberry Pi 400 3,5mm jack
its already using the standard 0.1" keyed shroud, where the ribbon cables will only fit in one way
but no past model had that key, so nobody has been making keyed hats