Skip to the content
2 layers96.5 × 81.3 mmBluePill base, the printed circuit board in 3D

BluePill base

michpro/mikroBUS5

Collection of add-on boards in mikroBUS™ standard

Size
96.5 × 81.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
48
Nets
54
Pads
184
Tracks, vias
433, 332
Pours
3
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
29 Aug 2023
Updated
14 Sep 2025

Overview

BluePill base is an open-source printed circuit board by michpro, from the michpro/mikroBUS repository on GitHub, published under the CERN-OHL-P-2.0 licence. It is a 2-layer board of 96.5 × 81.3 mm with 48 parts on 54 nets, routed with 433 tracks and 332 vias.

It is built around the SN65HVD230D, AMS1117-3.3 and AMS1117-5.0, with the AO3401A, RB751V-40 and SS34 among its other parts. Its parts include 10 resistors, 8 capacitors, 8 connectors, 3 ICs and 2 diodes.

Main components

6

README

HLW8032_Click/README.md

HLW8032 Click - energy metering module


Overview

The HLW8032 Click board is a compact energy metering module designed for integration with MikroElektronika's mikroBUS™ ecosystem. It utilizes the HLW8032 integrated circuit, a high-precision single-phase energy measurement chip capable of monitoring active power, voltage, current, and power factor. This board is suitable for applications in smart energy monitoring, IoT-based power management systems, and industrial automation where accurate real-time energy consumption data is required.

Features

  • Energy Metering IC: HLW8032 for precise measurement of voltage (VP), current (IP/IN), and power.
  • Input Connections: 4-pin screw terminal for line (L), neutral (N), and load connections.
  • Shunt Resistor: 2 mΩ for current sensing, rated for high power dissipation.
  • mikroBUS™ Compatibility: Standard mikroBUS™ PCB form factor.
  • Ground Separation: High-voltage ground (HVGND) isolated from low-voltage ground (GND) for safety.

The board supports UART communication at 4800 baud for serial data output, providing registers for power, voltage, current, and energy accumulation.


Schematic diagram

wiring diagram

Visual simulation of a transformerless power supply.

Module visualisation

(click on the image to see the 3D model)

LoRa Click

Assembly

Interactive BOM and placement

Production files

Production files can be found here.


Usage Guide

  • Connection:
    • Connect AC line to J1 (L/N) and load to L1/N1.
    • Plug into mikroBUS™ socket on a host board (e.g., MCU development kit).
    • Power via +5V/+3.3V pins.
  • Communication:
    • UART (TX/RX at 4800 baud, 8N1): Read 24-byte data frames for measurements.
    • PF Pin: Pulse output proportional to active electric energy.
  • Software:
    • Use MikroE libraries or custom code to parse HLW8032 registers.
    • Example: Voltage = (Register Value) * Calibration Factor.
  • Calibration: Adjust via software for shunt and divider ratios.
  • Safety: ** Handle high-voltage sections with care; ensure proper isolation **.

Reporting bugs

Create an issue on GitHub


License

Copyright © 2025 Michal Protasowicki

This project is released under CERN Open Hardware Licence Version 2 - Permissive.

License: CERN-OHL-P-2.0


Support

If You find my projects interesting and You wanted to support my work, You can give me a cup of coffee or a keg of beer :)

PayPal Direct     ko-fi     Coinbase

Parts

48
QtyValueFootprintReferences
3100nfootprints:C_0805_2012MetricC2, C4, C8
3mikroBUS host connectorfootprints:mikroBUS_host_connectorJ1, J2, J3
210ufootprints:C_0805_2012MetricC1, C7
222kfootprints:R_0805_2012MetricR3, R6
22k2footprints:R_0805_2012MetricR9, R10
247ufootprints:C_0805_2012MetricC3, C5
1100footprints:R_0805_2012MetricR1
1100kfootprints:R_0805_2012MetricR2
110kfootprints:R_0805_2012MetricR7
1120footprints:R_0805_2012MetricR8
11ufootprints:C_0805_2012MetricC6
1220footprints:R_0805_2012MetricR5
1330footprints:R_0805_2012MetricR4
17-12V DCfootprints:PJ-002A-SMTJ8
1AMS1117-3.3footprints:SOT-223-3_TabPin2U2
1AMS1117-5.0footprints:SOT-223-3_TabPin2U1
1AO3401Afootprints:SOT-23Q1
1BAT.footprints:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ5
1BluePillfootprints:BluePillM1
1CANfootprints:DG250-3.5-03P-11-00AHJ4
1CAN Rxfootprints:PinHeader_1x02_P2.54mm_VerticalJP4
1CAN Txfootprints:PinHeader_1x02_P2.54mm_VerticalJP3
1Chargefootprints:PinHeader_1x02_P2.54mm_VerticalJP1
1Logo_Open_Hardware_Smallfootprints:OSHW-Logo2_7.3x6mm_SilkScreenLOGO1
1PPSfootprints:PinHeader_1x03_P2.54mm_VerticalJ6
1RB751V-40footprints:D_SOD-323D2
1SCLfootprints:PinHeader_1x02_P2.54mm_VerticalJP5
1SDAfootprints:PinHeader_1x02_P2.54mm_VerticalJP6
1SN65HVD230footprints:SOIC-8_3.9x4.9mm_P1.27mmU3
1SS34footprints:D_SMAD1
1TAMPERfootprints:SW_Push_1P1T_NO_6x6mm_H9.5mmSW1
1TERM.footprints:PinHeader_1x02_P2.54mm_VerticalJP2
1UARTfootprints:PinHeader_1x03_P2.54mm_VerticalJ7

