Shop OBEX P1 Docs P2 Docs Learn Events
Detecting Air Conditioner Power Status — Parallax Forums

Detecting Air Conditioner Power Status

william chanwilliam chan Posts: 1,326
edited 2008-12-17 23:57 in General Discussion
Hi,

Anybody knows what would be the easiest and cheapest way to detect whether an air-conditioner is on or off?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.fd.com.my
www.mercedes.com.my

Comments

  • SRLMSRLM Posts: 5,045
    edited 2008-12-09 07:41
    You could place a photo resistor over one of the 'on' LEDs, then do an RC circuit. That would be about 25 cents. This is assuming that you are going to use it with a microcontroller. Are you? What/who needs to know if it's on or off?
  • william chanwilliam chan Posts: 1,326
    edited 2008-12-09 08:22
    That is a great idea !
    Yes, I am thinking of using SX or Propeller for this smart home project.

    But then the air-con power led would be blocked from being seen by the user then... Hmmm....

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.fd.com.my
    www.mercedes.com.my
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2008-12-09 12:49
    If you don't happen to have a photo-resistor you could just use an LED that matches the color of the ON LED and couple that to a transistor. The LED operates as an excellent and inexpensive sensor and generates a minute amount of current that can be used to bias the transistor on thus pulling the output low. The same circuit can also be used for detecting daylight etc.

    OTHER USES:
    This general-purpose LED circuit can operate at relatively high speeds making it quite suitable even for serial communications. In fact the same LED can be used for bi-directional communications. You can choose to use an INFRARED LED or any LED as long as it's the same "color" at both ends. This means that that little power indicator on the front panel of your project could be a secret transmitter/receiver. These circuits work as I have used them on vending machines to accept commands from IR remotes and transmit reports etc via IR to a handheld printer as well as standard bidirectional serial communications.

    *Peter*
    613 x 549 - 10K
  • BradCBradC Posts: 2,601
    edited 2008-12-09 14:10
    william chan said...
    Hi,

    Anybody knows what would be the easiest and cheapest way to detect whether an air-conditioner is on or off?

    I do it two ways. An optocoupler connected to the compressor supply (240v), and a DS18B20 mounted in the discharge vent.
    The optocoupler is a dead giveaway and pretty basic, but the DS18B20 gives me about ~25 Deg C when the compressor is not running and about 6 Deg C when it is.
    That way I have insurance that the compressor actually has power (ie my solid state relay is working) and it is actually running and has not iced up the evaporator (When the evap ices I get a discharge temp of about 18 Deg C and I know it's time to service it).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cardinal Fang! Fetch the comfy chair.
  • Carl HayesCarl Hayes Posts: 841
    edited 2008-12-09 14:34
    I'd use a relay. Simple, cheap, reliable. There are relays in the AC already -- and maybe one of them has an extra set of contacts, not being used. That's actually common. Then the parts cost would be zero. If not, you'd have to add a relay, still cheaper and more robust than most other methods. In particular, the photodetector on an existing LED may not work as expected, because that LED probably blinks on and off 120 times per second.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    · -- Carl, nn5i@arrl.net
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2008-12-09 14:43
    Peter Jakacki,

    You·need a resistor on the transistor's base.· Otherwise the transistor will turn·on and the LED won't since the forward bias of the transistor is typically .6V and the forward bias of·an LED is typically 1.7V (<-depending on color and make).· Something like a 100 to 330 Ohm resistor should be fine, delivering about 10mA to 3.3mA to the transistor.


    Ther's always an Opto-isolator... Aside from a relay, that would be your safest bet to avoid any ground loop problems.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • ElectricAyeElectricAye Posts: 4,561
    edited 2008-12-09 22:54
    William,

    you might want to take a look at http://forums.parallax.com/showthread.php?p=762477

    Mark
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2008-12-10 02:56
    william chan

    This is very easy to do just hook up a Optic Sensor··like 4N25·to·the ·contactor coil which is 24 volt· on your
    air-conditioner·outside unit·or you can do it at air handler


    At air handler

    One side of the transformer which is·not·the·red·wire side·hook to the transformer

    Because the red· which the one that goes to the thermostat·all of these colors· green·and white·and orange·and yellow wires·are·on the same side of the transformer··

    The· yellow wire which is supposed to be the wire to the compressor contactor coil and the other wire which can black or blue· or any other color on the other side of the transformer are the two wire that you will need

    This is how you can tell if your unit is a heat pump· if the outside unt come ON for both heat and cool·then it is a heat pump· unit


    If this is a Heat pump


    Make sure that in·HEAT·or·COOL·MODE·· that the same two wire work for both setting
    ·

    If this not a· HEAT PUMP unit then this will only be true in the COOL MODE


    There·is a very easy way to check that you have the right two wires is to use a volt meter on this if you get 24 volt when the out side unit is running and you do not have 24 volt when it is not running you have the right two wires


    ·

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ··Thanks for any·idea.gif·that you may have and all of your time finding them

    ·
    ·
    ·
    ·
    Sam

    Post Edited (sam_sam_sam) : 12/10/2008 3:15:09 AM GMT
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2008-12-10 03:00
    Beau,
    A base resistor is usually used to limit the current which will be clamped by any transistor to around 0.6V. When a current source is self limiting there is absolutely no need for a current limit resistor. Sure, you can add one but you are never ever ever going to get very much current at all from operating an LED in photo-voltaic mode as a current source. The LED forward voltage is immaterial in this configuration. All devices exhibit some amount of ESR (equivalent series resistance).
    Trying to operate the LED in purely voltage mode requires a much higher input resistance than is achievable by a simple resistor+transistor and typically an opamp is used, but the response is slow.

    Remember we are using the LED as a passive sensor that generates a voltage/current in response to light not as a "current to light converter".

    Have a look at how photodetectors are coupled directly to opamp inputs which is effectively a nulling input at 0V, no series resistors, no voltage.

    *Peter*
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2008-12-10 03:15
    Peter Jakacki,
    ·
    I misunderstood... I thought you were piggybacking off of an existing LED that illuminated.· Even still, it takes a fairly bright light to generate voltage from an LED, you might need to bias the transistor some for proper detection.
    ·
    william chan,
    ·
    Back to the question..."Anybody knows what would be the easiest and cheapest way to detect whether an air-conditioner is on or off?" .... My Red-Neck approach would be to place something in front of the vent that activated a switch.· Properly positioned, something like this would work...
    ·
    http://www.parallax.com/Store/Sensors/PressureFlexRPM/tabid/177/CategoryID/52/List/0/Level/a/ProductID/432/Default.aspx?SortField=ProductName%2cProductName

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2008-12-10 03:28
    That's ok Beau, I'd take a red-neck approach as well in this case even perhaps using a thermistor and pass current through it to heat it just so you could measure the cooling effect (air-flow) of the A/C.

    I just mentioned the LED as a sensor thing because photo resistors aren't just normally lying around and then I got carried away with OT "other uses".

    *Peter*
  • MSDTechMSDTech Posts: 342
    edited 2008-12-10 15:33
    Beau,
    You idea to place something in front of the vent that activated a switch isn't that redneck. When I installed my whole house humidifier, one of the elements of the control circuit was a sensor to detect airflow in the return vent to the furnace. It was a flat piece of sheet metal spot welded to a microswitch mounted on a plate that fastened it to the vent wall. You just had to line up the arrow on the plate to make sure that the air flow closed the switch. If I can find the instruction sheets and part numbers, you might be able to just by the switch. Installation is simple - cut hole in vent, mount unit in hole with arrow in direction of air flow, connect wires.
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2008-12-10 17:01
    Another semi-low tech approach would be to piggyback the power to the blower with a small transformer ... then just see if the voltage is present or not from the output of the transformer.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2008-12-12 01:10
    MSDTECH -

    The device you're speaking about is called a "sail switch", for rather obvious reasons. I only know because I have a
    friend in the HVAC business, and I asked him what they were called :-)

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When all else fails, try inserting a new battery.
  • william chanwilliam chan Posts: 1,326
    edited 2008-12-12 05:38
    Peter,

    If I use a white LED, then it would be able to detect all LED colors right?

    In your opinion, what is the maximum distance between the 2 LEDs for reliable detection?

    Should I use a high HFE transistor?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.fd.com.my
    www.mercedes.com.my
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2008-12-12 07:46
    If you have a phototransistor then it is even easier. If you have the "sail switch" (now I know) that is good too. If you have nothing else but some common parts like leds and transistors then this circuit is good. But you have me stumped as to how a white LED would work as I have never looked into it. I think that there are a couple of different ways of manufacturing a "white" LED and this would affect the results.

    I know my circuit works for standard and IR leds but I don't think that a white LED would work in the same way. A green LED is good for detecting general lighting so I would go for that if that's all I had, although I have plenty of little 3mm daylight phototransistors that look like leds that I would use first I guess.

    Some of the other solutions involve wiring into the unit so I would avoid that as much as possible. You don't need anything special for the transistor as any general-purpose type (2N2222 etc) will work fine. Since you don't have any control over the intensity of the A/C LED you might find that sensor will have to be placed almost on top of the LED or within 1" or so.

    *Peter*
  • william chanwilliam chan Posts: 1,326
    edited 2008-12-12 09:10
    What about detecting vibrations from the air-con indoor unit?
    How come nobody tried detecting that?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.fd.com.my
    www.mercedes.com.my
  • Brian CarpenterBrian Carpenter Posts: 728
    edited 2008-12-14 05:58
    here is a way that not only do you know if it is on, you can determine how it is doing

    http://forums.parallax.com/forums/default.aspx?f=25&m=305434&g=305466#m305466

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    It's Only A Stupid Question If You Have Not Googled It First!!
  • ElectricAyeElectricAye Posts: 4,561
    edited 2008-12-17 05:51
    @Brian Carpenter,

    Yes, I think a Hall Effect sensor would be a good idea. (In fact I even referenced your project higher in the thread). But I do have a question about the particular sensor that you chose to use. Are there Hall Effect sensors that can just nuzzle up against the power cable without having to coil up the wires? For example, I've got a pocket doo-hickey that can sense AC current running through a wire that tells me it's on or not. I always presumed it was a Hall Effect sensor on the tip of it. It didn't cost very much - maybe $15, I think. Could just a plain ole Hall Effect switch of some kind do the trick?

    [noparse][[/noparse]Edited: I should add that instead of placing a Hall sensor on the power cable, perhaps one could be positioned on the motor??? Maybe that would provide a stronger magnetic field but somehow you would have to find a sweet spot where the motor's own magnetic field wouldn't keep the Hall sensor tripped all the time. Is that possible???]

    Mine is not a rhetorical question. I've got a freezer that kicks on in my lab and I think its magnetic field is messing with my photomultiplier tubes, so I'd like to disregard any data that I take during those times the freezer kicks on or off.

    thanks for your help,
    Mark


    smile.gif

    Post Edited (ElectricAye) : 12/17/2008 3:06:39 PM GMT
  • kwinnkwinn Posts: 8,697
    edited 2008-12-17 06:18
    William, a white LEd is actually a UV led that shines on a phosphor coating. The coating absorbs UV and emits several wavelengths that appear as white light so it will not detect light from other leds.
    A simple reliable way to detect any alternating current load is on would be a current transformer. Take a small ferrite core, put the incoming line or neutral (not ground) through the core (loop it around once if you have the space) and then wind several turns of thin wire on it. How many turns you need will depend on the ferrite core, the current draw, and output voltage desired. One side of the coil goes to ground and the other through a resistor ( 1K-10K ) to an input pin. When the program detects pulses on the pin the load is turned on.
  • william chanwilliam chan Posts: 1,326
    edited 2008-12-17 12:33
    Kwinn,

    Can it work by just coiling the small wire around the current carrying wire without any ferrite core?
    Not all white LEDs are phosphor based. Only those that are more than 0.1 watt are phosphor based.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.fd.com.my
    www.mercedes.com.my
  • kwinnkwinn Posts: 8,697
    edited 2008-12-17 23:57
    Oops, forgot about those small white leds, you are right about them. As for coiling the small wire around the current carrying wire, no that will not work. The magnetic field needs to be at right angles to the wire to produce an output. winding it around the current carrying wire would make it parallel to the field and produce virtually no signal.
Sign In or Register to comment.