Skip to the content
PCBKitNew board
2 layers80 × 30 mmAc sensor, the printed circuit board in 3D

AC Sensor used in hydronic HVAC system

Size
80 × 30 mm
Copper layers
2
Thickness
1.6 mm
Parts
24
Nets
17
Pads
103
Tracks, vias
37, 3
Pours
1
Routed
Yes
KiCad
KiCad 7 (file 20230121)
Created
2 Jun 2025
Updated
20 Jun 2025

Overview

Ac sensor is an open-source printed circuit board by sshoecraft, from the sshoecraft/ac-sensor repository on GitHub. It is a 2-layer board of 80 × 30 mm with 24 parts on 17 nets, routed with 37 tracks and 3 vias.

It is built around the ESP32-C3-MINI-1, AMS1117-5.0 and TJA1050, with the RJ45-8P8C-D-11 among its other parts. Its parts include 6 connectors, 4 capacitors, 3 resistors, 3 ICs and 2 diodes. It belongs with the sensors and measurement boards and the ESP32 and RISC-V boards of this library.

Main components

4

README

hardware/README.md

AC-Sensor Hardware Design

This directory contains the complete KiCad design files for the ESP32-C3 CAN Bus + 4x JST sensor board.

Design Specifications

  • Board Size: 80mm x 30mm (compact form factor)
  • Layers: 2-layer PCB
  • Thickness: 1.6mm standard
  • Manufacturing: Optimized for JLCPCB automated assembly
  • JST Layout: 2 connectors per side for balanced cable management

Key Components

ComponentPart NumberPackageDescription
U1ESP32-C3-MINI-1QFN-32Main microcontroller
U2TJA1050SO-8CAN transceiver
U3AMS1117-5.0SOT-2235V regulator
J1RJ45_8P8CRJ45CAN Bus connector
J2Conn_01x04Pin headerProgramming interface
J3-J6JST_PH_3pinJST 2.0mmSensor input connectors

JST Sensor Connectors Layout

Balanced placement on both sides for better cable management:

LEFT SIDE (2 connectors)

ConnectorESP32 PinPositionDescription
J3GPIO0 (D0)Left TopSensor 1: VCC, GND, D0
J4GPIO1 (D1)Left BottomSensor 2: VCC, GND, D1

RIGHT SIDE (2 connectors)

ConnectorESP32 PinPositionDescription
J5GPIO2 (D2)Right TopSensor 3: VCC, GND, D2
J6GPIO3 (D3)Right BottomSensor 4: VCC, GND, D3

JST Pinout (each connector):

  1. VCC - 5V power output for sensors
  2. GND - Ground
  3. Signal - Digital input to ESP32 (D0-D3)

Board Layout

text
┌─────────────────────────────────────────────────────────────────────────────┐
│  [J3]              [POWER]    [ESP32-C3]   [TJA1050]        [RJ45]         │
│ SENSOR1              5V         CENTER       CAN             CAN            │
│  D0                                                                         │
│                                                                             │
│  [J4]                                                       [J5]           │
│ SENSOR2                                                    SENSOR3          │
│  D1                                                          D2             │
│                     [RST][BOOT]                            [J6]             │
│                                                           SENSOR4           │
│                                        [PROG]              D3              │
└─────────────────────────────────────────────────────────────────────────────┘
 LEFT SIDE                    CENTER                         RIGHT SIDE

CAN Bus Interface

Based on the actual prototype implementation:

FunctionESP32 PinConnectionDescription
CAN TXGPIO6 (D6)Direct → TJA1050 TXDCAN transmit
CAN RXGPIO7 (D7)TJA1050 RXD → 10kΩ → GPIO7CAN receive with protection

Protection: 10kΩ resistor on CAN RX line for input protection

RJ45 Pinout

PinSignalDescription
1+5VDCPower input
2GNDGround
3CAN-HCAN Bus High
4CAN-LCAN Bus Low
5-8AvailableFuture expansion

