create account

Micro-controlled Soil Sensors by aspieprepper

View this thread on: hive.blogpeakd.comecency.com
· @aspieprepper · (edited)
$8.23
Micro-controlled Soil Sensors
<h1>Table of Contents:</h1>

1) Intro
2) Parts
3) Physical Set up
4) Coding
5) Making it prepper/survivalist friendly
6) Final Thoughts
Notes at the end

<h3>Intro</h3>

This set-up will help you monitor the water level in containers.

You can use this for normal gardening and hydroponic systems.

For this project I have used the Arduino Uno.

<h3>Parts</h3>

1 Arduino Uno
1 6V Buzzer
1 - 6 Soil Sensors
1 LED
(optional) A resistor
1 Breadboard
Plant pots


<h3>Physical Set up</h3>

<i>The soil sensor I used</i>
![IMG_2030.JPG](https://steemitimages.com/DQmQHH8jri5RXZWdQHrpscT5D4yGz4PKJgkGHhPRVjDvAkg/IMG_2030.JPG)

Attach the A0 to an analog port on the Arduino (they will all have A in front of a number). The VCC goes to the 5v port and the gnd to a gnd port, repeat the above for each sensor (up to six).

<i>Here is the completed set up</i>
![IMG_2023.JPG](https://steemitimages.com/DQmVE9EUE12LryMTnbjPqCHSsgv5yjbAPbiHPc7cjsHtzZN/IMG_2023.JPG)

<i>Micro-controller connections</i>
![IMG_2025.JPG](https://steemitimages.com/DQmZMk8xVttFuCiXukYYBqZYm44rnDJ6zbD687RiaVQJDXE/IMG_2025.JPG)

You can change it somewhat, if you are still unsure I will be creating a how to video shortly.

<i>Breadboard connections</i>
 ![IMG_2027.JPG](https://steemitimages.com/DQmPUx61sSSrmuqb9GcQcRqjemo66cgmn7C64x27bwA4vVo/IMG_2027.JPG)

Make sure that the + side of the buzzer goes to the 5v and the - goes to a gnd. Notice I have used the breadboard to increase the amount of 5V and gnd ports available. Also make sure the + side of the LED goes to the digital pin (in this case 5) and the - side to ground. You can add a resistor in series to increase the life span of the LED.

<h3>Coding</h3>

Here are the global variables and void setup code.

<i>Pay attention to the comments</i>
![GlobalVariables.JPG](https://steemitimages.com/DQmRa1wTkFBQtQ5u2ZekWxbXpXFaKuzPaff3vY6RabBN4s9/GlobalVariables.JPG)

![VoidSetup.JPG](https://steemitimages.com/DQmcJ2Wwqu8oHcmqnozLn77o856LFPWsBeoFYXTRYFTC6bb/VoidSetup.JPG)

<i>Here is the content of the void loop Method</i>
![voidloop.JPG](https://steemitimages.com/DQmaEsQrVpj4tduY4JNxjYGrUFCBDkbLjHzEP6x8uMXV8bd/voidloop.JPG)

<i>The soil sensor method</i>
![SoilSensorMethods.JPG](https://steemitimages.com/DQmaWBzBaRWD8DXxdaBWk6qzjfjUBH6C8ytzchni7BjmFu1/SoilSensorMethods.JPG)

<i>alertBuzzer method</i>
![alertBuzzerJPG.JPG](https://steemitimages.com/DQmPiDUPYe3dQNcVtZbyTSnRJjvE1xZKhUagqZwYcKhZ1gX/alertBuzzerJPG.JPG)

<i>The alertLED method</i>
![alertLED.JPG](https://steemitimages.com/DQmbRYVhCuUYJ5P5VV9psiHpfiR1fygdRXu5tkajnKpb3Hp/alertLED.JPG)

<h3>Making it prepper/survivalist friendly</h3>

Use an LED extension cord, this will allow you to control the light output. Redirecting it from windows is the best way of using this.

<i>This is what they look like</i>
![IMG_2029.JPG](https://steemitimages.com/DQmZNMspspiBkDfE7BwEVLoyArmH4mkYWu1Em6CnNKgVCN4/IMG_2029.JPG)

You can also change the alertBuzzer method to change the tone. Making the tone higher makes it travel further, making it deeper may stop people hearing it.

<h3>Final Thoughts</h3>

I hope you have enjoyed this little project, if you need more help wait for my how to video. This content was originally premium only, but as Steemit pays me per post I have posted it here. Please do not 'share' this project outside of Steemit as this may affect my funding. If you like Resteem!

Note1: The sensor values from the soil sensors have a range. On these sensors 1000 = low water and 376 = high water. These values will have to be changed to suit the plants you are growing.

Note2: In order to increase the lifespan of the soil sensors you can change the intervals in which they sense by changing the delay time in the main method. 1000 = one second, soil sensors can rust, this is caused my the voltage passing across them with water being present.
👍  , , , , ,
properties (23)
authoraspieprepper
permlinkmicro-controlled-soil-sensors-for-preppers-survivalists
categorymicro-controllers
json_metadata{"tags":["micro-controllers","electronics","gardening","survival","prepping"],"image":["https://steemitimages.com/DQmQHH8jri5RXZWdQHrpscT5D4yGz4PKJgkGHhPRVjDvAkg/IMG_2030.JPG","https://steemitimages.com/DQmVE9EUE12LryMTnbjPqCHSsgv5yjbAPbiHPc7cjsHtzZN/IMG_2023.JPG","https://steemitimages.com/DQmZMk8xVttFuCiXukYYBqZYm44rnDJ6zbD687RiaVQJDXE/IMG_2025.JPG","https://steemitimages.com/DQmPUx61sSSrmuqb9GcQcRqjemo66cgmn7C64x27bwA4vVo/IMG_2027.JPG","https://steemitimages.com/DQmRa1wTkFBQtQ5u2ZekWxbXpXFaKuzPaff3vY6RabBN4s9/GlobalVariables.JPG","https://steemitimages.com/DQmcJ2Wwqu8oHcmqnozLn77o856LFPWsBeoFYXTRYFTC6bb/VoidSetup.JPG","https://steemitimages.com/DQmaEsQrVpj4tduY4JNxjYGrUFCBDkbLjHzEP6x8uMXV8bd/voidloop.JPG","https://steemitimages.com/DQmaWBzBaRWD8DXxdaBWk6qzjfjUBH6C8ytzchni7BjmFu1/SoilSensorMethods.JPG","https://steemitimages.com/DQmPiDUPYe3dQNcVtZbyTSnRJjvE1xZKhUagqZwYcKhZ1gX/alertBuzzerJPG.JPG","https://steemitimages.com/DQmbRYVhCuUYJ5P5VV9psiHpfiR1fygdRXu5tkajnKpb3Hp/alertLED.JPG","https://steemitimages.com/DQmZNMspspiBkDfE7BwEVLoyArmH4mkYWu1Em6CnNKgVCN4/IMG_2029.JPG"],"app":"steemit/0.1","format":"markdown"}
created2017-07-03 13:36:45
last_update2017-07-07 15:13:27
depth0
children3
last_payout2017-07-10 13:36:45
cashout_time1969-12-31 23:59:59
total_payout_value6.360 HBD
curator_payout_value1.869 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,859
author_reputation653,220,366,377
root_title"Micro-controlled Soil Sensors"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id7,143,225
net_rshares1,167,363,247,569
author_curate_reward""
vote details (6)
@ashim ·
Thanks  its so nice
properties (22)
authorashim
permlinkre-aspieprepper-micro-controlled-soil-sensors-for-preppers-survivalists-20170703t133757163z
categorymicro-controllers
json_metadata{"tags":["micro-controllers"],"app":"steemit/0.1"}
created2017-07-03 13:38:24
last_update2017-07-03 13:38:24
depth1
children0
last_payout2017-07-10 13:38:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length19
author_reputation38,848,619,777
root_title"Micro-controlled Soil Sensors"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id7,143,420
net_rshares0
@ashim ·
Ipvote my post also sir
properties (22)
authorashim
permlinkre-aspieprepper-micro-controlled-soil-sensors-for-preppers-survivalists-20170703t133919991z
categorymicro-controllers
json_metadata{"tags":["micro-controllers"],"app":"steemit/0.1"}
created2017-07-03 13:39:27
last_update2017-07-03 13:39:27
depth1
children0
last_payout2017-07-10 13:39:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length23
author_reputation38,848,619,777
root_title"Micro-controlled Soil Sensors"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id7,143,534
net_rshares0
@steemhelper ·
Your article has been re-steemed and upvoted by @steemhelper , great article! Keep up writing quality content like this.
do you also want to get your great content resteemed if it is good enough? Check the link below:
https://steemit.com/whale/@steemhelper/introducing-worlds-first-re-steem-whale-how-can-it-benefit-the-steemit-community-how-can-steemians-profit-from-it
Please recommend this initiative to your friends.
properties (22)
authorsteemhelper
permlinkre-aspieprepper-micro-controlled-soil-sensors-for-preppers-survivalists-20170704t223703097z
categorymicro-controllers
json_metadata{"tags":["micro-controllers"],"users":["steemhelper"],"links":["https://steemit.com/whale/@steemhelper/introducing-worlds-first-re-steem-whale-how-can-it-benefit-the-steemit-community-how-can-steemians-profit-from-it"],"app":"steemit/0.1"}
created2017-07-04 22:37:06
last_update2017-07-04 22:37:06
depth1
children0
last_payout2017-07-11 22:37:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length420
author_reputation90,701,406,530
root_title"Micro-controlled Soil Sensors"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id7,330,763
net_rshares0