Page 1 of 1

More than one connection to gpio and speaker/mic problem

Posted: Thu Nov 08, 2018 7:55 am
by GFC420
Hello
I am now to pri so i have a question. Can you connect more than one wire to same gpio data pin or power pin and how to connect mic+speaker to 4.5mm jack?
Thanks

Re: More than one connection to gpio and speaker/mic problem

Posted: Thu Nov 08, 2018 12:47 pm
by fruitoftheloom
GFC420 wrote:
Thu Nov 08, 2018 7:55 am
Hello
I am now to pri so i have a question. Can you connect more than one wire to same gpio data pin or power pin and how to connect mic+speaker to 4.5mm jack?
Thanks

The Raspberry Pi SBC 1B+ / 2B / 3B / 3B+ has a 3.5mm output jack TRRS4

https://www.raspberrypi-spy.co.uk/2014/ ... ideo-jack/


There is no input for microphone without additional hardware !

Re: More than one connection to gpio and speaker/mic problem

Posted: Thu Nov 08, 2018 2:52 pm
by GFC420
Thanks to what hardware wpuld i need to add and how to connect a mic to a for pole audio jack
Thanks

Re: More than one connection to gpio and speaker/mic problem

Posted: Thu Nov 08, 2018 3:06 pm
by mahjongg
The PI does NOT have any audio input hardware.
Common solutions, an USB or I2S microphone.

Re: More than one connection to gpio and speaker/mic problem

Posted: Thu Nov 08, 2018 3:52 pm
by GFC420
Ok then but what about connecting one or more wiert to the same gpio pi like in case of 2 sensors needing same pin?
Thanks

Re: More than one connection to gpio and speaker/mic problem

Posted: Thu Nov 08, 2018 4:00 pm
by B.Goode
GFC420 wrote:
Thu Nov 08, 2018 3:52 pm
Ok then but what about connecting one or more wiert to the same gpio pi like in case of 2 sensors needing same pin?
Thanks
If the sensors use a 'bus' technology like 1-wire or I2C then that will be taken care of by the bus protocol itself.

If the sensors simply signal by an on/off state that won't work: the RPi will have no way of knowing which external device has changed the state of the signal: you will need to redesign your project so that different sensors use different gpio pins.

Re: More than one connection to gpio and speaker/mic problem

Posted: Thu Nov 08, 2018 4:08 pm
by GFC420
Ok thanks and last question can electret mic be used in i2s bus and what circutry would i need?
Thanks

Re: More than one connection to gpio and speaker/mic problem

Posted: Fri Nov 09, 2018 10:17 am
by LTolledo
if you want mic input to RPi, better use a USB sound dongle with analog out and mic in ports. Those same ones that you can use on a windows pc (like the SoundBlaster X-Fi Go). Even those cheapo USB dongles work with the RPi

the program/app you want to use must be able to identify and access the mic port on the USB sound dongle.

me have of those dongles, use only for sound output, I have no use for the mic input (nor will ever try it).

Re: More than one connection to gpio and speaker/mic problem

Posted: Fri Nov 09, 2018 12:57 pm
by GFC420
Thanks
I fond solutions and i have a mini 0.25w speakers so no problem thanks to everyone for help