Skip navigation
Although we are already at Zero hour. I still have to add the application of "extracting toxic gases from the environment". I already have the idea of how it goes. And it will be with the MQ135 sensor where I got better results in practice. (detects insecticides, strong disinfectants, apart from carbon dioxide and ammonia gases). At the code level, it will be like the one executed in the sole humidity sensor since I require some hysteresis with the use of the fans.   Also the ambient lig ...
The MQ7 and MQ135 sensors operate with voltages of 5 Volts. and they must be hot to get best measurements. With the MQ135 sensor it was really easy to work. It is highly sensitive to different types of gases that are harmful to our health. I got pretty consistent results. Contrary to the MQ7 sensor, which requires two operating voltages, the first of 5 volts for 60 seconds and the other of 1.8 V for 90 seconds. I did different tests applying voltage to it by PWM but the results did not really ...
Be careful when using the DHT11 sensor when reversing the polarity (it is very easy to get the wrong polarity causing irreversible damage to the module) At the time of prototyping use good cables or better as in my case to assemble a welded Protoshield. I mention all this because it is susceptible to generating errors. Also, do not forget in the code to place the reading check line   if (isnan (h) || isnan (t) || isnan (f))    {      Serial.println (F ("Fa ...
lesmalave

LCD 2004 I2C Blog #7

Posted by lesmalave Oct 26, 2020
This post I should have written before. I used this screen because it is easy to work with and I kept it in one of my unused drawers. It allows me to write 4 lines in 20 characters. Since there are several sensors that I have in the project, I created functions so that they would move every 3 seconds.     In the first screen I have the data of the DHT11 sensor from which I obtain 3 data: Temperature, humidity and Heat Index. In the fourth line locate the Light sensor with the data ...
It is a simple sensor that measures soil moisture by the variation of its conductivity. It is not accurate enough to make an absolute measurement of soil moisture, but it is not necessary to control an irrigation system either.   In my case the values obtained go from 0 submerged in water, to 4095 in the air (or in a very dry soil). A slightly moist soil would give typical values of 2400-2800. A dry soil will have values of 3200-4095.   With some Boolean logic, taking as reference th ...
Add the libraries and paths We made sure to read the library documentation carefully (that's why I prefer to use VSC) And we configure our motors on outputs 7/8 and 11/12, which are the ones we are going to use for the water pump and the gas extractor.       ...
We will continue setting the hardware, we will talk about the environmental sensors and the display. We had available the DHT11 sensors, the popular temperature and humidity sensor, the MQ135 Air Quality Meter, the MQ7 CO sensor and the sensor supplied by Infineon DPS368 Pressure Shield2go that allows us to measure Barometric Pressure and also allows us to read temperature, and finally we add an LDR to obtain the luminosity data in the environment.   The MQ7, MQ135 and LDR sensors are anal ...
Considering the ease and great support that Arduino has. I preferred to use (for the time being) the XMC4700 Relax Kit which features a powerful ARM Cortex M4 microcontroller. We add the pin headers to the XMC4700 board and we also solder the terminal blocks to the Prophet + 12V board. In order to program our XMC4700 Relax Kit in Arduino we must do the following: Follow the instructions in the following link:   https://github.com/Infineon/XMC-for-Arduino   Where we will install t ...
It has been a long time, in these complicated times of Covid-19.   Since my initial project I have changed a few things. The main one was instead of using the Platform2GO XMC4200 I preferred to use the XMC4700 RELAX LITE KIT that has greater support in Arduino and therefore faster to carry out prototypes.   In the development I will test the necessary parts separately and then integrate the project.   My project is divided into 2 parts. 1.- inside the house where I will monitor da ...
I added A soil moisture sensord a new analog sensor. the analog sensors are configured as follows where we place the trigger thresholds for the water pump at a minimum of 1200 and a maximum of 2800   ...