GPIO Assignments

GPIOFunctionConnectorPositionDescription
GPIO0D0J3Left TopSensor 1 digital input
GPIO1D1J4Left BottomSensor 2 digital input
GPIO2D2J5Right TopSensor 3 digital input
GPIO3D3J6Right BottomSensor 4 digital input
GPIO6CAN_TX-InternalCAN transmit (D6)
GPIO7CAN_RX-InternalCAN receive (D7)
GPIO9BOOTSW2Bottom LeftBoot mode button
GPIO20UART_RXJ2Bottom RightProgramming RX
GPIO21UART_TXJ2Bottom RightProgramming TX

Design Features

Balanced JST Layout

  • Left Side: 2x JST connectors (J3, J4) for sensors 1-2
  • Right Side: 2x JST connectors (J5, J6) for sensors 3-4
  • Benefits: Better cable management, balanced load, easier assembly

Power Management

  • 5V input via RJ45 connector (pin 1)
  • AMS1117-5.0 linear regulator for stable 5V supply
  • 5V provided to all JST sensor connectors (VCC pins)
  • 3.3V internal regulation for ESP32-C3

CAN Bus Interface

  • TJA1050 transceiver for robust CAN communication
  • 10kΩ input protection resistor on RX line
  • RJ45 connector for easy field connections
  • Standard CAN-H/CAN-L differential signaling

Programming Interface

  • 4-pin header (bottom right) for UART programming
  • Reset and boot buttons (bottom left) for development
  • Compatible with ESP32 programming tools

Manufacturing Notes

JLCPCB Compatibility

  • All components selected from JLCPCB parts library
  • Standard SMD packages for automated assembly
  • Minimum trace width: 0.15mm (6 mil)
  • Minimum via size: 0.2mm drill, 0.45mm pad

Assembly Process

  1. PCB fabrication (2-layer, 1.6mm, HASL finish)
  2. SMD component placement and reflow
  3. Through-hole connectors (JST, RJ45, programming header)
  4. Programming and testing

Cost Estimation

  • Target cost: <$12 per board (qty 10)
  • Includes PCB + assembly + components
  • Based on JLCPCB pricing (2025)

Sensor Compatibility

The JST connectors are designed for digital sensors with these characteristics:

  • Power: 5V operation
  • Signal: Digital output (3.3V/5V logic levels)
  • Examples: Motion sensors, proximity sensors, digital temperature sensors, limit switches

Cable Management Benefits

The 2-per-side JST layout provides several advantages:

  • Balanced weight distribution
  • Shorter cable runs to sensors on both sides
  • Reduced cable congestion
  • Easier installation in tight spaces
  • Professional appearance with organized cabling

Version History

  • v1.0 (2025-06-02): Initial schematic design
  • v1.1 (2025-06-02): Updated to match actual prototype
    • Added 4x JST 2.0mm sensor connectors
    • Corrected CAN interface with 10kΩ protection resistor
    • Updated GPIO assignments (D0-D3, D6, D7)
    • Changed to 5V power supply for sensor compatibility
  • v1.2 (2025-06-02): JST connector placement optimization
    • 2x JST on LEFT side (J3, J4 for D0, D1)
    • 2x JST on RIGHT side (J5, J6 for D2, D3)
    • Balanced layout for better cable management
    • Matches actual prototype photo layout

References

Prototype Verification

The schematic and layout are based on analysis of the actual prototype boards, which clearly show:

  • ESP32-C3 module in center
  • 2x JST connectors on left side
  • 2x JST connectors on right side
  • TJA1050 CAN transceiver
  • RJ45 connector on right side
  • Reset/boot buttons
  • Compact 80x30mm form factor in enclosure

This balanced JST placement is the optimal layout for professional sensor installations.

Parts

