Total Pageviews

Friday, July 8, 2016

MCP41xxx digital potentiometer

   I have one MCP41010 digital potentiometer with 10kohms value in 256 steps (0 to 255 steps = 8 bits) who can controllled by a microcontroler or development board thru SPI conenctor.

   I search info about this digital potentiometer and I noted 2 usefull articles:

   I use Arduino Mega board in this schematic:
am I use MCP41xxx_lcd1602_i2c_test.ino sketch.
   After I read the datasheet I realised this digital potetiometer has a "wiper ressitance". Tipical value for 5V is 52 ohms (maximum 100 ohms).
   In tests, I can see:
- minimum value (step no. 0):
- maximum value (step no. 255):
If I change potentiometer at 3.3V, I can see:
- minimum value (step no. 0):
- maximum value (step no. 255):
   You can see test with MCP41010 digital potentiometer and Arduino Mega (2) movie for understund more clear what i write:


Soil moisture control in 4 zones

   For a real garden you need a suystem for soil moisure control in more zones, so, I made a siystem for 4 zones.
   Schematic is simple:
   I write a sketch for this who can download from my channel Github !
   Eatch soil sensor is powered few seconds when measure humidity after that is powerred off (tens of seconds):
- first sensor powered:
- second sensor is powered:
- third sensor is powered:
- fourth sensor is powered:
   You can see two movies:
soil moisture control in 4 zones using Arduino
soil moisture control in 4 zones using Arduino (2)
30.07.2016
   Because are 2 version of relay module:
- with normal control when if you give 5V at input module relay relay is energized and coil is powered, normal open contact is close 
- with negative control (inversed control) when give 5V at input module realy is cut the power at coil, normal open contact is open ...
  So, I put a jumper for easy use of relay modules, when jumper is open (in air) it use normal control and when jumper is close it use negative control.
  Schematic is simple just add jumper:
and must use sketch named lcd1602_i2c_soilhumidity_ver4.ino !

Monday, July 4, 2016

Soil moisture/humidity control system (part 2)

   In previous article I present you a simple metode for read and control soil humidity (soil moisture) and for protect the probe of soil moisture sensor with intermitent power of sensor (just few seconds when measure process - at 5 second whem pump is on for not flooding and at few minutes wheh humidity is ok).
   Now, I put a inportant indication: time elapsed since the last watering process (maximum 999 hours 59 minutes, using millis() soubrotine, see article from https://www.arduino.cc/en/Reference/Millis).
   For that, I use a sketch like lcd1602_i2c_umditatesol_ver2.ino just change texts in english.
   I use same schematic:
   I made 2 movies:
   

Wednesday, June 29, 2016

Soil moisture/humidity control system

   Helpfull for home is a soil moisture control system, who can made easy with a Arduino development board.
   For tests I use a Arduino Mega board, alpahanumerical 1602 LCD with i2c interface, soil moisture module, but for real use must use relay module for control a wattering pump.
   I use sketch named lcd1602_i2c_soilhumidity_ver1.ino who can find at my Github channel.
   My soil moisture sensor is not permanent powered with 5V because in timp probe sensor will be distroyed by electrocorrosion effects, so, I powered the sensor just few seconds at 5 seconds when pump is on for avoid flooding and at 5 minutes (in test I use 20 seconds) when soil is wet.
   I made a few years ago some tests with CMOS 4093 gates (see original article from  http://www.arduinotehniq.com/old/udare_automata/udare_automata_flori.htm) when I use this schematic whit permanent power of soil probe:
and after 3 months my stainess steel probe was corroded:
   So, I put a threshold value at 25% and I have 2 cases:
- when soil is wet, pump is off, measurements are made at long periods:
- when soil is dry, pump is on, measurement are made at 5 seconds for avoid floods:
   You can see these cases in a movie named soil moisture control system using Arduino

Soil moisture (humidity) control system

   Helpfull for home is a soil moisture control system, who can made easy with a Arduino development board.
   For tests I use a Arduino Mega board, alpahanumerical 1602 LCD with i2c interface, soil moisture module, but for real use must use relay module for control a wattering pump.
   I use sketch named lcd1602_i2c_soilhumidity_ver1.ino who can find at my Github channel.
   Soil moisture sensor is very chip
and has this schematic:
   My soil moisture sensor is not permanent powered with 5V because in timp probe sensor will be distroyed by electrocorrosion effects, so, I powered the sensor just few seconds at 5 seconds when pump is on for avoid flooding and at 5 minutes (in test I use 20 seconds) when soil is wet.
   I made a few years ago some tests with CMOS 4093 gates (see original article from  http://www.arduinotehniq.com/old/udare_automata/udare_automata_flori.htm) when I use this schematic whit permanent power of soil probe:
and after 3 months my stainess steel probe was corroded:
   So, I put a threshold value at 25% and I have 2 cases:
- when soil is wet, pump is off, measurements are made at long periods:
- when soil is dry, pump is on, measurement are made at 5 seconds for avoid floods:
   You can see these cases in a movie named soil moisture control system using Arduino

Thursday, June 23, 2016

Soil moisture (humidity) measure system

   A nice and interesting gadget for Arduino board is soil moisture sensor, who can buy from Sparkfun,
ebay, aliexpressbanggood, etc.
   For last version schematic is:
   This version has 2 outputs, one analogical and one digial. If value of humidity is bigger than reference led D2 is on:
   I use a LCD1602 with i2c interface with a Arduino Mega (ADK) board and my test schematic is:
   I write a sketch named lcd1602_i2c_soilhumidity_ver0.ino put on my github channel:
   If sensor has probe in the air:
and if I put wet fingers:

and than I put a clone Arduino Uno board:
   Next step was to I use a Arduino Leonardo: