Hi all
I need to connect a audio input from a laptop to my arduino.
the laptop is not always the same, and that is not possible to install software at the laptop, the laptops is i a car, and supplyed by a 12VDC til 230VAC inverter thats suppply the normal charger to the laptop.
My arduino will be supplyed from the car with 12VDC.
someone told me, to use a op-amp with a optocoupler, and supply it from the USB port at the pc, and then use the optocoupler to trigger a input.
The whole thing is, that i want the arduino to measure the length of the played sound, (between 3 and 6sec, or so) and then trigger a relay output.
It is fore use with som mobile dispatch system, where drive orders is sendt to the pc by GPRS connection, and a ring tone is played when the order cames, but somtimes there is hours between orders, and then the driver must stay in the car to watch the pc, and in the car there is already mounted a auto-pager, (call system) with a usable input. then it is possible fore the driver to leave the car, until 200meters
Anyway.. since iam pretty new to this, i do not now if the way with op-amp and optocoupler is the rigth wany, and also i do not know how to connect it..
Can sombody please help me? how to connect it, what op-amp do i need, and so, om..
If sombody have even better ideas, you are werry welcome
thanks.
Brian, Denmark