Introduction: Next Gen Home Automation Using Eagle Cad ( Part 1 - PCB)

About: I am an Engineering student (department of mechatronics) of SRM University (India)

Introduction:

  • Why do i say its next generation: because it uses some components which are way better than traditionalhome automation devices.
    1. It can control appliances by:
      • Google Voice Commands
      • Touch Panel on the Device
      • Control from app
      • Control On and Off Along with speed of Fan
    2. Total Appliance:
      • 2 On Off control devices
      • 1 Dimming or Fan Speed Control
    3. How triac better than traditional relays
      • No mechanical wear-out
      • Easier to switch on zero-crossing. (Can also be done with a relay, but less accurate due to the switch-on delay)
      • Can be used in dangerous environment, particularly in explosive sensitive environments where sparking relay contacts are absolutely out
      • No EMI due to switching sparks/arcs
      • No magnetic interaction with nearby inductors.
      • Often more compact
      • High frequency of switching

Step 1: Components Required

  1. Smps mini -5v
  2. MOC3041
  3. MOC3021
  4. Rectifier
  5. Triac-BT136
  6. Resistors
  7. Header Pins
  8. 4N35
  9. Touch Sensor
  10. D1 Mini Esp8266

Step 2: Choosing of Microcontroller

Which Micro controller to Choose:

We will be needing wifi control hence popular choices are either Raspberry Pi or Esp 8266.

As cost of raspberry pi is high, for this project i choosed Esp 8266. Now the question comes which variant of 8266?

  1. Esp-01
  2. Esp 12e
  3. NodeMCU
  4. D1 Mini

Now as i needed 10 controllable digital pins and size was an important factor i choosed D1 mini as it has sufficient no. of pins for my project and is small size.

Step 3: PCB Designing Using Eagle Cad (Part -1)

(Introduction):

  1. Open New Project, Name your project. Right click on it and select "New Schematic"
  2. Eagle Cad uses 2 files:
    • Schematic file - For designing the circuit connections
    • Board file- For final board design.

(Add Parts):

  1. Click "Add Part" as shown in the picture.
  2. Search each components and Press Ok.
  3. Place each components on the schematic.

Step 4: PCB Designing Using Eagle Cad (Part -2)

(Connect the components):

  1. According to the Circuit diagrams, each components should be wired accordingly.
  2. "Net Tool" is chosen and wires are made as shown in the picture.


Step 5: PCB Designing Using Eagle Cad (Part -3)

(Convert it to board file):

  1. Click "Generate to board" button on the left top as shown in the picture.
  2. Click "Create from schematic".
  3. Place the components as you wish to be on the final pcb.

Step 6: PCB Designing Using Eagle Cad (Part - 4)

(Connections in the board):

  1. Use "Routing" tool to make the trace connections between the components.

Step 7: PCB Designing Using Eagle Cad (Part - 5)

Generate Cam:

  1. PCB fabrication requires a lot of cam files.
  2. So by clicking on the "Generate Cam Data" button, the software will convert your project into files which can be read by CNC machines used for fabrication of pcb.

Step 8: Testing PCB by Home Made PCBs

As cost of pcb fabrication is high, i wanted to check if its correct or not i made 3 similar circuit before sending it for fabrication.

  1. First one was done on the bread board.
  2. Second one was done by soldering components on stripboard ( or soldering board)
  3. Third one was done on the copper board by using the same pcb file and was made by cnc engraving present in my college campus.

After checking fully i send it for fabrication in PCB way

Step 9: Check Gerber File and Send for Fabrication

Checking:

  • For Checking Gerber file go to : (http://mayhewlabs.com/3dpcb)
  • Copy all the Gerber files and launch the gerber viewer
  • Check How the final pcb will look.

Send for fabrication:

  • I fabricated the pcb from (https://www.pcbway.com/)

Step 10: Getting PCB and Soldering of Components

After getting the pcb, components are soldered and tested.

Step 11: Touch Sensor and Microcontroller Layer

As this home automation project has touch capability, it require touch sensors. Hence we had to fabricate another pcb for touch sensor.This time I fabricated it in College CNC and not from PCB Way.

Step 12: Schematic File and And Getting It Fabricated.

Step 13: Finishing PCBs

Both the layers are fixed one, top of another.

Step 14: 3d Printed Case

Casing is done by using 3d printer. Explanation of that would be on Part 2 of Instructables.

PCB Design Challenge

Participated in the
PCB Design Challenge