Tell us about yourself!
It already collects data and store them on SD card.
The error is in the coding part in the values calculating section (values mapping). As you see when the moisture is 0 it reads the full resistance of 1023 (or something like that) and calculates it to percentage value of 100% instead of 0%. the values should be like this :when moisture is 0% the resistance is 1023. when it i 100% resistance should be at minimal number (around 200 as i remember, you need to check that). In your case it is the oppsite way, when its 100% its 1023 and when it calculates some value it drops from 100% instead increasing from 0%. I dont know if this answer is clear enough if its not please copy me the part of your code in the section of calculating and presenting values.
line delay(0); have no sense.In the rest of that i cant find the error, try to listen to serial print and you should find the error youselfalso take a look on my 2nd instructable which is an improvment to this one, mb you will find what you are looking forhttps://www.instructables.com/Soil-Moisture-Sensor-LCD-RTC-SD-Logger-Temperature/
Check out the datasheet of your module, also take a look on
Absoltly YES, but remember to go down from 50k resistance to desired value not the oposite way. Set the value of potentiometer to 50k with a screwdriver, check the resistance to see if its 50k and go down to the point of interest. This should prevent pushing too much current thru the potentiometer. I belive arduino current value are save for the screen, but you newer know until you check it (and possibly burn the lcd in the process).
Hi! You might have a different screen, with different pinout. Check the datasheet for your LCD and compare it to the one i had :)
Can u attach the picture of your lcd?
Everything is explained in the instructable."To set the time you're going to need Sodaq DS3231 library. You can get it thru "add library" option in arduino program. Just click add library and type "3231" And you ll have it shown. You need to install it now. However:If there is no Sodaq DS3231 library to install use this link to GitHub:https://github.com/SodaqMoja/Sodaq_DS3231Load the sketch "adjust" and change those values"If you still need help, contact me in private message.
You need to have something wrong in the values mapping section of the arduino code.int soil = analogRead(potPin) ; soil = constrain(soil, 400, 1000); // We get the values between 400 and 1000, thats why we need to map the values soil = map(soil, 400, 1000, 100, 0); // to make lower numbers a bigger percent, and to map them im range of 1 to 100.Arduino reads the low moisture as ~1023 and high as around 300-400. Thats why we need to map the values, so they will vary between 0-100 % and 100% is 300-400 value and 0% is around 1000 (1023). Its a simple convertion of values to get what we aim to :) So thats probably the section that is wrong. What method u made it with? Breadboard of PCB?