Git Product home page Git Product logo

heyitsyang / ac-wall-adapter-pcb-for-iot Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 23.4 MB

PCB to create an all-in-one AC wall wart + project

Home Page: https://www.tindie.com/products/shencentral/ac-wall-adapter-pcb-for-iot-us-2-pack/

License: MIT License

HTML 100.00%
ac-dc adapter enclosure esp32 esp8266 power prototyping prototyping-board vhotsmcomp wallplug espresence espresense home-assistant arduino homeassistant pcb sensor arduino-project esphome

ac-wall-adapter-pcb-for-iot's Introduction

AC Wall Adapter PCB for IoT

An AC wall adapter PCB to power & consolidate your IoT & DIY project into a single housing without resorting to an ugly USB phone charger. Put your project in a single, elegant enclosure and away from kids and pets.

Finished

Bill of Materials

Required components:

  • Qty 1 - AC Wall Adapter PC Board - order from here
  • Qty 1 - US AC two-prong plug (included with PCB order)
  • Qty 1 - F1 - Miniature PCB Fuse 0.5A, 250V slow blow - rectangular or TR5/5TR style (ex. Littlefuse 37205000001)
  • Qty 1 - AC-DC Converter module - Hi-Link HLK PMXX or 5MXX series
  • Qty 1 - 3D printed enclosure - see link below

Optional components for EMI suppression, surge protection, & power indication:

  • Qty 1 - RV1 - Varistor 10D561K (ex. Bourns MOV-10D561K)
  • Qty 1 - L1 - Common mode choke inductor 10mH or 15mH, 500mA min, 270V (ex. Wurth 74482111)
  • Qty 1 - C1 - 0.1uF, 275VAC polypropylene capacitor (ex. MEX/TENTA 275V104P10)
  • Qty 1 - C2 - 220uF, 35V capacitor
  • Qty 1 - D1 - LED
  • Qty 1 - R1 - Resistor, use value suitable for +Vout & LED

Printed Circuit Board

The main component of the PCB is the Hi-Link AC-DC converter. The PCB is designed to accommodate either the HLK-PMxx or the HLK-5Mxx series component footprint. They are available in several voltages. You can find them on Amazon, AliExpress, and other sources.

The PCB footprint for the fuse accommodates a miniature PCB fuse. They are again available from Amazon or Aliexpress and other sources. The PCB silkscreen indicates a rectangular footprint shape for the fuse, but the radial (TR5/5TR) style will also fit. (Search for "pcb fuse 0.5a 250v TR5")

The PCB has provisions for optional EMI suppression, surge protection, and power indication components. The Hi-Link AC-DC adapter will work without these components, obviously without the benefits they provide. Be sure to install jumpers if the common mode inductor (see L1 on PCB) is not installed.

The prototyping grid accommodates most ESP8266 & ESP32 "development boards" with some modest space leftover for sensor or connector attachment. If additional room is needed, you can use the room to attach a header for piggybacking another prototyping PCB above. The 3D printed case can be modified using Fusion360 for height. Just be sure not to smother your WiFi signal by being too dense near it.

Schematic and layout here


3D Printed Enclosure

STL mesh files and the Fusion360 design file are provided. The Fusion360 design file is parametric in X,Y & Z directions, so you can expand for additional components if necessary. When modifying the Fusion360 design to change dimensions, editing CAPITALIZED parameter values is safe/tested. Editing other parameters may yield unexpected results.

Print the following:

  • Enclosure top (choice of two styles)
  • Enclosure bottom
  • AC plug shim

Two options for the 3D printed enclosure are included:

  • Flat top - normal enclosure with a flat top - better if you need side portals for connectors
  • Tented top - top with angled sides for a slimmer look at the expense of potentially useful volume

One very important, but easily overlooked component that must be printed is the shim for the plug. The shim is a plastic spacer that must be installed between the PCB and the plug before soldering the plug. When populating the PCB, the shim and AC plug must be installed before the Hi-Link AC-DC converter.

If you choose to design your own enclosure, the plug offset is the critical measurement that drives the design for the enclosure bottom.

Supports should not be necessary for printing. Enclosure halves are fastened using #4 0.5 inch or M3 screws.

3D printing files here


Assembly

Most of the assembly is straightforward.

Both the HiLink HLK-5Mxx and HLK-PMxx series AC-DC Converters are supported. The footprints on the PCB are overlapping. just align to the correct one after you have installed the AC plug and shim assembly.

As mentioned above, do not overlook placing the shim on the AC plug prior to soldering. Orient the AC plug and shim assembly as shown in the photo - don't install the AC plug upside down. Double check this step!

Shim placement Shim Placement

Correct AC plug orientation shown from front side of PCB AC Plug Orientation


Images

PCB & Plug PCB

Finished Project with top options ready for your circuit! Finished

ac-wall-adapter-pcb-for-iot's People

Contributors

heyitsyang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.