← Back to Training
ESP32 Full-Stack Smart Farm Development Workshop

Training
Develop code on PlatformIO to read industrial-grade sensors, control water and fertilizer systems via 6-Channel Relay, and stream data over Wi-Fi/4G to ThingsBoard with Dashboard visualization and LINE Messaging API alerts.
Objectives
Participants will be able to develop code on the PlatformIO platform to read data from industrial sensors, control water and fertilizer systems, and send data via Wi-Fi/4G to Cloud Servers like ThingsBoard, with Dashboard display and LINE Messaging API alerts.
Course Modules
01
Module 1: IoT Board Architecture & PlatformIO Setup
- Structure and operation of ESP32-based IoT boards
- Setting up the development environment with PlatformIO
- Pinout & GPIO Management for Smart Farm systems
02
Module 2: Sensor Data Acquisition
- I2C communication: reading SHT31 / BME280 sensors
- Modbus RTU (RS485): reading NPK, pH, Soil Moisture sensors
- Data Register conversion and JSON packaging
03
Module 3: 6-Channel Relay Control & Automation
- Relay 6-channel operation and electrical isolation
- Controlling field devices: water pump, fertilizer pump, zones 1-4
- Automated logic: e.g., open valve when soil moisture is low
04
Module 4: Wireless Connectivity (Wi-Fi & 4G)
- Connecting ESP32 to Wi-Fi networks
- 4G LTE module connection using AT Commands
- Reconnection strategy when signal is lost
05
Module 5: Cloud Server Integration
- MQTT architecture for IoT applications
- Sending telemetry data to Cloud Server
- Receiving RPC commands from Server to control relays in real-time
06
Module 6: Dashboard & Mobile App
- Designing Data Visualization on Web Dashboard
- Creating interactive widgets to control 6 relay zones
- Sending alert notifications via LINE Messaging API
