KO EN ZH HI
← sy-baek.shop
NEW PROJECT ESP32-S3 KiCad EDA

Smart Ginseng Grower v4

ESP32-S3 Based Smart Ginseng Sprout Cultivator
Automated Environment Control · LED Spectrum Optimization · Remote Monitoring

51 Parts 16 GPIOs 3ch Relay WiFi + BLE

Project Overview

An IoT-based smart cultivator that automatically controls temperature, humidity, and lighting for ginseng sprouts in high-humidity growing environments.

STANDARD

SGG-200

3 tiers × 5 rows (15 rows) · 108W

LED SMPS: GT200 (200W/16.7A) Load: 54% Headroom: 52W (max 22 rows) Use: Small-scale · Home · Prototype
EXPANDED

SGG-300

3 tiers × 5 rows (15 rows) · 108W

LED SMPS: GT300 (300W/25A) Load: 36% Headroom: 132W (max 30 rows expandable) Use: Commercial · Large farm · Scalable
🧠

ESP32-S3 DevKitC-1

N8R2U (external antenna), Dual-Core 240MHz, WiFi+BLE, 36 GPIO. SMA antenna mounted outside waterproof enclosure.

🌡️

Environmental Sensing

DHT22 temperature/humidity sensor, DS3231 RTC real-time clock. 3x TM1637 FND displays showing date/temperature/humidity simultaneously.

Relay Control

G5LE-1 relay 3-channel (LED lighting, motor, spare). 2N7002 MOSFET driver. Direct AC 220V switching.

📡

Waterproof Design

Boxco ABS/PC waterproof enclosure (IP65). ESP32-S3 N8R2U external antenna ensures WiFi/BLE signal quality.

🎮

IR Remote Control

VS1838B infrared receiver for physical remote control. Offline operation available in addition to web UI.

💡

LED Grow Lights

3 tiers x 5 rows = 15 rows R:B:W LED BAR. GT200/GT300 SMPS (DC12V) for stable power supply. Timer auto ON/OFF.

System Architecture

2-PCB architecture with 12-pin header connection. Signal flow from AC 220V power through sensors, relays, and displays.

┌─ MAIN PCB (Enclosure Base) ────────────────────────────┐ │ │ │ AC 220V ── IEC C14 [SW+Fuse+Indicator] ── RV1(MOV) │ │ ├── HLK-10M05 SMPS ── 5V/2A ──┬── ESP32-S3│ │ │ │ │ │ │ ├── DHT22 ───── GPIO6 │ │ │ │ ├── DS3231 ─── GPIO8,9 │ │ │ │ ├── SW1 RESET │ │ │ │ │ │ │ │ │ ├── K1(LED) ── GPIO10 ─ Q1 │ │ │ │ ├── K2(Motor)─ GPIO11 ─ Q2 │ │ │ │ └── K3(Spare)─ GPIO16 ─ Q3 │ │ │ │ │ │ │ └── [J5] 12-Pin Header ────────┘ │ └──────────────────────┬──────────────────────────────────┘ │ 12-Pin Flat Cable ┌─ SUB PCB (Enclosure Lid) ───────────────────────────────┐ │ │ │ │ [J1] 12-Pin Header │ │ ├── FND×3 (CLK shared) ── GPIO3/4/14/15 │ │ ├── VS1838B IR ────────── GPIO5 │ │ ├── LED ×3 (G/R/B) ───── GPIO7/12/13 │ │ └── MODE Button(IP67) ── GPIO2 │ └──────────────────────────────────────────────────────────┘ SGG-200: GT200 (DC12V/200W) ──── LED BAR 15 strips (3×5, 108W) SGG-300: GT300 (DC12V/300W) ──── LED BAR 15 strips (expandable to 30)

Hardware Specifications

51 total components — Main PCB 30 + Sub PCB 21 (2-PCB architecture).

Main PCB (30 parts)

