OC
OceanRemote
Low-code IoT platform
โ† Back to Course

Complete System Design and Component Selection

Complete System Design and Component Selection

โ˜€๏ธ Complete Solar IoT System Design - Off-Grid Sensor Stations for African Farms

โ˜€๏ธ What You'll Learn in This Lesson:

  • ๐Ÿ”‹ Design complete solar-powered IoT systems for remote fields
  • ๐Ÿ› ๏ธ Select the right components: solar panel, battery, charge controller
  • ๐Ÿ’ฐ Build a sensor node for under $40 that runs for months
  • ๐Ÿ“Š Calculate battery life and power requirements
  • ๐Ÿ”Œ Connect everything correctly with wiring diagrams

Solar power is essential for IoT sensors in rural Africa where grid electricity is unreliable or unavailable. A properly designed solar system can run your soil moisture sensors, weather station, or irrigation controller for months without maintenance.

๐Ÿ› ๏ธ Recommended Components

Component Recommendation Cost (USD) Notes
โ˜€๏ธ Solar Panel 6V 2W Monocrystalline $10-15 Works in cloudy conditions, lasts 5+ years
๐Ÿ”‹ Battery 18650 Li-ion (2600mAh) $4-6 Protected cell recommended (built-in protection circuit)
โšก Charge Controller TP4056 + protection $2 Handles 1A charging, includes battery protection
๐Ÿ“Š Voltage Regulator MCP1700-3.3 $1 1.6ฮผA quiescent current (very low power!)
๐Ÿ–ฅ๏ธ Microcontroller ESP8266 (NodeMCU) or ESP32-S2 $5-8 ESP8266 uses less power (deep sleep ~10ฮผA)
๐Ÿ“ฆ Enclosure IP65 Weatherproof Box $8-12 With cable glands for waterproof entry
๐Ÿ”Œ Connectors JST, barrel jack, waterproof connectors $2-3 Prevents corrosion and loose connections
๐Ÿ’ฐ Total Cost: $30-40 per sensor node

Complete solar-powered IoT sensor station for under $40! Bulk purchases reduce cost to $25-30 per node.

๐Ÿ”‹ Battery Life Calculation

Component Current (Active) Current (Deep Sleep) Duration
ESP826670mA10ฮผA10 seconds active, 5 minutes sleep
Soil Moisture Sensor5mA0mA1 second per reading
DHT22/BME2801.5mA0.1ฮผA1 second per reading
Voltage Regulator1.6ฮผA1.6ฮผAAlways on
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
                    BATTERY LIFE CALCULATION EXAMPLE
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

  Battery capacity: 2600mAh (2.6Ah)
  
  Active cycle (10 seconds):
  ESP8266:      70mA ร— 10 seconds =   0.19mAh
  Moisture sensor: 5mA ร— 1 second =   0.001mAh
  BME280:       1.5mA ร— 1 second =   0.0004mAh
  Total active:                    โ‰ˆ 0.19mAh per cycle
  
  Sleep (5 minutes = 300 seconds):
  ESP8266 sleep: 10ฮผA ร— 300 seconds =   0.0008mAh
  Regulator:     1.6ฮผA ร— 300 seconds = 0.00013mAh
  Total sleep:                       โ‰ˆ 0.001mAh per cycle
  
  TOTAL per 5-minute cycle: 0.191mAh
  
  Battery life = 2600mAh รท 0.191mAh = 13,600 cycles
  = 13,600 ร— 5 minutes = 68,000 minutes = 47 DAYS!

  With 2W solar panel charging daily: โžก๏ธ INDEFINITE operation!
  
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ”Œ Complete Wiring Diagram

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
                    SOLAR POWER SYSTEM WIRING
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
    โ”‚                         SOLAR PANEL (6V/2W)                             โ”‚
    โ”‚                              โ”Œโ”€โ”€โ”€โ”€โ”€โ”                                    โ”‚
    โ”‚                          (+) โ”‚  โ˜€๏ธ  โ”‚ (-)                               โ”‚
    โ”‚                              โ””โ”€โ”€โ”ฌโ”€โ”€โ”˜                                    โ”‚
    โ”‚                                 โ”‚                                       โ”‚
    โ”‚                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                          โ”‚
    โ”‚                    โ”‚            โ”‚            โ”‚                          โ”‚
    โ”‚                    โ–ผ            โ–ผ            โ–ผ                          โ”‚
    โ”‚              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                  โ”‚
    โ”‚              โ”‚  TP4056  โ”‚  โ”‚  TP4056  โ”‚  โ”‚  TP4056  โ”‚                  โ”‚
    โ”‚              โ”‚  Charger โ”‚  โ”‚  Charger โ”‚  โ”‚  Charger โ”‚                  โ”‚
    โ”‚              โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜                  โ”‚
    โ”‚                   โ”‚             โ”‚             โ”‚                         โ”‚
    โ”‚                   โ–ผ             โ–ผ             โ–ผ                         โ”‚
    โ”‚              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                  โ”‚
    โ”‚              โ”‚ 18650    โ”‚  โ”‚ 18650    โ”‚  โ”‚ 18650    โ”‚                  โ”‚
    โ”‚              โ”‚ Battery  โ”‚  โ”‚ Battery  โ”‚  โ”‚ Battery  โ”‚                  โ”‚
    โ”‚              โ”‚ #1       โ”‚  โ”‚ #2       โ”‚  โ”‚ #3       โ”‚                  โ”‚
    โ”‚              โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜                  โ”‚
    โ”‚                   โ”‚             โ”‚             โ”‚                         โ”‚
    โ”‚                   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                         โ”‚
    โ”‚                                 โ”‚                                       โ”‚
    โ”‚                                 โ–ผ                                       โ”‚
    โ”‚                        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                              โ”‚
    โ”‚                        โ”‚   MCP1700-3.3   โ”‚  โ† Voltage regulator        โ”‚
    โ”‚                        โ”‚   (3.3V output) โ”‚                              โ”‚
    โ”‚                        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                              โ”‚
    โ”‚                                 โ”‚                                       โ”‚
    โ”‚                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                          โ”‚
    โ”‚                    โ”‚            โ”‚            โ”‚                          โ”‚
    โ”‚                    โ–ผ            โ–ผ            โ–ผ                          โ”‚
    โ”‚              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                  โ”‚
    โ”‚              โ”‚   ESP32  โ”‚  โ”‚  Sensor  โ”‚  โ”‚  Sensor  โ”‚                  โ”‚
    โ”‚              โ”‚   3.3V   โ”‚  โ”‚   #1     โ”‚  โ”‚   #2     โ”‚                  โ”‚
    โ”‚              โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                  โ”‚
    โ”‚                                                                         โ”‚
    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
                    CONNECTION DETAILS
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

  Solar Panel (+) โ”€โ”€โ–บ TP4056 IN+
  Solar Panel (-) โ”€โ”€โ–บ TP4056 IN-
  
  TP4056 BAT+ โ”€โ”€โ–บ 18650 Battery (+)
  TP4056 BAT- โ”€โ”€โ–บ 18650 Battery (-)
  
  TP4056 OUT+ โ”€โ”€โ–บ MCP1700 VIN
  TP4056 OUT- โ”€โ”€โ–บ MCP1700 GND + ESP32 GND + Sensors GND
  
  MCP1700 VOUT (3.3V) โ”€โ”€โ–บ ESP32 3.3V pin + Sensors VCC
  
  โš ๏ธ CRITICAL: Never connect solar panel directly to ESP32!
  โš ๏ธ Always use charge controller and voltage regulator!
๐Ÿ’ก Power Optimization Tips for Maximum Battery Life:
  • Deep sleep is your friend: ESP8266 can sleep for minutes/hours, waking only to read sensors
  • Read sensors quickly: Take readings in under 1 second, then go back to sleep
  • Use external wake-up: Timer-based wake (every 15-60 minutes) works best
  • Disable WiFi when not needed: Only enable for sending data, then disconnect
  • Remove indicator LEDs: Cut the power LED on ESP boards (saves 1mA!)
  • Use lower sample rates: Soil moisture every 30-60 minutes is sufficient

๐Ÿ“Š Power Consumption by Sensor Type

Sensor/Component Active Current Sleep Current Best For Battery?
ESP8266 (NodeMCU)70mA10ฮผAโœ… Excellent
ESP3295mA10ฮผAโœ… Good (more features)
DHT221.5mA0.1ฮผAโœ… Yes
Capacitive Soil Moisture5mA0mAโœ… Yes (read quickly)
BME280 (pressure)0.1mA0.1ฮผAโœ… Excellent
DS18B201.5mA0.75ฮผAโœ… Yes
NPK Sensor (RS485)30mA0.1mAโš ๏ธ High power - reduce readings
โš ๏ธ Common Solar Power Mistakes:
  • โŒ Connecting solar panel directly to ESP32 โ†’ Voltage spikes will destroy your board! Always use charge controller.
  • โŒ Using unprotected 18650 batteries โ†’ Risk of over-discharge (battery damage) or over-charge (fire risk).
  • โŒ No voltage regulator โ†’ Battery voltage varies (3.7-4.2V), ESP32 needs stable 3.3V.
  • โŒ Waking up too often โ†’ Reading every minute reduces battery life to days instead of months.
  • โŒ Leaving WiFi on continuously โ†’ ESP8266 draws 70mA continuously = battery dead in 1.5 days!
๐Ÿ“– Case Study - Solar Soil Sensors in Tanzania:

A farm in Tanzania deployed 10 solar-powered soil moisture sensors across 20 hectares:

  • Setup: ESP8266 + capacitive moisture sensor + 6V/2W solar + 18650 battery
  • Power optimization: Read sensors and send data every 60 minutes
  • Result: Systems ran for 6+ months without any battery replacement
  • Cost per node: $35 โ†’ total $350 for complete farm monitoring system
  • Payback period: 3 months from water savings alone!

"The solar-powered sensors work perfectly in our remote fields. No electricity needed, no battery changes - just install and forget." - Farm Manager, Tanzania

๐Ÿ’ก Solar Panel Sizing Guide:
  • 1-2W: Single sensor node reading every 30-60 minutes (most common)
  • 5W: Node with multiple sensors, reading every 15 minutes
  • 10W: Active monitoring + relay control (irrigation valve)
  • 20W+: Continuous operation (weather station with 1-minute updates)
๐ŸŽ‰ Congratulations!
  • โœ… Design complete solar-powered IoT systems for under $40
  • โœ… Select the right components: solar panel, battery, charge controller
  • โœ… Calculate battery life for any sensor configuration
  • โœ… Wire everything correctly with protection components
  • โœ… Optimize power consumption for months of operation

Next step: Build your first solar sensor node and deploy it in the field!

ComponentMinimum SpecRecommendedCost Impact
Solar Panel6V/1W6V/2W+$5
Battery18650 2000mAh18650 3000mAh+$2
ControllerTP4056TP4056 + protection+$1
RegulatorAMS1117MCP1700+$0.50 (lower sleep current)
MicrocontrollerESP8266ESP32-S2+$3 (more features)
๐Ÿ’ก Key Takeaways:
  • Apply these concepts directly to your farm or project.
  • Take notes on important details for the quiz.
  • Use the button below to track your progress.