MrSoir
Published © MIT

FullStack RESTful MERN Irrigation System

Full stack RESTful MERN environment to control an Arduino -> BackEnd: Node/Express + FronEnd: React + Ardunio powered irrigation system

IntermediateShowcase (no instructions)4,282
FullStack RESTful MERN Irrigation System

Things used in this project

Hardware components

Wemos D1 Mini
Espressif Wemos D1 Mini
Arduino to control the water pump
×1
Raspberry Pi Zero Wireless
Raspberry Pi Zero Wireless
Node.js/Express.js/MongoDB server runs on a Raspberry Pi Zero Wireless
×1
5V relay
to control the water pump with the Arduino
×1
water pump
works for me, but stupidly loud... water pump runs on 5V and approx. 2 Amps
×1
water tube
greate tube...
×1
USB charger
USB charger with two outputs: 1. Arduino, 2. water pump (runs on 5V approx. 2 Amps)
×1
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
1 x Arduino + 1 x raspberry pi + 1x water pump (requires soldering - water pump runs on 5V approx. 2 Amps)
×3
heat shrink tubes
1. to isolate the soldering connections | 2. to create micro-sprinklers
×1
Analog Multiplexer
Analog Multiplexer for analog sensors (moisture sensor, temperature sensor etc.)
×1
Capacitive Moisture Sensor
Moisture Sensor(s) to trigger automated irrigation
×1

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, Lead Free
Solder Wire, Lead Free
Hot glue gun (generic)
Hot glue gun (generic)

Story

Read more

Schematics

schema

Wemos D1 mini + 3 Soil Moisture Sensors + 16:1 multiplexer + 5V relay + water pump
I'm not really powering the pump with a battery but with the UBS-charger/USB-A-to-micro-cable as described in the "required hardware listing"...

Code

Arduino Code: irrigation system

Complete Code for the Arduino (irrigation system)

Complete code of the node.js back end (server) & front end (React.js)

Complete code of the node.js back end (server) & front end (React.js)

custom Arduino libraries

I exported most of the code that runs on the Arduino to external Arduino libraries to keep the code nice and clean

Arduino Code: LED-strips

Arduino code that controls the LED-strips

Credits

MrSoir

MrSoir

0 projects • 2 followers

Comments