Skip to the content
2 layers120 × 50 mmPeoplecounter pcb, the printed circuit board in 3D

Peoplecounter pcb

7omg/PeopleCounter

In my first try I utilised two hc-sr04 ultrasonic sensors, but i quickly realised that their accuracy is horrible.

Size
120 × 50 mm
Copper layers
2
Thickness
1.6 mm
Parts
25
Nets
50
Pads
132
Tracks, vias
0, 0
Routed
Not yet
KiCad
KiCad 7 (file 20221018)
Created
16 Sep 2023
Updated
25 Feb 2024

Overview

Peoplecounter pcb is an open-source printed circuit board by 7omg, from the 7omg/PeopleCounter repository on GitHub. It is a 2-layer board of 120 × 50 mm with 25 parts on 50 nets.

It is built around the ESP32-C3-WROOM-02-H4 and AMS1117-3.3. Its parts include 9 capacitors, 5 resistors, 5 ICs, 4 diodes and 1 connector. It belongs with the ESP32 and RISC-V boards of this library.

Main components

2

README

README.md

People sensor / door sensor project

I needed a sensor which detects if someone or something entered or left a room. as i didn't find anything online i decided to hack together my own little sensor.

In my first try I utilised two hc-sr04 ultrasonic sensors, but i quickly realised that their accuracy is horrible. Another problem was that using two sensors needs a huge timeout (30-60ms) between their distance measurements, otherwise they will interfere each other and the results are unusable. They work for applications where things move slow, but for this project I needed more speeeeed.

So my second thought was that two light barriers would work best. But one light barrier needs two parts. A sender and a receiver. So this is also not the best solution to my problem as I want to mount the sensor on a door frame and don't want cables running all over the door frame.

Then I learned about time-of-flight (tof) sensors. They measure the distance to an object by shooting an infrared light ray against the object and wait until the light is reflected back into the receiver. So they can essentially act like a light barrier. I bought two vl53l0x tof sensors for ~8eur, tested them and got to the conclusion that they are perfect for this application. Not only do they not interfere with each other when relatively close together, these sensors can also be probed extremely fast. In the fastest mode (continuous back-to-back ranging mode) the sensor has a measurement ready for use every 20ms. Additionally, I can take measurements from both sensors at the same time. This adds up to 50 measurements per second, per sensor. This is plenty enough to track a person walking through a door.

Sample schematic

sample breadboard setup

Case

render51.png

todo

  • make project run from batteries
  • use deep-sleep mode as tof sensors don't need to probe constantly (wakeup from small ir sensor?)
  • wifi stuff

Useful resources

Parts

25
QtyValueFootprintReferences
31uFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC1, C3, C5
2100nFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC6, C7
24.7uFCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC2, C4
25k11Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR2, R3
2VL53L0CXV0DH1Sensor_Distance:ST_VL53L1xU1, U2
110uFCapacitor_SMD:CP_Elec_5x5.3C8
11MLED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolderR1
122uFCapacitor_SMD:CP_Elec_5x5.3C9
15k1Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR4
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U5
1AP2127K-2.8Package_TO_SOT_SMD:SOT-23-5U3
1D_SchottkyDiode_SMD:D_1206_3216Metric_Pad1.42x1.75mm_HandSolderD3
1ESP32-C3-WROOM-02PCM_Espressif:ESP32-C3-WROOM-02U6
1LEDLED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolderD4
1LED_RBGALED_SMD:LED_Kingbright_AAA3528ESGCTD1
1RResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR5
1RED LEDLED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolderD2
1SW_DIP_x01Button_Switch_SMD:SW_DIP_SPSTx01_Slide_Omron_A6S-110x_W8.9mm_P2.54mmSW1
1USB_C_Receptacle_USB2.0_16PConnector_USB:USB_C_Receptacle_Amphenol_12401610E4-2AJ2

Similar boards

  • 2 layers60 × 30 mmTd free, the printed circuit board in 3D

    Td free

    mawoka-myblock/td-free

    Measure the TD of your filament easily

    24 parts60EUPL-1.2
  • 2 layers79.9 × 36.2 mmDesk display, the printed circuit board in 3D

    Desk display

    nepyope/Project-Homunculus

    Project Homunculus is open-source, low-cost hardware for capturing human hand and arm motions. It has two parts.

    63 parts51
  • 2 layers51 × 71 mmOTThing, the printed circuit board in 3D

    OTThing

    Phunkafizer/OT-Thing

    A compact universal OpenTherm WiFi Interface

    111 parts28
  • 2 layers60 × 100 mmDefcon32 badge, the printed circuit board in 3D

    Defcon32 badge

    thehackbat/defcon32_badge

    Badge designed for DEFCON32

    50 parts13GPL-3.0
  • 2 layers80.5 × 91.4 mmGarageOpener, the printed circuit board in 3D

    GarageOpener

    xhivo97/esp-garage-hardware

    ESP32-C3 Garage Opener PCB

    47 parts6Apache-2.0
  • 2 layers38.1 × 49.5 mmEsp32c3-iot client board, the printed circuit board in 3D

    Esp32c3-iot client board

    74th/esp32c3-iot-server-board

    Board for converting Grove device to IoT Server using ESP32-C3-WROOM-02.

    40 parts4MIT
  • 2 layers56 × 56.5 mmNX LSM6DS3, the printed circuit board in 3D

    NX LSM6DS3

    Domiko7/NexaSeis

    Acquisition and processing server for the NexaSeis collaborative seismic network

    25 parts4AGPL-3.0
  • 2 layers20 × 24 mmDesk display, the printed circuit board in 3D

    Desk display

    oltdaniel/PCB_deskDisplay

    a small esp32-c3 PCB for an I²C display, NeoPixel and Button for smart home stuff.

    16 parts3

Questions

How big is the Peoplecounter pcb PCB?

It measures 120 × 50 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Peoplecounter pcb use?

25 parts, built around the ESP32-C3-WROOM-02-H4 and AMS1117-3.3. 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 Peoplecounter pcb KiCad files?

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

Can I use the Peoplecounter pcb design in my own project?

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