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

by ryan141298 in Circuits > Arduino

1227 Views, 2 Favorites, 0 Comments

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

Assembly1_2019-Oct-20_10-07-57PM-000_CustomizedView14573829800_jpg.jpg
Sera Home Automation
IMG_20200327_175131.jpg
IMG_20200327_175212.jpg

Introduction:

  • Why do i say its next generation: because it uses some components which are way better than traditional home 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

Components Required

components.jpg
  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

Choosing of Microcontroller

real micro.jpg

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.

PCB Designing Using Eagle Cad (Part -1)

Eagle Add Component.PNG
Add part.PNG
All Compon.PNG

(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.

PCB Designing Using Eagle Cad (Part -2)

Net Tool.PNG

(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.


PCB Designing Using Eagle Cad (Part -3)

Gen Board.PNG
Board place.PNG
Placing.PNG

(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.

PCB Designing Using Eagle Cad (Part - 4)

Routing.PNG
Final Board file.PNG

(Connections in the board):

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

PCB Designing Using Eagle Cad (Part - 5)

Cam data.PNG

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.

Testing PCB by Home Made PCBs

IMG_20191007_203238.jpg

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

Check Gerber File and Send for Fabrication

Pcbright.PNG
Pcblift.PNG

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/)

Getting PCB and Soldering of Components

pcbs.jpg
final pcb.jpg

After getting the pcb, components are soldered and tested.

Touch Sensor and Microcontroller Layer

Touch L.PNG
touch R.PNG

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.

Schematic File and And Getting It Fabricated.

Schem.PNG
touch b.jpg
toucha.jpg

Finishing PCBs

IMG_20200327_174426.jpg
IMG_20200327_174440.jpg
IMG_20200327_174406.jpg

Both the layers are fixed one, top of another.

3d Printed Case

IMG_20200327_174739.jpg
IMG_20200327_175229.jpg
IMG_20200327_175137.jpg
IMG_20200327_175146.jpg

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