workshop_soil moisture

Material for Raspberry Pi workshop

Wiring

Lighting an LED

RELAY Raspberry Pi
- GND pin
+ +5v pin
Signal GPIO 11
Soil Moisture Raspberry Pi
- GND pin
+ +5v pin
Signal GPIO 21

wiring

Code

1- Power your raspberry

You can achive it with connecting it to your pc trought the Micro USB Port of the raspberry pi

power

2- Connect to your raspberry pi

Using putty if you're on windows, Ssh if you're on a linux based os Follow the following instruction if you dont know how to connect to raspberry pi Connect to Raspberry Pi using Putty

3- Download relay binary file

Assuming you're connected with... copy and past this command If you're using Raspberry zero

curl -O https://raw.githubusercontent.com/ionoid-io-projects/workshop_smart_irrigation/master/bin/arm6/irrigation

If you're using Raspberry 3 b

curl -O https://raw.githubusercontent.com/ionoid-io-projects/workshop_smart_irrigation/master/bin/arm7/irrigation

make it executable

chmod +x irrigation

4- execute binary

./irrigation

How to stop the program

To quit or stop the program click on Ctrl+C