GFC420
Posts: 6
Joined: Thu Nov 08, 2018 7:51 am

More than one connection to gpio and speaker/mic problem

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

fruitoftheloom
Posts: 19582
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

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

Thu Nov 08, 2018 12:47 pm

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 !
adieu

My other Computer is an Asus CS10 ChromeBit running Chrome Operating System.
HP Envy 4500 Wireless Printer supported by HPLIP software in Raspbian Buster.
Raspberry Pi Model 2B v1.1

GFC420
Posts: 6
Joined: Thu Nov 08, 2018 7:51 am

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

Thu Nov 08, 2018 2:52 pm

Thanks to what hardware wpuld i need to add and how to connect a mic to a for pole audio jack
Thanks

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 11770
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

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

Thu Nov 08, 2018 3:06 pm

The PI does NOT have any audio input hardware.
Common solutions, an USB or I2S microphone.

GFC420
Posts: 6
Joined: Thu Nov 08, 2018 7:51 am

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

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

B.Goode
Posts: 7758
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

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

Thu Nov 08, 2018 4:00 pm

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.

GFC420
Posts: 6
Joined: Thu Nov 08, 2018 7:51 am

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

Thu Nov 08, 2018 4:08 pm

Ok thanks and last question can electret mic be used in i2s bus and what circutry would i need?
Thanks

LTolledo
Posts: 1414
Joined: Sat Mar 17, 2018 7:29 am

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

Fri Nov 09, 2018 10:17 am

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).
"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!"

GFC420
Posts: 6
Joined: Thu Nov 08, 2018 7:51 am

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

Fri Nov 09, 2018 12:57 pm

Thanks
I fond solutions and i have a mini 0.25w speakers so no problem thanks to everyone for help

Return to “Beginners”