what is an ADC? I tried googling it and couldnt find anything valid as to what this is.
~Michael
what is an ADC? I tried googling it and couldnt find anything valid as to what this is.
~Michael
Analog to Digital ConverterOriginally Posted by Tear
BTW
Are you really willing to use a PIC 16F84 for this simple task?
any 8 pin 12F or even a 10F could do this.
Or even simpler: somethimg like the NE555
(does not even require any programming at all)
This thread is a good example of what you end up with if you don't give sufficient details in the first place.
Last edited by NavMicroSystems; - 9th July 2005 at 00:31.
regards
Ralph
_______________________________________________
There are only 10 types of people:
Those who understand binary, and those who don't ...
_______________________________________________
you dude, ADC means Anologue to Digital Comparator or something. it basically will give you a decimal readout of a signal (usually 0 to 255) rather then 1 or 0. it it can be hard to set up beacuse you would likely need to build a transforming circuit.
do you even know what type of signal must be sent out the amp siganl line? is it 5 or 12 volts DC? does it stay at 5-12 volts dc or does it just sent a pulse?
this could be made without a pic. but if you must these are things to consider.
sound to me like all you need is a zener diode and resistor connected between the ac sound signal and a pics input. not sure how much power a deck can produce and not really sure the value or the components, but get one that wont allow more then 5volts and limited current. if the current is higher then extepcted then i would use an isolation relay like the one posted at the top, this will prevent frying the pic. if all you can find is a standard relay that should work too but will be clicking like crazy.
just write a code that is like this:
if pic recives pulse on input line then
turn on amp
endif
the pics input pin will be reciving random pulses as the music plays so youll ne ed to write a workaround like:
if no pulse is recived within 1 minutes then
shut off amp
endif
how do you plan on powering the pic?
google search zener diode, optical isolation relay, rectification
also, using you meter, meaure the ac signal out the deck with the volume all theway up. also measure the amp signal on your car. im not 100% sure but when you meause the amp signal line go from that wire to ground in dc mode. but when measuring the speakers go from speaker LF + to speaker LF - (left front ) in ac mode.
That's an area i'm really experienced with. I did installation for more than 10 years as now. Still do some times..
100% of the aftermarket amplifier need a constant 12 volt to turn them on. Usally called PCon, Remote or Turn-on Lead. The amplifier will stay on as long as you send him a 12volt on the remote terminal.do you even know what type of signal must be sent out the amp siganl line? is it 5 or 12 volts DC? does it stay at 5-12 volts dc or does it just sent a pulse?
Those deck work on 12Volts and never use internal voltage shifter to raise te voltage. So a MAX of 14Volts amplitude will be on the Speaker terminal when the car is running. Simple Voltage divider built with 2 resistor will do the job. Let's say 10K in serie between PIC and Speaker, 5.1k(or a few less) between PIC input and gnd. We can skip the capacitor in serie.not sure how much power a deck can produce and not really sure the value or the components, but get one that wont allow more then 5volts and limited current.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks