AC Signal...


Closed Thread
Results 1 to 19 of 19

Thread: AC Signal...

Hybrid View

  1. #1
    Warrier's Avatar
    Warrier Guest


    Did you find this post helpful? Yes | No

    Default AC signal

    Ralph:

    Sorry I didn't make it clear, I guess. When using the optocoupler, the resistor would be across the two back to back LEDs inside the opto coupler. So the voltage across the resistor would only be +/- 1.7volts (the LED drop). Wattage is thus not an issue...

    The series resistor of say 1Meg is INSTEAD of the opto coupler and need not carry the LED currents. It would be connected in series with the input pin of the PIC and is to limit the current through the clamping diodes provided on all I/O pins with a max current limit of +/-20mA.

    With a 1 M resistor, the I/O current is safely limited to 240uA and the wattage would be about 0.06watts for the 240VAC. My concern was that Mr. Schmidt may accidentally come in contact with the live AC line with a "shocking" experience**** There might be some fire-works also.

    -warrier

    -warrier

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    >> don't you think you need to provide a DC path for the LEDs in the opto coupler to conduct?

    No. Think outside the box. Look at what C1 is doing at the supply frequency.

    >> the resistor would be across the two back to back LEDs inside the opto coupler

    Again no. This particular opto only has one LED.

    >> even use a series resistor (1Meg or more) to any input as the internal clamping diodes will limit this to Gnd and Vdd.

    You really want to rely on a Resistor and the PICs clamping diodes to stand between you and oblivion?

    In my circuit the LIVE AC is on the primary (input) side of the opto. No LIVE circuitry (nope not even 240uA of it) ever touches the PIC. If your Resistor failed, the PIC would become LIVE at supply potential. In my circuit, if either C1, D1 or the opto failed, you would still be insulated by the ISOLATION characteristics of the opto (usually 5kV breakdown or more).

    This is not a 'Theoretical' circuit plucked out of the air... it actually works and is in use in thousands of products every day. In the snapshot appended, here is the very circuit where the PIC is monitoring the state of two totally separate but critical AC Supply fuses.
    Attached Images Attached Images  

  3. #3
    Tear's Avatar
    Tear Guest


    Did you find this post helpful? Yes | No

    Default

    Hi,

    What I am trying to accomplish is to build a delay device that turns on your amp a few secs after the radio is turned on. I have already built this using the amp turn on line from the stereo which is DC Voltage line. However for my brother's car, that I also would like to put this in, his stereo doesn't have an amp turn on. Due to this I need to use the speaker lead which is an AC voltage signal.

    Orginally I thought that using a AC/DC converter on a microcontroller might do the trick, but on further inspection it turns out this is not the case. I am now thinking about building a simple PNP Transistor Switching Circuit where the AC Voltage signal (line) would be connected to the base and control the switching with a +5V DC voltage following to the PIC when the switch is closed. However, I am not sure if this will work.

    Essentially the easiest way to characterize what I need to do is somehow have the PIC dectect when the AC signal is HIGH either directly or maybe through some circuit like a PNP Transistor switch. Once the PIC detects the line as being HIGH then it will delay and set the output HIGH.

    I hope that this explains what I am trying to do a little better, and thanks for the help.

    ~Michael

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Hmmm not quite an 'AC Power Source' ...

    So you're telling us that the AC is really a dinky Audio Signal from a car radio and not a High-Voltage 'Power Source' ?

  5. #5
    Tear's Avatar
    Tear Guest


    Did you find this post helpful? Yes | No

    Default

    Well I havent measured so I dont know the exact voltage of the AC signal, but it is AC voltage signal that also powers the car speaker that it would feed off of.

    ~Michael

  6. #6
    Join Date
    Mar 2005
    Location
    Denmark
    Posts
    31


    Did you find this post helpful? Yes | No

    Post

    Hi Tear,

    Sorry to say it, but I think your on a slippery slope.

    I agree that it is really fun to play and work with PIC's but I really think that there most be an easier way for you than to use a PIC for this job.

    Are you sure that there is'nt a signal out from the car stereo for an electrical antenna or for the amplifier, this is quite normal when you have a lineout signal from the car stereo.

    Sorry this is getting OT !

    Sharky

    Ps. Thanks Melanie your circuit is really something I can use, normally I use a two-coulor LED to check if a fuse it blown, but it will be very cool to let a PIC do something to indicate that a fuse is blown
    *Let's do it*

  7. #7
    Tear's Avatar
    Tear Guest


    Did you find this post helpful? Yes | No

    Default

    Well there is the antena lead off of the head unit (stereo) but the problem when using it is that if you play CD's instead of listening to the radio using the antena the line will be low and turn the amp off. This is due to the fact that the antena only has power when listening to the radio.... as far as I know.

    ~Michael

  8. #8
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    If it's the factory radio this is probably the an HONDA, or NISSAN.... and most of them will cut the power on the electric antenna wire when switching to CD, tape deck.

    Well there's another way... just use the accessory wire at the ignition switch, then do a delay... or not. Many time i did it in the past.

    As far as i remind, DEI do something like the unit you want to do.

    Usually, 6V is present between each speaker lead and ground(drive BTL by TDA73XXXX amp or equiv). Easy way, use capacitor to remove the DC, pass it thru an OP-AMP/Voltage comparator/ADC and then activate/disable you Amplifier remote lead.

    Many car have also external amplifier, if you give me the car model/year i can see if there's any possibility of external amplifier.

    EDIT: Is the unit the original or aftermarket?? If it's an aftermarket, as previoulsy mention... many chances are that the Power Antenna wire will also send DC while the CD is running... case not you must have 2 of thes blue wire back to this unit...
    Last edited by mister_e; - 8th July 2005 at 03:38.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Measuring p-p of a 1.5v to 12v ac signal?
    By sccoupe in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th October 2009, 16:22
  2. Decoding an incoming infrared signal: need advice
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 9th May 2008, 16:28
  3. PIC16F684 + LCD to use the 256bytes of EEPROM - HELP
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th March 2008, 14:19
  4. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  5. Rc signal help
    By geckogrotto in forum mel PIC BASIC Pro
    Replies: 42
    Last Post: - 27th August 2006, 00:10

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts