Wireless Control of AC Devices with a PowerSwitch Tail

Print Friendly, PDF & Email

4) Wire up the Circuit

  • Place the XBee adapter into the breadboard and wire up the power buses to each other.

  • Connect the VCC terminal of the XBee adapter to the positive rail and the ground terminal to the negative rail.

  • Connect one of the of the hookup wires to I/O pin 0, which is physical pin 20, on the top right side of the XBee. A second strand of wire gets connected to the ground bus.

  • Use the wire from the the XBee’s I/O pin 0 to connect it to the terminal marked “+in” on the PowerSwitch Tail. You’ll need to use a small, flat-head screwdriver to loosen the screw terminal inside the PowerSwitch tail and to tighten it onto the wire. The wire from the breadboard’s ground bus gets connected to “-in” on the PowerSwitch tail.

  • Plug your AC device into the PowerSwitch Tail and plug the PowerSwitch Tail into the wall. Make sure the switch on your device is switched on.

  • Insert the XBee into the adapter and connect the battery pack. Since we set the I/O mode of the pin to be HIGH on start up with the command “ATD0 5”, the PowerSwitch Tail will close the relay and turn the AC device on since there’s no radio configured to transmit a low signal to our receiving radio. If you’d like the device to be turned off when the XBee is powered on, you can use the command “ATD0 4”.

  • Above is a diagram of the circuit. In the photos, we used C batteries. A pair of AA batteries, as shown in this diagram, will work fine.

Comments are closed.