Electrical – Arduino Audio Input from AUX cable

arduinoaudiomusicvoltage

I want to feed Audio input (music played in my phone or laptop) to Arduino using an AUX cable(3.5 mm).

I know that we need to offset and amplify the signals as the Arduino takes input from 0 to 5v and the signals are very small.

I really searched all over the internet but couldn't find any step by step or basic stuff.

Please help !!

P.S. – I am not very mature in the field of electronics.

Thanks

Best Answer

  1. Amplify the signal so that peak-to-peak voltage is within 5V but high enough for it to be meaningful to the Arduino. You can use an op-amp based amplifier using the inverting or non-inverting configurations. Look at the inverting and non-inverting amplifiers here: https://en.wikipedia.org/wiki/Operational_amplifier_applications#Amplifiers

  2. Offset the voltage. This can be as simple as AC coupling the output and using a voltage divider to create the offset. Creating DC offset