Shop OBEX P1 Docs P2 Docs Learn Events
Control AC Outlets — Parallax Forums

Control AC Outlets

Chris DunnChris Dunn Posts: 5
edited 2004-11-09 19:53 in BASIC Stamp
I am looking to do a small Xmas light display and need to control some AC outlets.· I am wondering what is the easiest/cheapest way to control AC. I have seen some topics for relays, triacs and MOSFets.· I am rather new to the basic stamp, and everything I have ever interfaced/controlled is DC circuits. Just looking for some guidance.
·
Chris

Comments

  • edited 2004-11-08 21:06
    Chris,
    ·Safest and easiest way would be with X-10. No Ac wiring needed and the code is really easy. The units you would use can be found here http://www.parallax.com/detail.asp?product_id=27940·for the interface and here for the module http://www.parallax.com/detail.asp?product_id=27941






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

    Stephen Swanson

    Technical Support
    Parallax, Inc.
    sswanson@parallax.com

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-11-08 21:09
    Stephen's right -- for your application X-10 is the way to go. The BASIC Stamp has a command called XOUT that can work with differnent types of X-10 modules. Lamp modules, for example, have dimming control so your BASIC Stamp could modulate the brightness of a string of Christmas lights.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • Gerry ShandGerry Shand Posts: 45
    edited 2004-11-09 14:47
    A few quick pointers here too:

    a. Relays are the simplist but must be chosen with respect to load currents and voltages. John and Stephen mention the safety issue, which is very important. Relays also work in switching applications where the cycle time is 1 second or greater.

    b. Triacs are good high speed solid state switches but need extra circuitry between them and the stamp. These devices have no moving parts so they lend themselves well to high speed switching.

    c. In my work, MOSFETS work well in PWM applications switching DC at high rates of speed. In order to make them switch AC, you need to rectify to DC, filter and then use more than one (two or four depending on how you want to operate them) to build an inverter bridge. Lots of circuitry and work involved plus potential safety issues.

    So the X-10 route is the better way to go for the least amount of fuss.

    Gerry Shand
  • allanlane5allanlane5 Posts: 3,815
    edited 2004-11-09 15:27
    Note you can also use the X-10 'Firecracker' package. This does *not* use the 513 interface. Instead, you get a small module which you connect to three pins of your Stamp (X, Y, and GND). This module is powered from the Stamp, and uses RF to communicate with a module plugged in to your house wiring. From there, it controls Lamp and Appliance modules in your house.

    This kit also gets you an RF remote, so you can control your house yourself.

    The only drawback is I don't know of an off-the-shelf command (like the XOUT command) to implement the communications from the Stamp to the 'Firecracker', so you'd have to implement the protocol yourself. The protocol is very well documented, though.

    Also note using the 513 you'll have to wire from your stamp to the module. With the Firecracker, you can be rooms away.
  • AlWilliamsAWCAlWilliamsAWC Posts: 135
    edited 2004-11-09 15:38
    Once again, a past project of the month: http://www.al-williams.com/firecracker.htm

    Hope that helps!

    Al Williams
    AWC
    http://www.awce.com
    ·
  • allanlane5allanlane5 Posts: 3,815
    edited 2004-11-09 15:47
    *OUTSTANDING* Al! What a nice, complete example.

    There, that fills in the only question. Now I would go with the Firecracker without hesitation.
    You get an RF-driven solution, so your BS2 and BOE (or whatever) can be anywhere in the house.
  • AlWilliamsAWCAlWilliamsAWC Posts: 135
    edited 2004-11-09 16:00
    The link to the underlying protocol document is dead. If you really want to read it, try http://meltingpot.fortunecity.com/lightsey/52/common/cm17a.html.
    ·
  • mikeslaneymikeslaney Posts: 17
    edited 2004-11-09 19:53
    We've been using Crydom SSRs for switching AC circuits with our Labview/Fieldpoint DAQs. They've been working great for controlling our lab heaters. If you're pulling a decent load on the AC side, make sure you order the "Random On" model. Crydom # ASO241R.
Sign In or Register to comment.