Skip to the content
2 layers196.8 × 171.5 mmSmarthomepcb2logic, the printed circuit board in 3D

Smarthomepcb2logic

chromyx/Analog-Home-Design

The Analog Smart Environment Monitor is a multi-sensor safety and automation system designed to continuously monitor environmental conditions and respond automatically to critical events.

Size
196.8 × 171.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
69
Nets
56
Pads
196
Tracks, vias
321, 1
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
28 May 2026
Updated
2 Jun 2026

Overview

Smarthomepcb2logic is an open-source printed circuit board by chromyx, from the chromyx/Analog-Home-Design repository on GitHub. It is a 2-layer board of 196.8 × 171.5 mm with 69 parts on 56 nets, routed with 321 tracks and 1 via.

It is built around the LM324, LM393 and NE555P, with the ULN2003 among its other parts. Its parts include 21 connectors, 20 resistors, 8 capacitors, 6 ICs and 6 diodes.

Main components

4

README

readme.md

🏠 Analog Smart Environment Monitor

A Fully Analog, Microcontroller-Free Home Monitoring and Safety System

An autonomous environment monitoring platform built entirely with analog electronics, comparator logic, and discrete components — demonstrating how complex sensing, decision-making, and actuator control can be achieved without a single line of software.


🚀 Overview

The Analog Smart Environment Monitor is a multi-sensor safety and automation system designed to continuously monitor environmental conditions and respond automatically to critical events.

Unlike modern IoT solutions that rely on microcontrollers and embedded software, this project operates entirely through analog signal processing, comparator networks, diode logic, and hardware-based decision making.

The system monitors:

  • 🔥 Fire and gas hazards
  • 🚨 Intrusion and movement detection
  • 🌡️ Temperature and ambient light conditions
  • 🌱 Soil moisture and rainfall conditions

and autonomously controls:

  • 💧 Water pumps
  • 🌬️ Cooling fans
  • 🔔 Alarm buzzer
  • 💡 Automatic lighting
  • 🚿 Irrigation systems

All decisions are performed directly in hardware with no firmware, operating system, or programmable logic.


🎯 Design Philosophy

Modern electronics often hide engineering complexity behind software.

This project intentionally takes the opposite approach.

Every sensing chain, priority decision, and actuator response is implemented using:

  • LM393 Comparator Networks
  • LM324 Analog Processing Stages
  • ULN2003 Darlington Drivers
  • NE555 Timing Circuits
  • Diode Logic Networks
  • Discrete Analog Design Techniques

The goal was to demonstrate that sophisticated environmental automation can be achieved using fundamental electronics principles alone.


⚡ System Architecture

The monitor is organized into four independent sensing chains with hardware-enforced priorities.

PriorityMonitoring ChainSensorsOutput
🔥 1 (Highest)Fire ProtectionMQ-2 Gas Sensor + Flame SensorWater Pump + Alarm
🚨 2Intrusion DetectionPIR + Sound + VibrationAlarm + Indicators
🌡️ 3Comfort ControlTemperature + Ambient LightFan + Lighting
🌱 4Garden ManagementSoil Moisture + Rain SensorIrrigation Pump

🔥 Fire Protection Logic

The fire detection subsystem combines:

  • Flame sensor
  • MQ-2 gas/smoke sensor

Both signals are processed through comparator stages and merged using a wired-AND topology.

Only when both conditions indicate danger is the fire alarm asserted.

Response

  • Activates emergency water pump
  • Enables alarm buzzer
  • Overrides lower-priority comfort functions

This chain has absolute system priority.


🚨 Intrusion Detection Logic

Three independent sensors contribute to the intrusion subsystem:

  • PIR Motion Sensor
  • Sound Sensor
  • Vibration Sensor

Outputs are aggregated through diode-OR logic.

Any sensor can trigger:

  • Alarm buzzer
  • Status indication outputs

allowing robust intrusion detection using multiple physical phenomena.


🌡️ Comfort Automation

The comfort subsystem continuously evaluates:

Temperature

Measured using an NTC thermistor comparator chain.

Ambient Light

Measured using an LDR-based comparator stage.

Outputs drive:

  • Cooling fan
  • Automatic room lighting

providing fully autonomous environmental control.


🌱 Garden Automation

