Guest
#3351639
Hi, my first post here, I hope it fits in this forum. I just want a device, that detects, if there is a signal (playing audio) on the incoming audio source AND lets the signal pass to an output audio jack. So the signal must not be screwed up by the detector part. I built this using: -http://www.ti.com/product/lm324 this op amp as inverting amplifier (10meg as feedback, 10k between input and op amp). The op amp is single supplied with 5v and "stretches" the signal to 0-5v. -atmega168/328 (prototyping on arduino) to measure the amplified signal on the analog pin (simple algorithm detects audio). Readout every 2 ms. -4066 ic to let the signal pass or not So far, this works perfect, when using normal audio sources.. When connecting my Smartphone/Laptop/Pc directly from the devices audio jack the arduino shows fluctuating values (while playing music..), app. 0-4v. BUT the big issue is when using a usb sound card as audio source. When connecting these the arduino measures 0v all the time. Only on the highest volume some "peaks" show up. I tried different resistor values and other things, always 0v. There has to some fundamental difference between "normal" audio devices and usb sound cards I don't get.. Why does this happen/what did I misunderstand? requirements: -5v single supply -reliable detection, even on low volume/small signals I am using these usb sound cards: http://www.amazon.com/Channel-External-Sound-Audio-Adapter/dp/B007HISGRW/ref=sr_1_3?s=electronics&ie=UTF8&qid=1381260794&sr=1-3&keywords=usb+sound+card http://www.amazon.de/gp/product/B0028RZ23I/ref=s9_simh_gw_p147_d0_i1?pf_rd_m=A3JWKAKR8XB7XF&pf_rd_s=center-2&pf_rd_r=04Z8TB25BPEB1Z780Y48&pf_rd_t=101&pf_rd_p=433224547&pf_rd_i=301128