The 41 most common of 48 parts.

More from michpro/mikroBUS

11
  • 2 layers25.4 × 57.2 mmOpenTherm Click, the printed circuit board in 3D

    OpenTherm Click

    michpro/mikroBUS

    Collection of add-on boards in mikroBUS™ standard

    58 parts5CERN-OHL-P-2.0
  • 2 layers25.4 × 57.2 mmHLW8032 Click, the printed circuit board in 3D

    HLW8032 Click

    michpro/mikroBUS

    Collection of add-on boards in mikroBUS™ standard

    45 parts5CERN-OHL-P-2.0
  • 2 layers25.4 × 42.9 mmLIN Click, the printed circuit board in 3D

    LIN Click

    michpro/mikroBUS

    Collection of add-on boards in mikroBUS™ standard

    34 parts5CERN-OHL-P-2.0
  • 2 layers25.4 × 57.2 mmLoRa Click, the printed circuit board in 3D

    LoRa Click

    michpro/mikroBUS

    Collection of add-on boards in mikroBUS™ standard

    26 parts5CERN-OHL-P-2.0
  • 2 layers25.4 × 42.9 mmCAN Click, the printed circuit board in 3D

    CAN Click

    michpro/mikroBUS

    Collection of add-on boards in mikroBUS™ standard

    25 parts5CERN-OHL-P-2.0
  • 2 layers25.4 × 57.2 mmSCT-013 UI Click, the printed circuit board in 3D

    SCT-013 UI Click

    michpro/mikroBUS

    Collection of add-on boards in mikroBUS™ standard

    25 parts5CERN-OHL-P-2.0
  • 2 layers68.6 × 53.3 mmArduino UNO click shield, the printed circuit board in 3D

    Arduino UNO click shield

    michpro/mikroBUS

    Collection of add-on boards in mikroBUS™ standard

    24 parts5CERN-OHL-P-2.0
  • 2 layers25.4 × 42.9 mmRS485 Click, the printed circuit board in 3D

    RS485 Click

    michpro/mikroBUS

    Collection of add-on boards in mikroBUS™ standard

    23 parts5CERN-OHL-P-2.0
  • 2 layers25.4 × 42.9 mmI2C 1-Wire Click, the printed circuit board in 3D

    I2C 1-Wire Click

    michpro/mikroBUS

    Collection of add-on boards in mikroBUS™ standard

    19 parts5CERN-OHL-P-2.0
  • 2 layers25.4 × 28.6 mmI2C EEPROM Click, the printed circuit board in 3D

    I2C EEPROM Click

    michpro/mikroBUS

    Collection of add-on boards in mikroBUS™ standard

    19 parts5CERN-OHL-P-2.0
  • 2 layers25.4 × 42.9 mmETH W5500 mini Click, the printed circuit board in 3D

    ETH W5500 mini Click

    michpro/mikroBUS

    Collection of add-on boards in mikroBUS™ standard

    8 parts5CERN-OHL-P-2.0

Similar boards

  • 4 layers60 × 85 mmVehicleVCU PCB, the printed circuit board in 3D

    VehicleVCU PCB

    nsm81/VehicleVCU_PCB

    A Vehicle Control Unit provides multiple CANBUS transceivers for communication within a vehicle.

    86 parts1
  • 2 layers95 × 82 mmOrc, the printed circuit board in 3D

    Orc

    aramder/orc

    Open replacement controller board for surplus Motorola PMUN1046A relay boxes: ESP32-C3, CANopen control, 10 x 15 A channels. Independent project, not affiliated with Motorola Solutions.

    85 parts
  • 4 layers104 × 166 mmMacpro62-storage face-2x, the printed circuit board in 3D

    Macpro62-storage face-2x

    winkleplex10-bit/The-Mac-Pro-Project

    MacPro6,2: open PCB redesign of the Mac Pro Late 2013 (trashcan) with new CPU, GPU/storage face modules, backplane and I/O boards (KiCad).

    89 parts
  • 2 layers121 × 75.5 mmJlctest, the printed circuit board in 3D

    Jlctest

    cjheath/jlcbasic

    JLC Basic parts library for Kicad fetched and converted from EasyEDA

    46 parts5
  • 2 layers98.8 × 55.1 mmH bridge controller, the printed circuit board in 3D

    H bridge controller

    jayanta525/dual-h-bridge

    Dual H-Bridge Controller with IRF3205 and IR2104 MOSFET Driver, and with ATMega328P-AU PWM Controller

    104 parts5MIT
  • 2 layers94.9 × 69 mmECU, the printed circuit board in 3D

    ECU

    rivotmotors-rnd/ECU_Firmware_V3

    RIVOT ECU V3.0 Repo containing STM32F446RE firmware and KiCad PCB hardware designs.

    115 parts

Questions

How big is the BluePill base PCB?

It measures 96.5 × 81.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the BluePill base use?

48 parts, built around the SN65HVD230D, AMS1117-3.3, AMS1117-5.0 and AO3401A. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the BluePill base KiCad files?

From the michpro/mikroBUS repository on GitHub, at the commit this page was made from: the board is BluePill_base/BluePill_base.kicad_pcb and its schematic Arduino_UNO_click_shield/Arduino_UNO_click_shield.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the BluePill base design in my own project?

Its repository publishes it under the CERN-OHL-P-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).