Digitale Bewässerungsanlage
Model details
- Platform
Printables
- Price
- Free
- License
- CC-BY
- Print, modify and use commercially — credit the author.
- Formats
- STL
- 3 Likes
- 13 Downloads
- 0 Makes
- 0 Comments
- 218 Views
Description
Dir gehen auch immer deine Pflanzen ein? Dann gibt es jetzt hier die Lösung, eine automatisierte Bewässerungsanlage, die du einfach nachbauen kannst. In dem Workshop geht es um Sensoren, Arduinos, 3D-Druck und ein wenig Heißkleber. Wenn du ein neues Frühlings Projekt suchst, dann bist du hier richtig.
Arduino Code:
include
include
include
define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
const int AirValue = 620; //you need to replace this value with Value_1
const int WaterValue = 310; //you need to replace this value with Value_2
int soilMoistureValue = 0;
int soilmoisturepercent = 0;
void setup()
{
Serial.begin(9600); // open serial port, set the baud rate to 9600 bps
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); //initialize with the I2C addr 0x3C (128x64)
display.clearDisplay();
pinMode(2,OUTPUT); //pump
digitalWrite(2,LOW);
pinMode(3,OUTPUT); //red
digitalWrite(3,LOW);
pinMode(4,OUTPUT); //green
digitalWrite(4,LOW);
pinMode(5,OUTPUT); //blue
digitalWrite(5,LOW);
}
void loop()
{
soilMoistureValue = analogRead(A0); //put Sensor insert into soil
Serial.println(soilMoistureValue);
soilmoisturepercent = map(soilMoistureValue, AirValue, WaterValue, 0, 100);
if(soilmoisturepercent >= 100)
{
Serial.println("100 %");
display.setCursor(45,0); display.setTextSize(2); display.setTextColor(WHITE); display.println("Moisture");
display.setCursor(20,15); //oled display display.setTextSize(2); display.setTextColor(WHITE); display.println("100 %"); display.display();
delay(250); display.clearDisplay(); }
else if(soilmoisturepercent <=0)
{
Serial.println("0 %");
display.setCursor(45,0); display.setTextSize(2); display.setTextColor(WHITE); display.println("Moisture");
Similar models
UV meter
Cronometro Automático Para Robots Seguidores De Línea - Automatic Timer For Line Follower Robots
Arduino Nano Tachometer
Productive Timer Raspberry Pi Pico
kamera slider
UV meter
UV meter
Night lamp with movement sensor
Arduino Giga Development Platform
MARS, Medication Alarm Reminder System
Window Blind Remote Control
Names are used only to indicate the source of a result. Polyzon is not affiliated with the listed sites.




Comments