I need to buy some pots and then I can try this.View attachment 181670
Place a 50k pot in series with the coupling capacitor to adjust the input voltage. If your headphone output voltage is too high, the wave will be clipped.
I need to buy some pots and then I can try this.View attachment 181670
Place a 50k pot in series with the coupling capacitor to adjust the input voltage. If your headphone output voltage is too high, the wave will be clipped.
I know you don't need to, I find it easier to understand though.You dont need to invert the signal for coding, it should be the same. For amplitude, just look for the lowest value and subtract it from 1023.
Ok, that's good to know - I'm using the 2N2222A anyway so that's fine.2N3906 is a PNP, the circuit is for an NPN.
Bob
I should have. But I wasn't. Why? I'm not too sure. Could be any number of reasons.This thread is making me crazy. Decide on a circuit to get the signal into the Arduino and do the rest in software. You should have been done days ago.
Bob
You can replace R4 with lower value, the gain right now is R3/R4 = 2000/200 = 10. If you replace R4 with 100 then 2000/100 = 20. SoIt's possible the output of Spotify is quieter and so less happens.
I will give that a go.You can replace R4 with lower value, the gain right now is R3/R4 = 2000/200 = 10. If you replace R4 with 100 then 2000/100 = 20. So
if you have a 1k or less pot, you can replace R4 with it and play around till you get the lowest value without clipping the wave form.
Your transistor amplifier in post #118 is biased wrong causing its positive output to be clipping like crazy.
I changed the value of R1 to fix it and reduced the input level. The output averages about +3.0V.
Purposely did that, we dont need the whole wave form for this projectNo it does not. It is bias so that only the positive portion of the input signal is amplified
You can replace R4 with lower value, the gain right now is R3/R4 = 2000/200 = 10. If you replace R4 with 100 then 2000/100 = 20. So
if you have a 1k or less pot, you can replace R4 with it and play around till you get the lowest value without clipping the wave form.
I will try that soon, thanks!Your transistor amplifier in post #118 is biased wrong causing its positive output to be clipping like crazy.
I changed the value of R1 to fix it and reduced the input level. The output averages about +3.0V.
Even with a gain of 200, it's not very reactive to quiet music. It is working however.You can replace R4 with lower value, the gain right now is R3/R4 = 2000/200 = 10. If you replace R4 with 100 then 2000/100 = 20. So
if you have a 1k or less pot, you can replace R4 with it and play around till you get the lowest value without clipping the wave form.
Am I seeing things? 200 gain? Thats like your headphone output is less then 20mVEven with a gain of 200, it's not very reactive to quiet music. It is working however.
It is odd. It wasn't working the first time because the input wire was off by one hole, so there was no input. When I put the wire in the correct place I expected it to go crazy but it was very calm.Am I seeing things? 200 gain? Thats like your headphone output is less then 20mV
Thanks for the info, I will add that in.I just want to point out that, this type of amplifier (class B) does not produce a perfect 180 degree angle, so an offset is needed in your code. To figure this offset out, you can feed it a known low frequency, detect the rising and falling edge and compute from there.
by Aaron Carman
by Jake Hertz
by Aaron Carman
by Jake Hertz