I know that i cannot use pwm and audio output at the same time, can I use the audio input? I want to move some servos based on an audio trigger signal.
-
What do you mean by audio input? I'm ignorant in this area but was not aware of any audio input support being provided by the hardware PWM peripheral.– joanCommented Sep 13, 2018 at 19:15
-
never mind, i thought the pi had a 4 pole jack, so it had a microphone input.– 88119966Commented Sep 13, 2018 at 20:30
-
You can use a USB dongle for audio. Also note that there are plenty of ways of providing servo suitable PWM on the Pi without using the hardware PWM peripheral.– joanCommented Sep 13, 2018 at 20:45
Add a comment
|
1 Answer
There is no audio input on the Pi. You can use a GPIO header sound card (check here for an incomplete short list) for audio input. It is likely that you will not be able to use the PWM onboard if you use the I2S bus for the external audio input.
-
You could also use a run-of-the mill USB sound adapter with a mic jack. Most of them should be fine, feel free to ask if you are unsure (but please don't ask "Which one should I buy?", read "Asking for specific purchasing recommendations" on the off-topic page first).– goldilocks ♦Commented Sep 14, 2018 at 3:41