Skip to the content
PCBKitNew board
4 layers92 × 50.4 mmLevelSensor v2.0, the printed circuit board in 3D

Water level sensor with NBIoT data transmission

Size
92 × 50.4 mm
Copper layers
4
Thickness
4.69 mm
Parts
125
Nets
128
Pads
450
Tracks, vias
330, 312
Pours
26
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
26 Nov 2023
Updated
1 Dec 2023

Overview

LevelSensor v2.0 is an open-source printed circuit board by lucasnoce, from the lucasnoce/IC-LevelSensor_v2 repository on GitHub. It is a 4-layer board of 92 × 50.4 mm with 125 parts on 128 nets, routed with 330 tracks and 312 vias.

It is built around the STM32L476RGT6, SIM7020E and SHT30-DIS, with the TPS613221ADBV, AMS1117-3.3 and ESDA6V1W5 among its other parts. Its parts include 37 resistors, 35 capacitors, 14 connectors, 9 transistors and 7 ICs. It belongs with the STM32 boards of this library.

Main components

12

README

README.md

IC-LevelSensor_v2

This is version 2 of an IoT device designed to measure water levels using an ultrasonic sensing module and transmit the acquired data via NBIoT.

Summary

Similar to version 1, the system employs an AJ-SR04M ultrasonic sensing module now connected to a STM32L476RGT6 microcontroller. This module measures the time interval it takes for an ultrasonic wave to travel from the transducer to the water level and back. By calculating the distance based on the time duration, the speed of sound, and dividing the result by 2, the accurate water level is determined. As the speed of sound varies based on factors such as temperature, humidity, and pressure, a SHT31-DIS sensor is incorporated to measure temperature and humidity (pressure is assumed constant). This additional information allows for precise estimation of the speed of sound just before each distance measurement is taken.

To transmit data to the TagoIO platform, a SIM7020 NBIoT module is utilized, employing the MQTT protocol. This facilitates the configuration of a comprehensive dashboard displaying variations in water and battery levels, local temperature and humidity over time, making it an excellent solution for monitoring purposes.

The device is specifically designed for deployment in remote environments and operates on battery power. Due to this constraint, the system primarily operates in low-power mode and wakes up periodically. In this initial version of the device, the wake-up period is intentionally kept small, and collected data is transmitted during each wake-up event via NBIoT. This design choice aims to facilitate easier debugging and testing of the device's functionality. Because it is designed to be battery powered, the device can monitor battery voltage through the microcontroller's ADC.

Designed PCB

The following image shows the designed PCB layout. It incorporates the SMT32, SHT31, SIM7020E and its adjacent circuitry onto the layout, only leaving the AJ-SR04M as an external module. The PCB features a P-Channel MOSFET at power input for low power reverse polarity protection, a selectable current sensing shunt resistor and ESD protection on the USB connector, SIM Card socket and SIM7020 power input tantalum capacitors. Also features IPEX connector for external antenna with impedance matched trace. The board works on 3.3V and can be powered either by 1.5V batteries such as AAA (through TPS613221ADBV DC-DC boost converter) or by the Micro USB type B (through AMS1117-3.3 regulator).

Software

Still under development, all drivers and functionalities will be implemented from scratch through STM32CubeIDE.

Parts

