Smart Home Power Strip

by Samytronix in Circuits > Arduino

54889 Views, 685 Favorites, 0 Comments

Smart Home Power Strip

55900a2cdeafa4702d0003b9.jpeg
IMG_4821.jpg
IMG_4824.jpg
IMG_4823.jpg
Smart Home Electric Socket Demonstration
Screen Shot 2015-07-10 at 8.39.14 PM.png

Smart Home Power Strip is an android and/or iDevice controllable plug outlet. You can turn the individual outlets by taping a button from your gadgets. I spend about $32 making this project.

Difficulty level: Medium (Basic electronics and soldering skills required)

Time needed: A weekend


Disclaimer: This project involves voltages 110-220V which is dangerous. You must be very careful doing this work. Please do not proceed if you don't take safe measure while working with it. Make this at your own risk.

Things You'll Need

IMG_4745.jpg
IMG_4750.jpg
IMG_4815.jpg
IMG_4827.jpg
IMG_4788.jpg

You can buy these stuff from your local electronic store:

2 pin terminal block (x5)

Resistor 220 Ω (x4)

5V relay 5 pin (x4)

5mm LED (x4)

Blank PCB 2.5 inch x 4.5 inch or larger (x1)

Female Header 40 pin (x1)

Female-female jumper cables (x6)

fiber cable (2 meters)


You can buy these stuff from amazon or other online shop:

HM-10 (x1) or HC-05 (x1)*

Arduino Pro Mini 5V (x1)

FT232RL FTDI USB to TTL Serial Adapter Module (x1)


You can buy these stuff from your local chemical store:

H2O2 500ml (x1)

HCl 500ml (x1)


**You can buy these from your local hardware store:

M. 3 X 60 Screw (x4)

M. 3 P0.50 Nut (x8)

M5 X 20 Spacer (x8)

2mm acrylic sheet (x1)

4 plug outlet electric socket*** (x1)


You can recycle from your used phone charger:

DC Power Supply (will be explained more in step 4)

*You must use HM-10 if you want to use iDevices

**You can replace all the materials here with a prototyping box except for the electric socket

***The electric socket must have a switch for each plug outlet

Making/Etching Your PCB

IMG_4708.jpg
IMG_4707.jpg
IMG_4711.jpg
IMG_4712.jpg
IMG_4714.jpg
  1. Cut your PCB board to 6.7cm x 12cm.
  2. Print the PCB design using laser printer on a glossy paper.
  3. Place the paper with the PCB board.
  4. Press using an iron or a laminator.
  5. Etch the PCB

I used Hydrochloric acid + Hydrogen peroxide to etch my PCB. I'm not going to explain this step in detail, but you can check this instructable (not mine) if you never etch your own PCB.

Downloads

Drill the PCB and Solder the Electronic Components

IMG_4751.jpg
IMG_4775.jpg
IMG_4774.jpg
IMG_4759.jpg
IMG_4752.jpg
IMG_4754.jpg
IMG_4764.jpg
IMG_4766.jpg
  1. Using a mini drill, drill all the holes on your PCB, I recommend using 0.8mm or 1mm drill bit.
  2. After you finish drilling you should solder all the electronic components, header pin, and some jumper cables.

Soldering small electronic components to a PCB can be quite frustrating for beginners. Here is a guide to soldering: https://www.instructables.com/id/How-to-solder/

Finding the Right Power Supply for Arduino

IMG_4746.jpg
IMG_4747.jpg
IMG_4771.jpg
IMG_4767.jpg
IMG_4768.jpg
IMG_4770.jpg
  1. You can find the power supply from your old phone charger or from other power supply unit.
  2. The power supply should have 5V Voltage output. The current can be 750mA or even better if you have 1000mA.
  3. Use a saw to open the Power Supply enclosure.

Plug Your Arduino Pro Mini and Bluetooth Module to the PCB

IMG_4799.jpg
IMG_4800.jpg
IMG_4801.jpg

Before placing the bluetooth module, you should bend the pins first.

  1. Bend the pins one by one using pliers. Be careful not to break the pins (I accidentally broke mine).
  2. Plug the Arduino Pro Mini and bluetooth module to the female header.

Programming Your Arduino

Screen Shot 2015-06-26 at 7.42.39 PM.png
IMG_4829.jpg
  1. Connect your Arduino to your computer using USB to TTL.
  2. Upload the arduino code.

Downloads

Hacking the Electric Socket and Power Supply

IMG_4826.jpg
558973d745bceb10ab000a91.jpeg
IMG_4789.jpg
IMG_4791.jpg
IMG_4796.jpg
IMG_4797.jpg
IMG_4810.jpg
IMG_4808.jpg
IMG_4809.jpg
IMG_4807.jpg
  1. Open the electric socket screws. The relay from your PCB will not replace the function of the switch from the electric socket. In my picture, when the switch is on, the pins (the one I drew with a line) will be connected. If you connect the two pins from the AC input, there will be a short circuit (That's dangerous), so you cannot connect those pins. You can solder one of the pins directly to the output as shown in the next picture.
  2. Next, you'll need to drill 2 holes (between 1st and 2nd switch and between 3rd and 4th switch) for the cables to go out from the electric socket. solder the remaining pins to a cable, and connect it to the terminal block on your PCB (Please be careful not too screw the cables to the wrong place).
  3. Drill one more hole and solder a cable to each pin from the 220V input. Solder the cables to the power supply input. Solder two cables to the power supply output and screw them to the terminal block to power the Arduino. Screw the positive pin from the power supply to the positive terminal block. Screw the negative pin from the power supply to the negative terminal block.
  4. Don't forget to screw back the electric socket.

Making the Enclosure

IMG_4816.jpg
IMG_4817.jpg
IMG_4814.jpg
IMG_4818.jpg
IMG_4819.jpg
IMG_4825.jpg
IMG_4820.jpg

Steps to make acrylic enclosure:

  1. Laser cut your acrylic using the given .eps file
  2. Insert four screws to the acrylic holes.
  3. Tighten the screws using nut. Use the screws from the acrylic and mark the PCB (The curvy part near the relay terminal block and the other cut part near the bluetooth module).
  4. Drill the holes on the marked PCB.
  5. Insert the screws to the holes.
  6. Insert nut and a spacer to each screws.
  7. Insert another acrylic and tape the power supply to the acrylic.
  8. Follow the same pattern. Your enclosure should look like mine.


Using this acrylic enclosure, the project will not be fully enclosed. This project involves high voltages, for safety reasons it is highly recommended to use a fully enclosed case. Only use the acrylic enclosure if you are sure about all the electronics connections.


If you want to use fully enclosed case, you'll need to find a prototyping box with suitable size and drill holes for the cables.

Downloads

Using Your Android Device

IMG_4838.jpg
  1. Download the app: Arduino Bluetooth Controller.
  2. Connect/pair your Android device to your bluetooth module.
  3. Open the app
  4. Open terminal
  5. *Press 1 to turn on switch one, press 2 to turn on switch two, and so on...
  6. *Press 5 to turn off switch one, press 6 to turn off switch two, and so on...

*Press enter after you press the number, you can turn on/off several switches at once.

Bonus Mod Ideas

IMG_4841.jpg
  1. More relays
  2. Voice activated
  3. Control over wifi
  4. Sensors

Have fun ;)