The irrigation subsystem monitors:

  • Soil moisture
  • Rain conditions

Smart Rain Override

A diode-injected threshold override prevents irrigation during rainfall.

When rain is detected:

  • Soil moisture logic is bypassed
  • Irrigation pump is disabled

This prevents unnecessary watering and demonstrates hardware-based decision prioritization.


🔧 Hardware Architecture

The project consists of two custom-designed PCBs.


PCB 1 — Power Supply Board

A regulated dual-rail power system generating both 12 V and 5 V rails.

Features

  • Input protection fuse
  • Bulk filtering capacitors
  • L7812 regulator stage
  • L7805 regulator stage
  • Power status indicators
  • Dedicated output terminals

Outputs

  • 12 V regulated rail
  • 5 V regulated rail

PCB Characteristics

  • 1 mm power traces
  • Full ground-plane copper pour
  • Through-hole assembly

PCB 2 — Sensor & Logic Board

The central processing board containing all sensing and decision logic.

Major Components

ComponentFunction
LM393 ×3Comparator stages
LM324 ×1Intrusion processing
ULN2003ANRelay and actuator drivers
NE555Alarm tone generation
1N4148 DiodesLogic implementation
TrimpotsThreshold adjustment

Functional Blocks

  • Fire detection logic
  • Intrusion detection logic
  • Comfort automation
  • Garden irrigation control
  • Priority management
  • Alarm generation

🔊 Alarm System

An NE555 timer configured as an astable oscillator generates a ~1 kHz alarm tone.

The buzzer is enabled by diode-OR logic from:

  • FIRE_OUTPUT
  • INTRUDER_ALERT

allowing multiple alarm sources to activate the same warning system.


📁 Repository Structure

text
ANALOG HOME DESIGN 22/
│
├── Project/
│
├── PowerSystem/
│   ├── Schematics
│   ├── PCB Layout
│   ├── Gerbers
│   ├── CNC G-Code
│
└── smarthomepcb2logic/
    ├── Schematics
    ├── PCB Layout
    ├── BOM
    ├── Gerbers
    └── CNC G-Code

🏭 Fabrication

The boards were designed and prepared for both:

Commercial PCB Manufacturing

Compatible with:

  • JLCPCB
  • PCBWay
  • OSH Park

through exported Gerber and drill packages.

CNC Isolation Milling

Generated G-code files allow direct fabrication from copper-clad FR4 using a desktop CNC machine.

This method was used for the project's physical prototype.


📋 Bill of Materials

Major active devices include:

  • LM393 Dual Comparator ×3
  • LM324 Quad Op-Amp ×1
  • ULN2003AN Driver Array ×1
  • NE555 Timer ×1
  • L7812 Voltage Regulator
  • L7805 Voltage Regulator
  • 5V Relay Modules ×5
  • 1N4148 Signal Diodes ×6
  • 10kΩ Trimpots ×7

All components are through-hole for ease of assembly, repair, and educational visibility.


✅ Validation

Before PCB fabrication, every subsystem was individually verified on breadboard:

  • Comparator threshold operation
  • Fire wired-AND logic
  • Intrusion diode-OR aggregation
  • Rain override functionality
  • Relay actuation
  • Fan and pump control

Hardware testing confirmed correct system behavior under all operating conditions.


📈 Project Status

ItemStatus
Power PCB Schematic✅ Complete
Power PCB Layout✅ Complete
Power PCB Gerbers✅ Exported
Power PCB G-Code✅ Generated
Logic PCB Schematic✅ Complete
Logic PCB Layout✅ Complete
Logic PCB Gerbers✅ Exported
Logic PCB G-Code✅ Generated
Breadboard Validation✅ Complete
CNC Fabrication🔄 In Progress
Final Assembly🔄 Pending

🛠 Tools Used

  • KiCad 9.0
  • FlatCAM
  • CNC Milling Machine
  • Bench Power Supply
  • Breadboards
  • Digital Multimeter

🎓 Academic Context

Developed as a second-year Electronics Engineering project focusing on:

  • Analog Electronics
  • Comparator Design
  • PCB Design
  • Hardware Logic Implementation
  • Sensor Interfacing
  • Power Electronics
  • CNC PCB Fabrication

📜 License

Educational and research use.

Free to study, modify, and adapt for non-commercial purposes.


👨‍💻 Author

Bergi Chromyx

Electronics Engineering Student

2026

Parts

69
QtyValueFootprintReferences
16Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ5, J7, J8, J9, J10, J11, J12, J13, J14, J15, J16, J17, J18, J19, J20, J21
1210KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR11(PU)1, R12(PU)1, R13(PD)1, R14, R15, R16(PD)1, R17, R18, R19(PU)1, R20(PU)1, R21(Ra)1, R22(Rb)1
710kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR2(TD)1, R3(TD)1, R5(PU)1, R7, R8, R9(TH)1, R10(PU)1
6100nFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC1, C2, C3, C4, C5, C9
61N4148Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD1, D2, D3, D4, D5, D6
5R_PotentiometerPotentiometer_THT:Potentiometer_Bourns_3296W_VerticalRV1, RV2, RV5, RV6, RV7
3LM393Package_DIP:DIP-8_W7.62mmU1, U2, U4
210kPotentiometer_THT:Potentiometer_Bourns_3296W_VerticalRV3, RV4
110nFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC8
147nFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC7
1BUZZER_OUTConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ_BUZ1
1Conn_01x03Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ6
1FLAME_SENSORConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ3
1LM324Package_DIP:DIP-14_W7.62mmU3
1MQ2_GASConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ4
1NE555PPackage_DIP:DIP-8_W7.62mmU6
1PWR_12V_INConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ1
1PWR_5V_INConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ2
1RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR23
1ULN2003Package_DIP:DIP-16_W7.62mmU5

More from chromyx/Analog-Home-Design

1
  • 2 layers108.2 × 63.5 mmPjesa333, the printed circuit board in 3D

    Pjesa333

    chromyx/Analog-Home-Design

    The Analog Smart Environment Monitor is a multi-sensor safety and automation system designed to continuously monitor environmental conditions and respond automatically to critical events.

    16 parts

Similar boards

  • 4 layers153.1 × 88.1 mmMenelaos v1, the printed circuit board in 3D

    Menelaos v1

    acastles91/menelaos

    94 parts
  • 2 layers107.9 × 76.7 mmHydroponic, the printed circuit board in 3D

    Hydroponic

    Khanhdtr/hydroponis-hw-kicad

    101 parts
  • 2 layers231.1 × 106.7 mmSnark barker, the printed circuit board in 3D

    Snark barker

    schlae/snark-barker

    A 100% compatible replica of the famed SB 1.0 sound card

    199 parts687
  • 4 layers292.1 × 88.3 mmSnark barker mca, the printed circuit board in 3D

    Snark barker mca

    schlae/snark-barker-mca

    A Sound Blaster compatible sound card for Micro Channel bus computers

    177 parts69
  • 4 layers150 × 100 mmUltimate LPS, the printed circuit board in 3D

    Ultimate LPS

    BTTLab/simple_and_affordable_lps

    Simple and affordable power supply

    97 parts27MIT
  • 2 layers137.2 × 50.8 mmReceiver, the printed circuit board in 3D

    Receiver

    ivanahepjuk/analog_laser_transmitter_receiver

    Schematis and pcbs, Analog laser audio transmitting system. Pulse-width modulation, then detected by colour LEDs and filtered by analog filters.

    81 parts6
  • 2 layers135.8 × 56.1 mmPower board, the printed circuit board in 3D

    Power board

    xtarke/automated_buggy

    This shield connects microcontroller (MSP-EXP430FR2355) pins to the car's power board. Go to Power Board for more hardware information.

    87 parts5GPL-3.0
  • 2 layers52 × 26 mmAnemometer, the printed circuit board in 3D

    Anemometer

    derGraph/anemometer

    My Anemometer Design for MCU, probably with ESP8266 Code soon

    32 parts1

Questions

How big is the Smarthomepcb2logic PCB?

It measures 196.8 × 171.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Smarthomepcb2logic use?

69 parts, built around the LM324, LM393, NE555P and ULN2003. 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 Smarthomepcb2logic KiCad files?

From the chromyx/Analog-Home-Design repository on GitHub, at the commit this page was made from: the board is smarthomepcb2logic/smarthomepcb2logic.kicad_pcb and its schematic PowerSystem/Project.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Smarthomepcb2logic design in my own project?

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