24
QtyValueFootprintReferences
4MountingHole_2.7mm_M2.5MountingHole:MountingHole_2.7mm_M2.5MH1, MH2, MH3, MH4
2100nFCapacitor_SMD:C_0805_2012MetricC3, C4
2330RResistor_SMD:R_0805_2012MetricR1, R2
110KResistor_SMD:R_0805_2012MetricR3
122uFCapacitor_SMD:C_0805_2012MetricC2
1470uFCapacitor_THT:CP_Radial_D5.0mm_P2.00mmC1
1AMS1117-5.0Package_TO_SOT_SMD:SOT-223-3_TabPin2U3
1BOOTButton_Switch_SMD:SW_SPST_B3U-1000PSW1
1ESP32-C3-MINI-1RF_Module:ESP32-C3-MINI-1U1
1PWR_REDLED_SMD:LED_0805_2012MetricD1
1ProgrammingConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2
1RESETButton_Switch_SMD:SW_SPST_B3U-1000PSW2
1RJ45_8P8CConnector_RJ:RJ45_Amphenol_54602-x08_HorizontalJ1
1SENSOR_1_D0Connector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJ3
1SENSOR_2_D1Connector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJ4
1SENSOR_3_D2Connector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJ5
1SENSOR_4_D3Connector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJ6
1STS_GRNLED_SMD:LED_0805_2012MetricD2
1TJA1050Package_SO:SO-8_3.9x4.9mm_P1.27mmU2

Questions

How big is the Ac sensor PCB?

It measures 80 × 30 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Ac sensor use?

24 parts, built around the ESP32-C3-MINI-1, AMS1117-5.0, TJA1050 and RJ45-8P8C-D-11. 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 Ac sensor KiCad files?

From the sshoecraft/ac-sensor repository on GitHub, at the commit this page was made from: the board is hardware/pcb.kicad_pcb and its schematic hardware/schematic.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Ac sensor design in my own project?

Its repository states no licence, so its author keeps all rights: ask sshoecraft before reusing the design.

Similar boards

  • 4 layers100 × 80 mmMouse joystick pcb, the printed circuit board in 3D

    Mouse joystick pcb

    peterpolidoro/mouse-joystick-pcb

    KiCad design, fabrication package and documentation for a single-axis mouse joystick controller board: RP2040, TMC5130A stepper driver, brake and torque front ends, a pyControl UART peripheral for the Janelia Dudman lab…

    364 parts1
  • 2 layers94.9 × 40.6 mmEsp32-c3-board bms, the printed circuit board in 3D

    Esp32-c3-board bms

    ieb/N2KNMEA0183Wifi

    Exposes NMEA2000 and BMS data over BLE for Apps to use. Also supports Wifi/http/tcp/udp services.

    43 parts2
  • 2 layers97 × 54.3 mmAttiny3226Board, the printed circuit board in 3D

    Attiny3226Board

    ieb/N2KEngine

    N2K Single board engine monitor using a 328p

    73 parts
  • 2 layers108 × 47 mmEsp32board, the printed circuit board in 3D

    Esp32board

    ieb/N2KEngineEsp32

    N2K Engine Interface with BLE built around an ESP32 and ADS1115 ADCs

    88 parts
  • 2 layers48 × 37 mmESP32, the printed circuit board in 3D

    ESP32

    jpcanepa/esp32_pms7003

    ESP32 Air Quality Meter

    29 parts
  • 2 layers100 × 93 mmSpeeduino base, the printed circuit board in 3D

    Speeduino base

    Tjeerdie/SPECTRE

    Speeduino compatible engine control unit (ECU) based around black STM32F407VET6 board.

    213 parts59GPL-3.0
  • 4 layersMoco od501, the printed circuit board in 3D

    Moco od501

    ziteh/moco

    PMSM/BLDC motor controller/driver PCBs

    102 parts24CERN-OHL-P-2.0
  • 4 layers42 × 50 mmSimpleFC G, the printed circuit board in 3D

    SimpleFC G

    wangyeee/OpenHardware

    Collections of hardware design related to my drone project.

    134 parts10BSD-3-Clause