CategoryComponentSpecQtyRole
AC InputIEC C14 SocketSW+Fuse+Indicator1AC 220V Power Inlet
PowerHLK-10M05AC220V→5V 2A1SMPS Main Power
MCUESP32-S3-DevKitC-1N8R2U, DIP-40 25.4mm1Main Controller
RelayG5LE-1 5VDCSPDT 10A3LED/Motor/Spare AC Switching
MOSFET2N7002N-ch SOT-233Relay Driver
SensorDHT22Temp/Humidity1Growing Environment Monitor
RTCDS3231I2C1Real-Time Clock
ProtectionRV1 Varistor14D471 MOV1Surge Protection
ConnectorJ5 12-Pin Header2.54mm1Main↔Sub PCB Connection

Sub PCB (21 parts)

CategoryComponentSpecQtyRole
FNDTM16377-seg 4digit3Date/Temp/Humidity Display
IRVS1838B38KHz1Remote Control Receiver
LEDLED ×3Green/Red/Blue3Status Indicators
SwitchPush ButtonWaterproof IP671MODE Button
Resistor220Ω + 10KΩ1/4W4LED Current Limit + Pull-up
Decoupling100µF + 100nFElectrolytic+Ceramic8Per-Module Noise Filtering
ConnectorJ1 12-Pin Header2.54mm1Sub↔Main PCB Connection

GPIO Assignment

16 out of 36 GPIOs on the ESP32-S3 are utilized.

GPIONet NameFunctionDirectionNote
2MODE_SWTEST/RUN SwitchIN10K Pull-up
3FND_CLKTM1637 CLK SharedOUTShared by 3 FNDs
4FND1_DIODate FNDI/O01d~30d
5IR_OUTVS1838BIN38KHz
6DHT_DATADHT22I/O4.7K Pull-up
7LED_STATUSGreen LEDOUTLighting Status
8I2C_SDADS3231I/OI2C Data
9I2C_SCLDS3231OUTI2C Clock
10RELAY1_DRVCH1 LED LightingOUTQ1 → K1
11RELAY2_DRVCH2 MotorOUTQ2 → K2
12LED_MOTORRed LEDOUTMotor Status
13LED_POWERBlue LEDOUTPower OK
14FND2_DIOTemperature FNDI/O°C
15FND3_DIOHumidity FNDI/O%RH
16RELAY3_DRVCH3 SpareOUTQ3 → K3

KiCad Schematic (v4)

2-PCB schematics designed in KiCad 10.0.1. Click to view the original SVG.

Main PCB — Power + MCU + Relay (30 parts)

Main PCB Schematic

IEC C14 → RV1 → HLK-10M05 SMPS | ESP32-S3 DevKitC-1 | G5LE-1 Relay×3 + 2N7002 | DS3231 + DHT22 | J5 12P Header

Sub PCB — Front Panel Display (21 parts)

Sub PCB Schematic

TM1637 FND×3 (Date/Temp/Humidity) | VS1838B IR | LED×3 (Green/Red/Blue) | MODE Waterproof Button | J1 12P Header

Waterproof Enclosure

Waterproof design to protect electronic components in high-humidity growing environments.

Boxco BC-AGS-192810 Enclosure 2.5D

Boxco BC-AGS-192810 (190×280×100mm, IP65) — OpenSCAD 3D Rendering

EnclosureBoxco BC-AGS-192810
Size190 × 280 × 100mm
MaterialABS / PC
IP RatingIP65
AntennaSMA Bulkhead (IP67)
MCUESP32-S3 N8R2U (U.FL)
AC InputIEC C14 (SW+Fuse+Lamp)
External AntennaSMA Bulkhead (IP67)

2-PCB Mounting Structure

Main PCB is mounted on the enclosure base (bottom), housing AC power input (IEC C14), SMPS, ESP32-S3, and 3 relay channels.
Sub PCB is mounted on the enclosure lid (top), housing 3 FND displays, 3 status LEDs, IR receiver, and MODE button.
The two boards are connected via a 12-pin flat cable (J5↔J1 headers), enabling clean separation for assembly and maintenance.

External Antenna Configuration

ESP32-S3 N8R2U (U.FL connector) → U.FL to SMA pigtail cable → SMA waterproof bulkhead (enclosure pass-through, IP67) → External 2.4GHz SMA antenna
* Maintains enclosure waterproof rating while ensuring WiFi/BLE signal quality

LED Spectrum Research

Optimized LED spectrum ratios and light intensity research results for ginseng sprouts (shade plants).

Optimal Spectrum Ratio

WavelengthColorRatioRole
620-660nmRed40%Core photosynthesis, stem growth promotion
440-470nmBlue25%Saponin synthesis, leaf development, morphogenesis
4000-5000KWhite30%Full spectrum supplementation
720-740nmFar-red5%Stem elongation, flowering regulation
PPFD50-120 µmol/m²/s
Max PPFD200 µmol/m²/s
Photoperiod12-16 hrs/day
DLI11-20 mol/m²/d

Ginseng is a Shade Plant

Ginseng (Panax ginseng) naturally grows in forest shade as a shade plant. PPFD above 200 µmol/m²/s can cause photoinhibition, suppressing growth. It should be managed at 1/3 to 1/2 the level of typical leafy greens (300-500).

LED Type Comparison

Comparing efficiency, suitability, and cost-effectiveness of 5 LED types for plant cultivation.

LED TypeEfficiency (µmol/J)Ginseng SuitabilityUnit CostFeatures
Samsung LM301H3.10SHighHighest efficiency, professional cultivation, full spectrum
Full Spectrum2.2-2.8AMediumGood cost-performance, suitable for research
R+B+W (2:1:1)1.8-2.2B+LowPractical for the price Selected
R+B (2:1)1.5-2.0BLowNo white, unbalanced spectrum
Mono R / B1.2-1.8CLowNot recommended except for research
Selected: R:B:W = 2:1:1 Type
Lower efficiency compared to Samsung LM301H, but at 1/5 to 1/10 the price, it delivers sufficient performance for ginseng sprouts' low PPFD requirements (50-120). 50cm BAR type, IP65 waterproof.

SMPS Capacity Calculation

Comparing SMPS load ratios for both models with 15 LED BARs (108W).

LED Config3 tiers × 5 rows = 15 rows
Per LED Row50cm / 7.2W
Total Draw108W
80% Safety Margin160W (SGG-200) / 240W (SGG-300)
STANDARD

SGG-200

SMPSGT200 (IP67)
OutputDC 12V / 200W / 16.7A
Load54% (108/200)
Headroom52W (max 22 rows)
Verdict✓ Sufficient
EXPANDED

SGG-300

SMPSGT300 (IP67)
OutputDC 12V / 300W / 25A
Load36% (108/300)
Headroom132W (max 30 rows expandable)
Verdict✓ Ample headroom
Selection Guide
SGG-200: Sufficient for standard 15-row setup. Ideal for small-scale, home, and prototype use.
SGG-300: Expandable up to 2x LED rows. Recommended for commercial and large-scale farms.

Indoor Crop Profitability Comparison

TOP 10 annual revenue per m² rankings for multi-tier LED plant factories.

#CropAnnual Rev/m²CycleAnnual TurnLEDDifficultyPayback
1Microgreens450~1,950만원7~14 days26~52Med★★2~4 months
2Baby Leaf260~1,040만원21~35 days10~17Med6~12 months
3Lion's Mane Mushroom200~400만원30~45 days8~10N/A★★3~6 months
4Edible Flowers65~390만원30~60 days6~9High★★★12~24 months
5Basil/Herbs65~390만원30~45 days8~10Med★★6~12 months
6Ginseng Sprouts150~350만원45~60 days5~6Med★★★★6~12 months
7Strawberry195~390만원40 days+cont.4~6High★★★★3~5 years
8Ice Plant45~150만원50~70 days5~6Med★★12~18 months
9Leafy Greens80~180만원25~35 days10~12Med3~5 years
10Reishi Mushroom80~200만원60~90 days3~4N/A★★★2~3 years

Crops Unsuitable for Indoor Cultivation

CropReason for Exclusion
SaffronWorld's most expensive spice, but only 0.5~2g yield per m² → lowest revenue per area
Wasabi18~24 months, requires chilled flowing water, extremely high technical barrier
Vanilla3~5 years to flower, excessive energy costs for tropical environment
Angelica/Cnidium/Licorice/AstragalusRoots 60cm~1m+, 2~4 year cultivation, physically impossible indoors
Tomato/Bell PepperExtremely high light requirements → glass greenhouse is more economical

Recommended Multi-Crop Combination

Optimal 3-crop combination controllable with a single ESP32-S3 controller.

Primary Zone A

Ginseng Sprouts

45~60 day cycle, Korea-specialized premium
18~22°C / 70~80% / LED R+B+W

Net margin 50~70%
Cash Flow Zone B

Microgreens

7~14 day ultra-fast turnover, #1 revenue per m²
18~24°C / 50~70% / LED 16h

Payback 2~4 months
Power Savings Zone C

Lion's Mane Mushroom

30~45 days, no LED needed (dark~low light)
15~20°C / 85~95% / ventilation required

Explosive global brain health demand

100-pyeong (~330m²) Multi-Crop Projection

Annual Revenue
2~4억원
Net Margin
40~60%
Payback Period
1~2 years

Development Roadmap

The evolution from Arduino Nano to ESP32-S3.

v1 — Arduino Nano
Basic Timer Control
Simple relay ON/OFF timer. DHT11 temperature/humidity reading. 7-seg FND display.
v3 — ESP32-C3
WiFi Connection + Web UI
Remote monitoring via WiFi. Web dashboard. I2C RTC added. Smartphone control.
v4 — ESP32-S3 (Current)
Full Automation + Waterproof Design
51 parts (2-PCB), 16 GPIOs, 3ch relay, 3 FNDs, IR remote. IEC C14 power inlet.
Waterproof enclosure + external antenna. KiCad EDA design. LED spectrum optimization.
→ PCB fabrication → Assembly → Field testing

Pricing / Cost Analysis

Restricted data including LED supplier pricing, ginseng sprout market prices, smart farm investment costs, and ROI analysis.

LED Domestic Supplier Price Comparison

ProductPriceW/50cmNote
R2:B1:W1 50cm BAR15,000원7.2WIP65, individual bar
R2:B1 50cm BAR15,000원7.2WNo white
SONQIN 5M Reel7,510원/5M (751원/50cm)~7.2W60LED/m, cut-to-length
GreenMax 50cm4,000원~5WIndividual bar
R2:B1:W1 1m BAR28,000원14.4W1m individual bar

Ginseng Sprout Market Prices (Lotte ON Reference)

Grade50 Roots100 RootsPrice/RootPer kg Equivalent
Small (under 15cm)17,900~25,90028,500~47,000285~470원1.9~4.7만
Medium (15~20cm)28,900~33,60042,900~53,700430~540원2.8~5.4만
Large (20~25cm)31,900~37,40057,000~64,300445~638원3.0~6.4만
Premium (over 25cm)40,300~44,10066,200~71,000595~806원4.0~8.0만
2-Year Root-119,300~152,4601,200~1,525원8.0~15.2만

100-Pyeong Smart Farm Revenue Simulation

ItemValue
Annual Production~1.4 million roots
Wholesale Revenue (200원/root)~2.8억원/year
Retail Direct Revenue (430원/root)~6.0억원/year
Annual Operating Cost0.7~1.0억원
Net Margin (Realized)50~70%

Initial Investment (100-Pyeong Basis)

ItemCostNote
Facility (Container/Dedicated)1,500~5,000만원Varies by scale
Multi-Tier Racks (4~5 tiers)300~800만원Steel/Aluminum
LED Lighting200~500만원R:B:W type
Environmental Control200~500만원Sensors, ventilation, AC
Irrigation System100~300만원Auto irrigation, nutrient solution
Ginseng Seed Roots (種根)150~300만원1-yr roots × 900 pcs (3 tiers), Jangseong Jeonnam nursery
Total2,450~7,400만원

Global ROI Comparison (USD Basis)

CropInitial Invest ($/m²)Annual OpExAnnual RevenueNet ProfitPayback
Microgreens200~800300~800800~2,500400~1,2000.5~1 yr
Sprouts100~400150~400250~800100~4000.5~1.5 yr
Herbs500~1,500300~700400~1,200100~5001.5~3 yr
Mushrooms300~1,000200~400150~50050~2002~5 yr
Leafy Greens800~2,500400~1,000200~600-200~2003~7 yr+
Strawberry1,000~3,000500~1,200100~400-200~1005~10 yr+
Tomato1,000~3,000600~1,50080~250LossUnprofitable

🔒 Restricted Section

Enter the password to view
pricing and cost analysis data.