Close
0%
0%

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

Similar projects worth following
There is just no good way to make a cell phone charger powering a sensor look aesthetically pleasing. Commercially available wall-plug project boxes are too large, expensive, and appear industrial. So it was time to create something different.

Up until now, IoT and DIY home automation projects are powered using parts intended for phones or other consumer devices. This PCB combined with the plug and free 3D printing files offer an alternative.

Printed Circuit Board

The main component of the PCB is the Hi-Link AC-DC converter. The PCB is designed to accomodate 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. 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. The shim provides the required critical offset for PCB mounting, AC plug protrusion, and enclosure bottom design. Be sure the shim & plug assembly are not installed on the wrong side of the PCB or upside down.  Match the silkscreen printed guide on the back of the PCB.   

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

View all 11 components

  • 1
    Print the 3D Enclosure - specifically, the AC plug SHIM is needed prior to PCB assembly

    The Plug Shim (spacer) is needed to assemble the PCB.  It must be installed before soldering the AC plug to the PCB and the AC plug itself must be soldered to the PCB before the AC-DC Converter Module

  • 2
    Attach the plug shim to the back of the AC plug. Orient the plug as shown in the photos and solder.

    See photos for the proper orientation - don't install the AC plug upside down!  Double check this step.

  • 3
    Assemble the remaining components and solder.

    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.

    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.

View all 4 instructions

Enjoy this project?

Share

Discussions

Yang wrote 07/29/2023 at 21:07 point

You've not answered, and there are no problems, so I'll just assume you are trolling.

  Are you sure? yes | no

Yang wrote 07/22/2023 at 11:48 point

Can you be more specific?  I wouldn't publish if I hadn't built it already, so if you spotted an error, I must be unclear in my instructions.  Please clarify your point.

  Are you sure? yes | no

drcyberg wrote 07/22/2023 at 05:08 point

There are problems with the construction and the drawing. are you sure this will work? Look again please.

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates