Hackster is hosting Hackster Holidays, Ep. 5: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 5 on Friday!
gusgonnetMark Wilkinson
Published © CC BY-NC-SA

Farm Irrigation System

A contribution to the Internet of Plants.

AdvancedFull instructions providedOver 1 day7,063
Farm Irrigation System

Things used in this project

Hardware components

Photon
Particle Photon
×1
VH400 Soil Moisture Sensor Probe
×1
Particle relay shield
×1

Software apps and online services

Ubidots
Ubidots
Porter App
Use this app for Android/iOS control of the system
Particle 2.0 iOS App
Use this app for iOS (only) control of the system

Story

Read more

Schematics

Moisture sensor

Connect it to A0

Code

Plant UML code for the state machine of the firmware

Plain text
To draw the FSM image, copy paste this code in http://www.plantuml.com/plantuml/uml
@startuml
skinparam backgroundColor LightYellow
skinparam state {
  BackgroundColor LightBlue
  BorderColor Gray
  FontName Impact
}


[*] --> initState

note left of initState : it lands here\nwhen the system\nboots

initState:
initState -down-> idleState: 10 seconds

idleState: valve closed
idleState -down-> valveOnState: moisture < threshold

valveOnState: valve open
valveOnState -> restState: 15 minutes

restState: valve closed
restState -up-> idleState: 30 minutes
@enduml

github repo

Credits

gusgonnet

gusgonnet

37 projects • 306 followers
With a decade of Software Engineering experience in IoT, I focus on creating Particle IoT solutions coupled with mobile and web applications
Mark Wilkinson

Mark Wilkinson

0 projects • 5 followers
I have been growing food products for sale since I was 10. Have been orcharding for near 40 years, growing peaches and cherries.

Comments