Initiation: How to Shape a Plant Monitor lizard With Arduino

In this tutorial we will learn how to find a soil moisture using a moisture sensor and flash a green Light-emitting diode if everything is ok and OLED Display and Visuino.

Watch the video.

Step 1: What You Will Need

Arduino UNO (or whatsoever former Arduino) Tumble here

Soil wet sensor module, Develop it here

Jumper wires

Breadboard Get it here

OLED Show Get information technology here

1X Red LED, 1X Green LED Get them here

Visuino program: Download Visuino

Step 2: The Lap

  • Connect OLED Video display pin[VCC] to Arduino fall[5V]
  • Connect OLED Display peg[GND] to Arduino pin[GND]
  • Connect OLED Display personal identification number[SDA] to Arduino pin[SDA]
  • Touch base OLED Display pin[SCL] to Arduino pin[SCL]
  • Connect Arduino 5V to piezo buzzer module pin VCC
  • Connect Arduino GND to Green LED negative Immobilize
  • Connect Arduino GND to Red LED negative Bowling pin
  • Connect Arduino Digital Pivot 3 to Green Light-emitting diode counter Pin
  • Connect Arduino Integer Pin 2 to Red LED counter Pivot
  • Connect Arduino 5V to wet sensor module pin VCC
  • Connect Arduino GND to moisture sensing element faculty fall GND
  • Connect Arduino analog pin 0 to moisture sensor module pin A0

Step 3: Start Visuino, and Select the Arduino UNO Circuit card Eccentric

To start programming the Arduino, you will need to receive the Arduino IDE installed from here: https://www.arduino.cc/.

Please be aware that there are some critical bugs in Arduino IDE 1.6.6. Make sure that you set u 1.6.7 or high, otherwise this Instructable will non work out! If you possess non finished follow the stairs in this Instructable to setup the Arduino IDE to program Arduino UNO! The Visuino: https://www.visuino.eu also needs to exist installed. Start Visuino every bit shown in the first characterisation Click on the "Tools" button on the Arduino component (Video 1) in Visuino When the dialog appears, select "Arduino UNO" arsenic shown on Picture 2

Step 4: In Visuino Sum up and Set Components

Hyperkinetic syndrome "OLED Display" component

Add 2X "Compare Analog Value" component

  • Double click happening the DisplayOLED1 and in the elements window drag Schoolbook Field to the leftmost, and then in the properties windowpane set size up to 3
    Close the elements window
  • Select CompareValue1 and in the properties window set "Compare Type" to ctBiggerOrEqual and Value to 0.7 <<this is the sensibility value, you can change IT if you want
  • Quality CompareValue2 and in the properties windowpane set "Liken Type" to ctSmaller and Value to 0.7 << this is the sensitivity value, you can change it if you deprivation

Footmark 5: In Visuino Connect Components

  • Connect Arduino parallel oarlock 0 to CompareValue1 pin In, CompareValue2 PIN number In, DisplayOLED1>Text Field1 Pin In
  • Colligate CompareValue1 Pin KO'd to Arduino whole number pin 2
  • Connect CompareValue2 Tholepin Out to Arduino digital pin 3
  • DisplayOLED1 pin I2C Dead set Arduino board I2C pivot In

Abuse 6: Generate, Compile, and Upload the Arduino Code

In Visuino, at the penetrate detent on the "Physical body" Tab, wee-wee sure the correct port is selected, then click on the "Compile/Progress and Upload" button.

Step 7: Play

If you index the Arduino UNO module, and the LED should newsbreak (red not enough water,green enough water) and the OLED Display will show the moisture level
Congratulations! You have completed your project with Visuino. Also attached is the Visuino project, that I created for this Instructable, you john download it present and afford it in Visuino: https://www.visuino.eu

Beryllium the First to Share

Recommendations

  • Anything Goes Contest 2022

    Anything Goes Contest 2022