Skip to the content
4 layers60 × 60 mmAD5940 Lab, the printed circuit board in 3D

Portable IoT Electrochemical Biosensor & Edge AI Platform for Real-Time Water Quality & Bio-Diagnostics (Hyperbloom September Hackathon 2026)

Size
60 × 60 mm
Copper layers
4
Thickness
1.2 mm
Parts
71
Nets
64
Pads
222
Tracks, vias
535, 65
Pours
4
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
12 Sep 2026
Updated
12 Sep 2026

Overview

AD5940 Lab is an open-source printed circuit board by C12isme945, from the C12isme945/BioSmartSense-IoT repository on GitHub. It is a 4-layer board of 60 × 60 mm with 71 parts on 64 nets, routed with 535 tracks and 65 vias.

It is built around the AD5940BCBZ-RL7, ADP150AUJZ-3.3-R7 and MAX809TEUR+T, with the SS14 among its other parts. Its parts include 26 capacitors, 14 resistors, 7 connectors, 4 ICs and 2 diodes.

Main components

4

README

README.md

⚡ BioSmartSense-IoT: Portable Electrochemical Biosensor & Edge AI Platform

License Hardware AFE Python Streamlit Hackathon

Decentralized Point-of-Care Environmental Water Testing & Smart Biomaterial Analytics
Submitted to Hyperbloom September Hackathon 2026 (IoT + Machine Learning/AI + Social Good Track)


🌟 Overview

Water pollution, heavy metal toxicity (Lead $Pb^{2+}$, Cadmium $Cd^{2+}$), and delayed physiological biomarker diagnostics disproportionately impact vulnerable populations. Traditional laboratory electrochemical workstations (potentiostats / impedance analyzers) cost upwards of $5,000–$15,000 USD, requiring bulky benchtop setups and trained operators.

BioSmartSense-IoT bridges this gap:

  1. Custom Open Hardware: An ultra-compact, JLCPCB-manufactured 4-layer HDI PCB powered by the Analog Devices AD5940 precision Analog Front End (AFE) with standard Screen Printed Electrode (SPE) sockets.
  2. Edge Machine Learning & Signal Processing: Real-time extraction of Randles equivalent circuit parameters ($R_s, R_{ct}, C_{dl}, W$) and multi-frequency phase shifts to classify contaminant levels in seconds.
  3. Interactive Telemetry Dashboard: Streamlit-powered live visualization of complex impedance (Nyquist & Bode) and Cyclic Voltammetry (CV) with automated WHO/EPA drinking safety alerts.
  4. Sub-$35 BOM Cost: Full hardware production cost under $35 USD—democratizing precision electrochemistry for field environmentalists and decentralized healthcare.

📸 Hardware Architecture & 3D Renders

BioSmartSense 3D PCB Assembly

Figure 1: Raytraced 3D render of the BioSmartSense-IoT 4-layer HDI board featuring the AD5940 AFE, precision analog LDOs, and standard gold-plated SPE card-edge connector.

Hardware Specifications

SubsystemSpecification
Main Analog Front End (AFE)Analog Devices AD5940 (16-Bit, 800 kSPS SAR ADC, On-chip DFT engine)
PCB Stackup4-Layer FR4 HDI ($1.2\text{ mm}$ thickness, controlled impedance, JLCPCB standard)
Sensor InterfaceStandard 3-Electrode Screen Printed Electrode (SPE: WE, RE, CE, 2.54mm pitch)
Frequency Range$0.016\text{ Hz}$ to $200\text{ kHz}$ (Electrochemical Impedance Spectroscopy)
Current Dynamic Range$\pm 28\text{ }\mu\text{A}$ up to $\pm 3\text{ mA}$ with programmable internal RTIAs
Host InterfaceHigh-speed SPI ($16\text{ MHz}$) / USB-UART telemetry
Total BOM Cost$34.80 USD per small-batch prototype

🏗️ System Architecture

mermaid
graph TD
    subgraph S1["Physical Layer (IoT Hardware)"]
        SPE["Screen Printed Electrode (SPE)<br/>WE / RE / CE"] --> AFE["AD5940 Precision AFE<br/>(16-bit ADC + DFT Accelerator)"]
        AFE --> MCU["Microcontroller / Edge Host<br/>(SPI Driver & Register Sequencer)"]
    end
    
    subgraph S2["Machine Learning & Signal Core"]
        MCU --> FeatureEng["Electrochemical Signal Processing<br/>(Randles Fitting: Rs, Rct, Cdl, Warburg)"]
        FeatureEng --> Classifier["Analyte ML Classifier<br/>(Heavy Metal Quantification & WQI)"]
    end
    
    subgraph S3["User Telemetry & Action"]
        Classifier --> Dash["Streamlit Telemetry Dashboard<br/>(Nyquist / Bode / CV Plots)"]
        Classifier --> Alert["WHO / EPA Safety Risk Alert<br/>(Safe / Warning / Hazardous)"]
    end

💻 Quick Start & Reproduction Guide

1. Prerequisites

  • Python 3.9+ installed.
  • (Optional) KiCad 8 for opening and editing hardware schematics.

2. Installation

bash
# Clone the repository
git clone https://github.com/C12isme945/BioSmartSense-IoT.git
cd BioSmartSense-IoT

# Install Python dependencies
pip install -r requirements.txt

3. Run Automated Unit Tests

bash
python -m unittest discover -s tests -v

(Runs 3 test suites verifying Randles extraction, water quality classification, and CV analysis in <0.3s)

4. Launch Interactive Web Dashboard

bash
streamlit run dashboard/app.py

Open your browser at http://localhost:8501 to test live Nyquist/Bode plots, switch sample presets, and inspect the 4-layer PCB engineering views.

5. Headless Command-Line Interface (CLI)

bash
# Run real-time diagnostic scan
python cli.py --analyte "Lead (Pb2+)" --rct 850.0

# Export JSON for IoT telemetry pipelines
python cli.py --analyte "Cadmium (Cd2+)" --json

📂 Repository Structure

text
BioSmartSense-IoT/
├── README.md                      # Master documentation & benchmark guide
├── LICENSE                        # Apache 2.0 Open-Source License
├── requirements.txt               # Pinned Python package dependencies
├── .gitignore                     # Git ignore rules for KiCad and Python
├── cli.py                         # Command-line interface for edge deployment
├── dashboard/
│   └── app.py                     # Streamlit live telemetry dashboard
├── ml_core/
│   ├── feature_extraction.py      # Randles circuit parameter extraction & CV peaks
│   ├── analyte_classifier.py      # Heavy metal & Water Quality Index (WQI) models
│   └── simulation_data.py         # Multi-frequency EIS & CV benchmark generator
├── firmware/
│   └── ad5940_driver.py           # AD5940 SensorPal SPI driver interface
├── hardware/                      # Complete KiCad 8 Hardware Design
│   ├── design/                    # KiCad schematic, PCB, and symbol libraries
│   ├── exports/                   # Schematics PDF, 3D renders, layer drawings
│   ├── JLC_PCB_UPLOAD/            # Ready-to-order JLCPCB Gerbers, drill files, BOM
│   ├── AD5940_Lab_A1_Engineering.zip
│   └── 电气设计与首板调试.md          # Hardware debugging and layout guidelines
├── docs/
│   └── images/                    # High-resolution renders and block diagrams
└── tests/
    └── test_biosmartsense.py      # Comprehensive unit tests

🏆 Hackathon Submission Details

Parts

71
QtyValueFootprintReferences
9100nFCapacitor_SMD:C_0603_1608MetricC1, C2, C4, C6, C13, C14, C15, C25, C27
533RResistor_SMD:R_0603_1608MetricR5, R6, R7, R8, R9
4470nFCapacitor_SMD:C_0603_1608MetricC9, C10, C11, C12
4M3MountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
310uFCapacitor_SMD:C_0603_1608MetricC3, C5, C20
31uFCapacitor_SMD:C_0603_1608MetricC7, C21, C23
34.7uFCapacitor_SMD:C_0603_1608MetricC8, C22, C24
210kResistor_SMD:R_0603_1608MetricR10, R11
26.8pF C0GCapacitor_SMD:C_0603_1608MetricC18, C19
2ADP150AUJZ-3.3-R7Package_TO_SOT_SMD:SOT-23-5U2, U3
1100kResistor_SMD:R_0603_1608MetricR14
1100k 0.1%Resistor_SMD:R_0603_1608MetricR3
1100nF 5%Capacitor_SMD:C_0603_1608MetricC26
110k 0.1%Resistor_SMD:R_0603_1608MetricR13
110k 0.1% 10ppmResistor_SMD:R_0603_1608MetricR2
116MHz CL=8pF OPTIONCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
11kResistor_SMD:R_0603_1608MetricR1
11k 0.1%Resistor_SMD:R_0603_1608MetricR12
12-WIRE SHORT CE-REConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJP1
12.2kResistor_SMD:R_0603_1608MetricR4
1220nFCapacitor_SMD:C_0603_1608MetricC17
13V3 SPI HOSTConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ2
15V INPUT 4.75-5.25VConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ1
1AD5940BCBZ-RL7AD5940_Lab:AD5940_WLCSP56_0.4mmU1
1ADC EXPANSIONConnector_PinHeader_2.54mm:PinHeader_1x07_P2.54mm_VerticalJ5
1AFE EXPANSIONConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ4
1AVDDTestPoint:TestPoint_Pad_D1.0mmTP2
1CELL CE RE WE DE GNDConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ6
1DUMMY CEConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJP3
1DUMMY REConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJP4
1DUMMY WEConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJP5
1DVDDTestPoint:TestPoint_Pad_D1.0mmTP3
1EXTERNAL TIAConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ7
1GNDTestPoint:TestPoint_Pad_D1.0mmTP1
1GPIO EXPANSIONConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ3
1GPIO0TestPoint:TestPoint_Pad_D1.0mmTP6
1GREENLED_SMD:LED_0603_1608MetricD2
1IOVDDTestPoint:TestPoint_Pad_D1.0mmTP4
1MAX809TEUR+TPackage_TO_SOT_SMD:SOT-23U4
1PTC 100mAFuse:Fuse_1206_3216MetricF1
1RESETButton_Switch_SMD:SW_SPST_TL3342SW1
1RESET_NTestPoint:TestPoint_Pad_D1.0mmTP5
1SHORT WE-DE IF MODE REQUIRESConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJP2
1SS14Diode_SMD:D_SMAD1

Similar boards

  • 2 layers64 × 50 mmResol VBus RevE, the printed circuit board in 3D

    Resol VBus RevE

    labodj/resol-vbus-interface

    Isolated RESOL VBus RX/TX interface for ESPHome: KiCad Rev E prototype, BOM and fabrication files

    51 parts
  • 4 layers95.9 × 90.2 mmPCI-104-Template, the printed circuit board in 3D

    PCI-104-Template

    marian1911/Proyecto-CUBESAT-TRANSPODER-VHF-UHF

    En este repositorio se guardan todos los archivos de desarrollo referidos a el diseño y fabricacion del trasnponder VHF/UHF

    128 parts
  • 2 layers39.4 × 109.2 mmMiditron back, the printed circuit board in 3D

    Miditron back

    soundslikefrank/miditron

    midi2cv module best to be used with Elektron devices

    144 parts4
  • 2 layers100 × 100 mmGrow, the printed circuit board in 3D

    Grow

    soundslikefrank/grow

    A Eurorack genetic sequencer

    140 parts3GPL-3.0
  • 4 layers48.5 × 38.3 mmPLL ADF4159, the printed circuit board in 3D

    PLL ADF4159

    Kevpamm/PCB-PLL-ADF4159

    This git repository tracks the design and development of the PCB for a phase-locked loop (PLL) system centered around the ADF4159 IC

    80 parts
  • 4 layers193 × 105.2 mmAFE V3, the printed circuit board in 3D

    AFE V3

    Pgr18/CELL_Z_SPECT_hardware

    Печатные платы для проекта клеточной импедансной спектроскопии

    293 parts
  • 2 layers65 × 70 mmDCU, the printed circuit board in 3D

    DCU

    philiplind99/VMU-HW-2023

    VMU

    116 parts

Questions

How big is the AD5940 Lab PCB?

It measures 60 × 60 mm and has 4 copper layers, 1.2 mm thick.

What parts does the AD5940 Lab use?

71 parts, built around the AD5940BCBZ-RL7, ADP150AUJZ-3.3-R7, MAX809TEUR+T and SS14. 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 AD5940 Lab KiCad files?

From the C12isme945/BioSmartSense-IoT repository on GitHub, at the commit this page was made from: the board is hardware/design/AD5940_Lab.kicad_pcb and its schematic hardware/design/02_Power.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the AD5940 Lab design in my own project?

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