Nachfolgend ist der Programmcode dieses Projektes aufgeführt. Eine Beschreibung der einzelnen Programmteile ist über dem jeweiligen Block gegeben.
#include “LowPower.h”
#define sensorWert A0
#define sensorPower 4
#define motor 9
#define kontakt 6
/* aus wie vielen Messungen soll der Mittelwert gebildet werden? */
const int anzahlMessungen = 5;
/* wie lang soll die Pause zwischen den Messungen sein?
* 2 Stunden = 60x60x2 = 7200s
* 7200 s / 8 s = 900 */
const int zeitSleep = 900;
/* Wert für trockene Erde */
const int trocken = 800;
/* Wert für nasse Erde */
const int nass = 480;
void setup() {
pinMode (sensorWert, INPUT);
pinMode (sensorPower, OUTPUT);
pinMode (motor, OUTPUT);
pinMode (kontakt, INPUT);
Serial.begin(9600);
}
/* Bildet einen Mittelwert aus der festgelegten Anzahl an Feuchtigkeitsmessungen */
int feuchtigkeit() {
int mittelwert = 0;
int summeMesswerte = 0;
for (int i = 0; i<anzahlMessungen; i++) {
summeMesswerte += analogRead(sensorWert);
}
mittelwert = summeMesswerte / anzahlMessungen;
return mittelwert;
}
/* Methode zur aktivierung des Deep-Sleep-Modus.
* Überprüfung ob geswünschte Zeit schon abgelaufen, wenn nicht, erneuter Sleep-Modus.*/
void deepSleep() {
unsigned int sleepCounter;
for (sleepCounter = zeitSleep; sleepCounter > 0; sleepCounter–) {
LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);
}
}
void loop() {
digitalWrite (sensorPower, HIGH);
delay(5000);
/* Im Falle eines Neustarts bei geöffnetem Ventil, wird dieses zunächst geschlossen.*/
if (digitalRead(kontakt)==1) {
digitalWrite(motor, HIGH);
while (digitalRead(kontakt)==1) {}
digitalWrite(motor, LOW);
}
/* Prüft ob Boden trocken. Wenn ja, wird der Motor solange betrieben,
* bis das Ventil geöffnet ist (kontakt==1).
* Wenn die gewünschte Feuchtigkeit erreicht ist, wird der Motor wieder eingeschaltet,
* bis das Ventil geschlossen ist (kontakt==0).
* Anschließend aktivierung des Deep-Sleep-Modus.*/
if (feuchtigkeit() > trocken) {
digitalWrite(motor, HIGH);
while (digitalRead(kontakt)==0) {}
digitalWrite(motor, LOW);
while (feuchtigkeit() > nass) {
LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);
}
digitalWrite(motor, HIGH);
while (digitalRead(kontakt)==1) {}
digitalWrite(motor, LOW);;
digitalWrite (sensorPower, LOW);
}
deepSleep();
}
Es sieht so aus, also wäre beim Einfügen etwas schief gegangen..
for (sleepCounter = zeitSleep; sleepCounter > 0; sleepCounter–)
Danke, habe ich korrigiert.
I think the admin of this web page is genuinely working hard in favor of his website, because here every material is quality based material.
purchase tadalafil online – buy cialis 40mg generic tadalafil 5mg without prescription
order hydroxychloroquine without prescription – hydroxychloroquine 200mg drug purchase plaquenil generic
ivermectin 6 mg without prescription – ivermectin 6 mg over the counter ivermectin uk
buy cephalexin pills – erythromycin for sale purchase erythromycin for sale
sildenafil canada – purchase fildena online disulfiram 500mg over the counter
budesonide pill – seroquel 100mg over the counter purchase cefuroxime pills
cheap bimatoprost – buy desyrel online cheap desyrel 100mg without prescription
viagra overnight shipping usa – buy sildenafil 100mg without prescription zantac medication
generic cialis cost – ivermectin pill cost buy stromectol online uk
tadalafil liquid – cheapest ed pills medication for ed
online casino with free signup bonus real money usa – purchase prednisone sale order prednisone 40mg online cheap
prednisone 20mg cost – isotretinoin 40mg uk order generic accutane 40mg
cialis us – cialis 5mg sale tadalafil 10mg usa
ivermectin coronavirus – cost of stromectol pill zithromax online
azithromycin order online – purchase zithromax online buy medrol canada
baricitinib 4mg price – buy generic dapoxetine 30mg dapoxetine generic
order glucophage 1000mg online – online pharmacy drugstore buy atorvastatin 20mg generic
norvasc 10mg brand – amlodipine 10mg usa omeprazole for sale online
metoprolol for sale – buy atenolol 100mg tadalafil 40mg tablet
where to buy cialis – viagra 25mg viagra sildenafil 25mg
ivermectin rx – purchase ivermectin stromectol 2mg online
clomiphene canada – cheap zyrtec 5mg brand cetirizine 5mg
order clarinex 5mg online cheap – aristocort pill triamcinolone 10mg drug
purchase cytotec pills – order misoprostol 200mcg online cheap levothyroxine for sale
50mg viagra – buy neurontin 600mg pill brand neurontin 800mg
cialis 20mg pill – order cialis 10mg pill generic cenforce 50mg
order diltiazem without prescription – zovirax 800mg over the counter buy acyclovir generic
order hydroxyzine 25mg online – purchase rosuvastatin online cheap crestor 20mg tablet
order ezetimibe – zetia pills brand citalopram 20mg
buy viagra 100mg sale – lisinopril 5mg tablet purchase cyclobenzaprine sale
sildenafil mail order usa – cialis 5mg uk cialis 20
toradol 10mg pills – buy tizanidine generic baclofen 10mg pill
colchicine 0.5mg over the counter – brand strattera order strattera 10mg without prescription
sildenafil 150mg pills – oral plavix clopidogrel 75mg oral
sildenafil 150mg ca – buy sildenafil online cheap viagra 100mg us
buy generic esomeprazole 20mg – brand promethazine 25mg phenergan pills
order cialis 20mg – Cialis delivered overnight cialis super active
modafinil online buy – cheap erectile dysfunction natural pills for erectile dysfunction
how to get prednisone online
buy sildenafil 200mg
order accutane 10mg pills – amoxil 1000mg uk order azithromycin generic
hydroxychloroquine sulfate buy
generic furosemide 100mg – doxycycline 100mg drug viagra price
cheap viagra 100mg online
buy cialis 5mg online cheap – cialis 40mg for sale sildenafil 25mg price
sildenafil uk paypal
cialis 40mg oral – cialis pills order coumadin pill
dapoxetine usa buy
doxycycline 200 mg pill
cheap cialis overnight
topamax pills – buy sumatriptan buy sumatriptan 50mg generic
lowest price tadalafil tablets 20 mg
avodart order – oral tadalafil 40mg brand cialis 10mg
cialis cost in mexico
generic elimite cream price
order viagra 50mg generic – cialis medication price cialis
buy erection pills – best pill for ed buy prednisone 40mg online cheap
ivermectin for sale
isotretinoin 20mg tablet – buy amoxil 250mg generic oral amoxil 250mg
furosemide without prescription – generic furosemide 100mg buy azithromycin 250mg for sale
doxycycline 200mg generic – brand doxycycline 200mg purchase chloroquine without prescription
cialis 40mg – order viagra 150mg pill viagra us
cialis online fast
canadian pharmacy cialis 10mg
prednisone 5 mg tablets
doxycycline 40 mg capsules
amoxicillin 500 mg price in india
azithromycin 250 mg
provigil 100mg over the counter – usa viagra overnight sildenafil 100mg cost
buy singulair no prescription
best non prescription ed pills – prednisone 20mg brand prednisone 20mg pills
isotretinoin 10mg pills – order celebrex 200mg pill order celecoxib 200mg generic
citalopram 10mg price uk
order flomax 0.4mg online cheap – buy aldactone without prescription aldactone uk
purchase zocor generic – order valtrex 1000mg generic how to write an essay about my family
tadalafil 5mg tablet online canada
ivermectin purchase
caesars casino online – online casinos for real money term papers for sale online
where to get sildenafil
slot machines – brand ampicillin buy ampicillin online cheap
buy cipro 500mg without prescription – order cialis 40mg generic tadalafil 5mg cheap
buy viagra 50mg for sale – sildenafil women vardenafil user reviews
buy viagra 25 mg online india
tadalafil 20mg generic cost
ed drug comparison
ventolin over the counter nz
otc tadalafil
vermox over the counter canada
generic for flagyl
buy viagra discover card
purchase stromectol online
deep web drug url dark web sites
sildenafil without a doctor’s prescription the best ed pill treatment with drugs
stromectol without prescription ivermectin heartgard does ivermectin kill fleas
price of generic synthroid
ivermectin dose for chickens ivermectin for maggots ivermectin withdrawal time swine
tor marketplace dark market link
deep web drug markets tor markets links
tor market links dark market list
darknet markets darknet marketplace
darknet market links darknet marketplace
darknet market lists darknet marketplace
tor markets 2022 deep web markets
tor markets links dark web markets
deep web drug url darknet market links
darkmarkets darknet marketplace
dark market link darknet markets
darkmarket url darkmarket
dark market dark web market list
darkmarkets darknet market
tor darknet dark web markets
darkmarket list dark market url
dark market tor market url
dark web link darknet drug store
drug markets onion darkmarket 2022
dark markets tor marketplace
dark web market darkmarket url
darknet market lists dark web sites
best darknet markets deep web markets
darkmarket url tor market links
deep web drug store deep web drug url
dark market onion dark web sites
onion market dark markets
deep web drug url tor market links
diflucan over the counter canada
dark web links tor market links
dark web market list deep web drug links
dark market link tor dark web
dark web market list dark market url
dark web markets tor markets
darkmarket link dark web sites
best darknet markets onion market
darknet market list dark market list
darkmarket list deep web drug links
bitcoin dark web tor dark web
deep web drug url onion market
dark web market links tor markets links
tor markets 2022 tor market url
darknet market list deep web markets
deep web drug store deep web drug store
darknet markets deep web drug markets
tor dark web dark market list
darknet market tor darknet
dark market onion bitcoin dark web
drug markets dark web darkmarket
darkmarket link best darknet markets
tor markets tor market url
dark web market links darkmarket
tor markets links darknet drug store
darknet market lists tor markets
darknet market list dark market link
deep web markets tor marketplace
deep web drug markets dark market url
deep web drug markets dark markets 2022
deep web drug markets drug markets dark web
dark web market list darknet market list
dark web market darkmarket
darkmarket deep web drug url
tor marketplace dark markets
dark markets tor market links
dark web markets deep web drug links
bitcoin dark web best darknet markets
best darknet markets darkmarkets
darkmarket dark web drug marketplace
dark market url drug markets dark web
deep web drug store tor darknet
darknet market list deep web markets
deep web drug store tor markets links
darkmarket darknet drug market
tor markets onion market
darknet market list dark market link
bitcoin dark web dark web link
darknet market list tor market links
darknet market lists tor markets links
dark web sites tor market links
darkmarket link dark market onion
darknet market list dark web markets
deep web markets darknet websites
tor darknet dark market 2022
best darknet markets dark market 2022
dark web link dark web drug marketplace
dark market 2022 tor markets 2022
darkweb marketplace tor market links
darknet market list dark web sites
bitcoin dark web tor markets 2022
darknet marketplace deep web drug links
dark web link dark markets
darknet market lists darknet market list
tor marketplace dark web links
dark market onion darkmarket
darknet drug market deep web drug markets
tor market links dark web links
dark web market list darknet drug store
dark web market list dark market onion
deep web drug store darknet marketplace
tor market links dark web sites
tor marketplace darknet markets
darknet market lists dark web market list
dark web market dark web markets
dark web market list deep web drug url
dark web market links darknet market list
tor market deep web drug links
darknet drug store darknet websites
deep web drug url dark web sites
tor darknet dark market onion
darkmarket url deep web drug store
dark markets drug markets onion
dark markets drug markets onion
deep web drug url deep web drug links
dark web link tor markets
deep web drug markets dark web market list
tor market dark web link
darknet market links darknet drug links
darkmarket 2022 tor market links
tor market links dark market 2022
tor marketplace dark market 2022
darknet websites dark market url
darknet drug market dark markets
tor markets darknet markets
dark web markets drug markets onion
tor market drug markets onion
dark market link darkmarket list
darknet drug store darknet market
deep web drug markets dark markets 2022
dark markets tor market
darknet websites dark market onion
dark web market darkmarket list
tor markets darknet drug store
dark markets 2022 dark web link
tor dark web tor marketplace
darknet marketplace darknet markets
dark web sites darknet drug links
darknet marketplace drug markets dark web
tor market url drug markets onion
deep web drug links darknet websites
darknet drug store dark web links
darknet market list tor market url
dark market url onion market
darknet market lists tor marketplace
dark web markets darkmarket
tor markets dark web markets
darknet markets tor market url
dark markets drug markets dark web
dark web links darkmarket list
dark web sites dark markets
deep web drug url darkmarket url
bitcoin dark web dark web market
deep web drug links dark markets 2022
darknet market links onion market
darkmarkets drug markets onion
tor markets 2022 dark market 2022
deep web drug url tor markets links
best darknet markets dark market list
tor marketplace tor markets
tor markets links tor market url
deep web drug url darknet drug market
tor markets darknet market links
bitcoin dark web darknet markets
darkmarket 2022 darkmarket
darkmarket url darknet markets
deep web drug store tor market links
tor markets links deep web drug url
dark market url tor market links
darkmarket list darkmarket link
darkmarket url best darknet markets
tor markets dark web links
onion market tor markets 2022
darknet markets dark market list
darknet markets darkmarket url
dark market tor markets 2022
dark market list deep web drug store
tor market url darkmarket
darkmarket 2022 tor markets
darknet drug market tor market url
tor markets links darkweb marketplace
darkmarket url deep web drug markets
dark market link drug markets dark web
dark market onion deep web drug store
dark web market list deep web drug markets
dark web link tor dark web
darkmarket dark web market links
dark web drug marketplace dark market onion
dark web sites tor darknet
darknet drug store darknet drug store
bitcoin dark web tor marketplace
tor markets links dark web market
tor dark web dark market onion
tor dark web dark web market list
deep web drug store dark market 2022
dark market url darknet drug links
darkmarket deep web drug markets
tor darknet darknet websites
darkweb marketplace darknet market links
dark web link dark web markets
cialis and viagra together forum cialis professional cialis 5mg tablets
tor markets 2022 dark web link
darkmarkets darknet market lists
deep web drug store darknet market lists
deep web drug url dark markets 2022
deep web drug url tor darknet
darkmarket 2022 dark market
tor darknet dark market list
dark web link tor market url
darknet market list dark web drug marketplace
darkmarket 2022 tor darknet
darkmarkets dark markets
darknet drug market dark web link
darkmarkets dark market
deep web drug links dark market
dark market onion darkmarket list
bitcoin dark web darknet drug market
deep web markets darknet market
darkmarket link dark markets
dark web link darknet market lists
tor markets links darkmarket
dark market 2022 tor markets 2022
dark market onion tor markets 2022
darkmarket url dark web sites
deep web markets darkmarket list
tor market url darknet market links
dark market list darknet websites
dark web links drug markets onion
bitcoin dark web deep web drug links
darknet drug links darkmarket 2022
dark web market links tor market
darknet market lists best darknet markets
darkmarket url dark web market list
darkmarket url tor marketplace
dark web market list darknet marketplace
dark markets tor market url
darknet drug market darkmarket url
tor darknet dark market link
darknet market links darkmarket
tor darknet deep web drug markets
buy prednisolone pills – cheap neurontin sale order cialis 10mg pill
dark market onion tor market url
darknet drug market darknet drug store
dark web market links dark web drug marketplace
darkmarkets deep web drug url
deep web drug markets tor darknet
dark market list darknet marketplace
darkmarket url dark market url
bitcoin dark web dark web markets
darknet markets dark web market
deep web drug url dark market onion
dark market 2022 dark markets 2022
tor marketplace dark market
drug markets onion dark web sites
deep web markets dark web sites
dark markets 2022 bitcoin dark web
dark web market darknet drug market
darkmarket list dark market url
dark web link tor marketplace
dark web link dark web markets
tor markets 2022 deep web drug url
darknet marketplace darknet marketplace
deep web drug markets dark web markets
dark web market list dark markets 2022
darkweb marketplace darknet market lists
deep web drug url bitcoin dark web
deep web drug url tor markets links
darknet markets darknet markets
dark market url tor market
deep web drug url dark market link
dark web drug marketplace dark market onion
best darknet markets tor darknet
dark web drug marketplace darknet market lists
tor darknet darknet websites
tor market links dark markets 2022
dark markets 2022 dark market link
tor market links dark market link
dark web market list dark web market links
darknet market dark web links
darknet market list tor markets links
drug markets onion tor markets links
dark market dark web drug marketplace
tor market darknet websites
dark market url dark market url
dark markets deep web markets
tor markets links dark market 2022
darkmarket url dark market link
dark web markets darkmarket list
darkmarket link darknet markets
darkmarkets tor markets
tor dark web deep web drug markets
deep web drug store dark markets
dark market link dark web market
deep web drug store dark market onion
dark web market onion market
tor market links dark web market list
darkmarket dark markets
darkmarket deep web drug url
dark market 2022 dark web market
tor markets links darkmarket
dark market dark web markets
dark market url darknet market links
darkmarket url dark market url
darkweb marketplace drug markets onion
dark web links darkmarket url
darkmarket list dark markets
darkmarket list deep web drug store
tor darknet dark web link
darkmarkets darknet market links
tor market dark market 2022
darknet drug links dark web links
deep web drug markets dark market list
dark market 2022 dark web market links
dark market link darkmarkets
darknet markets drug markets onion
dark web market list darkweb marketplace
dark web market links dark web market
darknet drug store deep web drug url
darkmarket link tor darknet
dark market deep web drug links
darknet markets tor darknet
dark web link dark web drug marketplace
dark web link darknet drug links
darkmarket 2022 darknet marketplace
tor market url tor marketplace
dark market url dark web drug marketplace
dark web market list dark web market list
deep web drug store deep web drug store
dark market url deep web drug links
tor marketplace tor markets 2022
darknet drug links darknet marketplace
dark web sites tor marketplace
deep web drug url darknet markets
dark market onion deep web drug links
darknet market links dark market list
dark web market list tor market url
tor dark web deep web drug url
darknet markets dark market url
darkweb marketplace tor markets
darknet drug store dark market 2022
dark market onion darknet markets
darknet market lists darkmarket 2022
darknet market links darkweb marketplace
darknet market links darknet markets
tor markets dark markets 2022
tor markets 2022 dark web market
best darknet markets darknet markets
tor dark web darknet market lists
dark web market tor markets 2022
darknet market links darkmarket url
darknet drug market darknet markets
dark web drug marketplace darkmarket 2022
deep web drug url drug markets onion
dark market url dark markets 2022
deep web drug url dark market onion
dark web market list onion market
dark markets tor dark web
darkmarkets dark markets 2022
dark web market list darknet market list
dark web drug marketplace tor dark web
deep web drug markets darknet market lists
deep web drug links dark web market list
tor marketplace dark market list
dark markets darkmarket
dark web link bitcoin dark web
darknet drug links tor market url
darkmarket url dark markets
tor dark web darkmarket url
tor market url dark web market links
tor markets links darkmarkets
cialis dapoxetine 24 tab cialis usa prescription cheap cialis by post
deep web markets deep web drug links
darkmarket list darknet drug store
darknet drug links dark web link
darkmarket tor darknet
bitcoin dark web deep web drug markets
dark web market dark web drug marketplace
dark web markets best darknet markets
darkweb marketplace dark markets
dark web markets deep web markets
drug markets onion dark web market
tor markets 2022 best darknet markets
tor dark web dark web market links
darknet drug store darkmarket
dark market link darknet market lists
deep web drug markets tor marketplace
darknet drug links tor darknet
darknet market lists dark market list
darknet market links tor markets links
dark web link tor markets links
darkmarkets darkmarket link
tor market links darknet websites
dark web market links deep web drug url
dark market link dark markets 2022
tor market links darkmarket url
darkmarket dark web drug marketplace
dark web markets tor markets 2022
dark web drug marketplace dark web market list
tor markets 2022 darknet drug links
onion market tor market
deep web markets bitcoin dark web
tor markets 2022 bitcoin dark web
drug markets dark web deep web markets
darknet drug market deep web drug url
onion market darknet market lists
darknet websites onion market
darkmarket drug markets dark web
darknet websites darknet drug market
tor markets tor markets links
dark market deep web markets
bitcoin dark web best darknet markets
darknet marketplace tor market url
darknet market dark web drug marketplace
dark web markets tor market
dark market url tor market url
dark web markets dark markets 2022
dark web markets deep web markets
darkmarket list dark web markets
darkweb marketplace dark web link
tor markets links tor markets links
darknet market list dark market list
deep web drug url tor marketplace
darknet drug store best darknet markets
onion market bitcoin dark web
tor market url deep web drug store
tor markets links dark web link
dark markets 2022 drug markets dark web
deep web markets deep web drug markets
darknet marketplace tor markets
dark markets best darknet markets
can you buy cialis in canada
darknet markets darkmarket list
darkmarket list deep web drug store
tor market darkmarket url
dark web markets deep web drug links
dark market 2022 darkweb marketplace
darknet market lists darkmarket 2022
deep web drug links deep web drug links
darknet drug market darkmarket link
dark web market dark market 2022
darkweb marketplace tor market links
dark web market list tor market
darkmarket list darknet market list
darkmarket url tor market links
deep web markets dark web market
buy viagra online with paypal in canada
tor markets 2022 dark market 2022
darknet drug market darknet drug market
dark web drug marketplace dark market list
dark market list darknet market lists
tor markets links deep web drug links
deep web drug store darknet drug links
darknet drug market tor market
darkmarket url drug markets onion
dark market url dark web sites
darkmarket 2022 darkmarket url
darkmarket url dark market list
tor dark web deep web drug url
tor market links dark market
tor darknet dark web markets
tor markets deep web drug links