125
QtyValueFootprintReferences
12100nFCapacitor_SMD:C_0402_1005MetricC3, C4, C9, C12, C14, C16, C18, C25, C29, C31, C34, C39
81kResistor_SMD:R_0603_1608MetricR2, R3, R4, R10, R14, R16, R23, R32
84k7Resistor_SMD:R_0603_1608MetricR12, R20, R27, R28, R30, R33, R34, R35
610kResistor_SMD:R_0603_1608MetricR5, R6, R7, R9, R18, R19
651kResistor_SMD:R_0603_1608MetricR11, R13, R15, R21, R29, R31
4220uFCapacitor_Tantalum_SMD:CP_EIA-3528-12_Kemet-TC27, C28, C32, C37
4AO3400APackage_TO_SOT_SMD:SOT-23Q2, Q4, Q5, Q8
4SupPCBMountingHole:MountingHole_2.2mm_M2H1, H2, H3, H4
322RResistor_SMD:R_0402_1005MetricR22, R24, R25
322pFCapacitor_SMD:C_0402_1005MetricC23, C24, C26
322uFCapacitor_SMD:C_0603_1608MetricC5, C6, C7
3LOGOLOGOG***, G***, G***
3PESDHC2FD4V5BFootprint_Library:D_TVS_DFN1006-2LD4, D6, D8
3ToolingHoleFootprint_Library:JLCPCB_ToolingHoleH5, H6, H7
2100nFCapacitor_SMD:C_0603_1608MetricC20, C21
210nFCapacitor_SMD:C_0603_1608MetricC10, C11
212pFCapacitor_SMD:C_0402_1005MetricC17, C19
21uFCapacitor_SMD:C_0402_1005MetricC13, C30
24.7uFCapacitor_SMD:C_0603_1608MetricC1, C8
247kResistor_SMD:R_0603_1608MetricR26, R36
2AO3401APackage_TO_SOT_SMD:SOT-23Q1, Q3
2MMBT3904Footprint_Library:TBJ_SOT-23Q6, Q7
10RJumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmR37
10R15/2WResistor_SMD:R_2512_6332MetricR1
1100kResistor_SMD:R_0603_1608MetricR17
1100uFCapacitor_SMD:C_1206_3216MetricC38
110nFCapacitor_SMD:C_0402_1005MetricC15
110uFCapacitor_SMD:C_0603_1608MetricC2
116MHzCrystal:Crystal_SMD_Abracon_ABM8G-4Pin_3.2x2.5mmY1
12.2uHFootprint_Library:L_SMD-FNR4030S2R2MTL1
139nHInductor_SMD:L_0603_1608MetricL2
147Resistor_SMD:R_0402_1005MetricR8
1AJ-SR04MIC_LabTel:AJ-SR04MJ10
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1BATTFootprint_Library:ScrewTerminal_1x2P_P5mmJ2
1DP3415Footprint_Library:PMOS_DP3415_SOT-23Q9
1ESDA6V1W5Footprint_Library:SOT323-5LU6
1GNDConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ1
1I2CConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ11
1IPEXFootprint_Library:Conn_RF_Receptacle_SMT-TE_2337019-1J14
1JP_BOOST/USBConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ7
1JP_SHUNTConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical_SMD_Pin1LeftJ5
1LED_INFOLED_SMD:LED_0603_1608MetricD2
1LED_NETLED_SMD:LED_0603_1608MetricD3
1LED_STATUSLED_SMD:LED_0603_1608MetricD7
1NB_MÓDULOConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ15
1NB_USBConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ13
1ON/OFFFootprint_Library:SW_SPDT_SS-12D10-G090SW1
1PWR_LEDLED_SMD:LED_0603_1608MetricD1
1R_SHUNTConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical_SMD_Pin1LeftJ8
1SHT30-DISSensor_Humidity:Sensirion_DFN-8-1EP_2.5x2.5mm_P0.5mm_EP1.1x1.7mmU4
1SIM7020ERF_GSM:SIMCom_SIM800CU7
1SIM_CardFootprint_Library:NanoSIMCard-Socket_ZX-NSIM-281.4JJ12
1STM32L476RGT6Package_QFP:LQFP-64_10x10mm_P0.5mmU3
1SWD/ExtTrigConnector_PinHeader_2.54mm:PinHeader_1x07_P2.54mm_VerticalJ9
1SW_STM_BOOTFootprint_Library:SW_TS-1187A-B-A-BSW3
1SW_STM_NRSTFootprint_Library:SW_TS-1187A-B-A-BSW2
1TPS613221ADBVPackage_TO_SOT_SMD:SOT-23-5U1
1USBLC6-2SC6Package_TO_SOT_SMD:SOT-23-6U5
1USB_B_MicroFootprint_Library:USB_Micro_B-Dealon_USB-MR-D-015J3
1VCCConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ4

Questions

How big is the LevelSensor v2.0 PCB?

It measures 92 × 50.4 mm and has 4 copper layers, 4.69 mm thick.

What parts does the LevelSensor v2.0 use?

125 parts, built around the STM32L476RGT6, SIM7020E, SHT30-DIS and TPS613221ADBV. 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 LevelSensor v2.0 KiCad files?

From the lucasnoce/IC-LevelSensor_v2 repository on GitHub, at the commit this page was made from: the board is PCB_Design/LevelSensor_v2.0/LevelSensor_v2.0.kicad_pcb and its schematic PCB_Design/LevelSensor_v2.0/Alimentacao.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the LevelSensor v2.0 design in my own project?

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

Similar boards

  • 2 layers50 × 50 mmSIM7020E, the printed circuit board in 3D

    SIM7020E

    kycetin/SIM7020E-Board

    NB-IOT board using SIM7020E and MSP430G2553.

    45 partsMIT
  • 2 layers100 × 85 mmESP32 MediaCarrier routed, the printed circuit board in 3D

    ESP32 MediaCarrier routed

    xmyoot/esp32-media-carrier

    ESP32 multimedia carrier board with 7–24 V DC buck regulator, 3.2 W Class-D I2S audio amp, WS2812 LED ring driver, and SPI TFT display header

    97 partsMIT
  • 4 layers56 × 52 mmEdgeLink S3 Cellular, the printed circuit board in 3D

    EdgeLink S3 Cellular

    CDonohoe-Designs/EdgeLink_S3_Cellular

    EdgeLink S3 Cellular is a four-layer embedded hardware platform combining an ESP32-S3 controller, SIM7080G cellular/GNSS modem, USB-C, battery power management and environmental/motion sensing.

    114 parts
  • 4 layers38.5 × 47 mmSIM7080, the printed circuit board in 3D

    SIM7080

    techstudio-design/sim7080_dev_board

    SIM7080 Dev Board hardware design files

    55 parts17
  • 4 layers97.7 × 58.5 mmSumobot pcb, the printed circuit board in 3D

    Sumobot pcb

    keer-nova74/STM32-Sumo-Robot-Controller-PCB

    A robotics controller PCB project using an STM32 microcontroller, dual motor drivers, sensor interfaces, and power management, designed using KiCad.

    111 parts
  • 2 layers148.6 × 192.2 mmBadge, the printed circuit board in 3D

    Badge

    NuttyShell/NuttyBadge

    NuttyBadge: A NuttyShell crafted multi-tool. Opensourced Hardawre and Software

    169 parts31GPL-3.0
  • 2 layers43.6 × 43.6 mmEsp32 dron, the printed circuit board in 3D

    Esp32 dron

    Sagaz0501/esp32-drone

    PCB ESP32 quadcopter: KiCad hardware + Madgwick IMU firmware + WiFi web UI

    75 parts1MIT
  • 2 layers50 × 53 mmPicoquorum key, the printed circuit board in 3D

    Picoquorum key

    jmcpheron/pico-quorum

    Several people, several keys, one Safe. Hardware approvals for Safe multisig wallets.

    71 partsMIT