Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
arduino:arduino [2020/07/24 14:45] tmadearduino:arduino [2020/11/04 16:11] – [Links] tmade
Line 4: Line 4:
  
 https://www.arduino.cc/en/Main/Software https://www.arduino.cc/en/Main/Software
 +
 +====esp8266====
  
 Setup esp8266: Setup esp8266:
  
 https://dzone.com/articles/programming-the-esp8266-with-the-arduino-ide-in-3 https://dzone.com/articles/programming-the-esp8266-with-the-arduino-ide-in-3
 +
 +====esp32====
 +
 +https://www.az-delivery.de/blogs/azdelivery-blog-fur-arduino-und-raspberry-pi/esp32-jetzt-mit-boardverwalter-installieren
 +
 +https://dl.espressif.com/dl/package_esp32_index.json
  
 ==== Irrigation System ==== ==== Irrigation System ====
Line 13: Line 21:
 Enhanced code to control a waterpump, a display and an "Capacitive Soil Moisture Sensor". Enhanced code to control a waterpump, a display and an "Capacitive Soil Moisture Sensor".
  
-  *Display shows a diagramm in +The display shows a diagramm in:
   *Sensor values   *Sensor values
   *dry or wet   *dry or wet
   *% value   *% value
  
-<code>+<code sh Irrigation.ino>
 //Irrigation  //Irrigation 
 //version 1.2 //version 1.2
Line 35: Line 43:
 Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
 //Adafruit_SSD1306 display(-1); //Adafruit_SSD1306 display(-1);
- 
-/* 
-const unsigned char Smiley_lachen [] PROGMEM = {  
-}; 
- 
-const unsigned char Smiley_middle [] PROGMEM = { 
-}; 
- 
-const unsigned char Smiley_traurig [] PROGMEM = { 
-}; 
-*/ 
  
 //variables //variables
Line 398: Line 395:
  
 https://randomnerdtutorials.com/guide-for-oled-display-with-arduino/ https://randomnerdtutorials.com/guide-for-oled-display-with-arduino/
 +
 +To check HEX-adress of your display - which has to be referenced - please run this sketch:
 +
 +<code sh oled-test.ino>
 +/*********
 +  Rui Santos
 +  Complete project details at https://randomnerdtutorials.com  
 +*********/
 +
 +#include <Wire.h>
 + 
 +void setup() {
 +  Wire.begin();
 +  Serial.begin(115200);
 +  Serial.println("\nI2C Scanner");
 +}
 + 
 +void loop() {
 +  byte error, address;
 +  int nDevices;
 +  Serial.println("Scanning...");
 +  nDevices = 0;
 +  for(address = 1; address < 127; address++ ) {
 +    Wire.beginTransmission(address);
 +    error = Wire.endTransmission();
 +    if (error == 0) {
 +      Serial.print("I2C device found at address 0x");
 +      if (address<16) {
 +        Serial.print("0");
 +      }
 +      Serial.println(address,HEX);
 +      nDevices++;
 +    }
 +    else if (error==4) {
 +      Serial.print("Unknow error at address 0x");
 +      if (address<16) {
 +        Serial.print("0");
 +      }
 +      Serial.println(address,HEX);
 +    }    
 +  }
 +  if (nDevices == 0) {
 +    Serial.println("No I2C devices found\n");
 +  }
 +  else {
 +    Serial.println("done\n");
 +  }
 +  delay(200);          
 +}
 +</code>
 +
 +**Note:** You have to change baud rate in serial monitor to "115200" to get the result!!
 +
 +
 +
 +====Links====
 +
 +https://www.az-delivery.de/blogs/azdelivery-blog-fur-arduino-und-raspberry-pi/pflanzenwaechter-fuer-die-fensterbank-teil-3-erweiterung-der-bodenfeuchtesensoren-auf-maximal-sechs-stueck
 +
 +https://gardenbot.org/parts/
 +
 +https://create.arduino.cc/projecthub/biswa11/garduino-bba809
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki