Feuchtigkeitssensor wie sinnvoller anwenden in automatischer Gießanlage (Arduino)?

Hi,

Ich habe mir vor einem Jahr eine automatische Gießanlage mit einem Arduino gebaut. Die macht ihre Arbeit hervorragend. Gießt ein bis zwei Mal am Tag die Blumenkästen. Wassertank reicht etwa 14 Tage, ist der leer schaltet sich die Pumpe nicht an. Alles prima.

Jedoch war die eigentliche Absicht, erst die Feuchtigkeit zu messen und danach zu entscheiden ob gegossen werden muss oder nicht. Platine ist schon ne Weile angepasst und der Sketch geschrieben.

Mein Problem ist aber, dass ich mir den Messvorgang selber, einfacher vorgestellt hätte. Ich habe innerhalb nur eines Blumenkastens extreme Unterschiede in der Feuchtigkeit. Der Sensor ist so programmiert das der Wert einen Bereich von 0 bis 100 hat. Nun ist der Wert selber so unterschiedlich innerhalb weniger Zentimeter das zwischen etwa 40 und 80 alles möglich ist.

Ich hab kein Plan wie ich ansatzweise einen Mittelwert erreiche oder ob ich es ganz anders angehen muss. Ich habe eigentlich auch keinen Bock in jedem Kasten 2 Sensoren einzustellen und dann den Mittelwert zu errechnen.

Erst mal wäre das ein enormer Kabelsalat und dann wäre das immer noch ungenau weil der Wert innerhalb keiner Bereiche stark von einander abweicht.

Ich überlege schon seit Wochen wie es doch möglich wäre, eine sinnvolle Messung vorzunehmen.

Bild zum Beitrag
Erde, Giessen, Arduino, Blumenkasten, Feuchtigkeit, messen, Sensor
Wie behebe ich dieses Upload-Problem (Arduino)?

Ich brauche Hilfe... Ich möchte ein Projekt bauen, das auf einem LCD ein VU-Meter, sowie eine digitale Uhr anzeigt. Den Code habe ich von einem Youtuber kopiert (Cine-Lights), und alle Libraries habe ich auch. Jdeoch steht beim Upload: Bla Bla Bla, Zugriff verweigert... Der Fehlercode ist hier:

Arduino: 1.8.9 (Windows 8.1), Board: "Arduino/Genuino Uno"

C:\Users\Marvin\Downloads\Programme\arduino-1.8.9-windows\arduino-1.8.9\arduino-builder -dump-prefs -logger=machine -hardware C:\Users\Marvin\Downloads\Programme\arduino-1.8.9-windows\arduino-1.8.9\hardware -tools C:\Users\Marvin\Downloads\Programme\arduino-1.8.9-windows\arduino--prefs=runtime.tools.avrdude-6.3.0-arduino14.path=C:\Users\Marvin\Downloads\Programme\arduino-1.8.9-windows\arduino-1.8.9\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Users\Marvin\Downloads\Programme\arduino-1.8.9-windows\arduino-1.8.9\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=C:\Users\Marvin\Downloads\Programme\arduino-1.8.9-windows\arduino-1.8.9\hardware\tools\avr -verbose C:\Users\Marvin\Downloads\vumeterclock\vumeterclock\lcdvumeter\lcdvumeter.ino

C:\Users\Marvin\Downloads\Programme\arduino-1.8.9-windows\arduino-1.8.9\arduino-builder -compile -logger=machine -hardware C:\Users\Marvin\Downloads\Programme\arduino-1.8.9-windows\arduino-1.8.9\hardware -tools C:\Users\Marvin\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10809 -build-path C:\Users\Marvin\AppData\Local\Temp\arduino_build_61715 -warnings=none -build-cache C:\Users\Marvin\AppData\Local\Temp\arduino_cache_745094 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Marvin\Downloads\Programme\arduino-1.8.9-windows\arduino-1.8.9\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=C:\Users\Marvin\Downloads-prefs=runtime.tools.avr-gcc.path=C:\Users\Marvin\Downloads\Programme\arduino-1.8.9-windows\arduino-1.8.9\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=C:\Users\Marvin\Downloads\Programme\arduino-1.8.9-windows\arduino-1.8.9\hardware\tools\avr -verbose C:\Users\Marvin\Downloads\vumeterclock\vumeterclock\lcdvumeter\lcdvumeter.ino

Using board 'uno' from platform in folder: C:\Users\Marvin\Downloads\Programme\arduino-1.8.9-windows\arduino-1.8.9\hardware\arduino\avr

Using core 'arduino' from platform in folder: C:\Users\Marvin\Downloads\Programme\arduino-1.8.9-windows\arduino-1.8.9\hardware\arduino\avr

open C:\Users\Marvin\AppData\Local\Temp\arduino_build_61715\sketch\lcdvumeter.ino.cpp: Zugriff verweigert

Error compiling for board Arduino/Genuino Uno.

Bitte helft mir

Computer, Technik, programmieren, Arduino, LCD
Arduino upload geht nicht?

hey, ich fange gerade mit arduino zeug an und wenn ihc versuche einen einfachen code upzuloaden kommt in der ide folgende fehlermeldung:

////////////////

Arduino: 1.8.9 (Windows 10), Board: "Arduino Nano, ATmega328P"

Sketch uses 942 bytes (3%) of program storage space. Maximum is 30720 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

D:\Programme\arduino ide\Arduino\hardware\tools\avr/bin/avrdude -CD:\Programme\arduino ide\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM9 -b115200 -D -Uflash:w:C:\Users\Andreas\AppData\Local\Temp\arduino_build_797620/redgreensig.ino.hex:i

avrdude: Version 6.3-20171130

        Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

        Copyright (c) 2007-2014 Joerg Wunsch

        System wide configuration file is "D:\Programme\arduino ide\Arduino\hardware\tools\avr/etc/avrdude.conf"

        Using Port                   : COM9

        Using Programmer             : arduino

        Overriding Baud Rate         : 115200

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x6a

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x6a

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x6a

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x6a

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x6a

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x6a

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x6a

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x6a

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x6a

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x6a

avrdude done. Thank you.

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

This report would have more information with

"Show verbose output during compilation"

option enabled in File -> Preferences.

///////////////

Das ist der Code falls es relevant sein sollte...int led = 5; // the pin the LED is connected to

void setup()
{
pinMode(led, OUTPUT); // Declare the LED as an output
}

void loop()
{
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(1000);
}

ps. port und board sind richtig ausgewählt

lg

Computer, Technik, programmieren, Arduino, Technologie
Arduino Fehlermeldung programmer not responding?

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino/Genuino Uno"

Der Sketch verwendet 724 Bytes (2%) des Programmspeicherplatzes. Das Maximum sind 32256 Bytes.

Globale Variablen verwenden 9 Bytes (0%) des dynamischen Speichers, 2039 Bytes für lokale Variablen verbleiben. Das Maximum sind 2048 Bytes.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x8d

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x8d

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x8d

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x8d

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x8d

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x8d

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x8d

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x8d

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x8d

Problem beim Hochladen auf das Board. Hilfestellung dazu unter http://www.arduino.cc/en/Guide/Troubleshooting#upload.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x8d

Dieser Bericht wäre detaillierter, wenn die Option

"Ausführliche Ausgabe während der Kompilierung"

in Datei -> Voreinstellungen aktiviert wäre.

Was machen?

Computer, Technik, programmieren, Arduino

Meistgelesene Fragen zum Thema Arduino