Hello,i hope the week started great for you and thank you for the fast answer. Since i am at work right now , i will send you all you asked me tonight around 8 pm (romania time) I hope it s not too late for you.
Hello my friend.
I hope the day was easy and beautiful for you
On the serial monitor it only apears diagnostics, again and again.I think i didn t copy the text you said well… But on the lcd:Autowater test starting LDR 0015
Buttons 100
Moisture 0279(i have the sensor on moisture)
when is not in moisture Ldr 011
Buttons 100
Moisture 0442
I will check the text that you said must be entered in the code to appear written on the serial monitor, and I will see what I have omitted
I’ve updated the code on Github. You can see in the new version that you can change these numbers on line 10 through 13 to make it respond to different light and moisture levels, as well as how long to turn the pump on for and how long to wait before checking the light level and soil moisture again.
Good luck!
I had omitted to modify something in the text. Now I have corrected and the serial monitor appear relay test diagnostics
the new code has a erorr ;liquid crystal PCF 8574 no such file or directory
what is happening:( ?
Ok, remove the “./” in lines 3 through 7 then so that they look like this:
#include "LiquidCrystal_PCF8574.h"
#include "LDR.h"
#include "Button.h"
#include "Relay.h"
#include "SoilMoisture.h"
Serial.println(F"Not dark enough to water at this time."); this is with red
f was not declared in this scope
i will put the fotocel on tje breadboard may be will work:)
Sorry man, remove that F.
It’s been a very long and difficult day. I should’ve taken a break between getting home and writing this code.
I’ve updated it so if you want you can just take a fresh copy.
now it is another red line Serial.println(F"No need to water at this time.");
and delete this line? And all with f that will appear in red and have f?
See above, please use the latest version
I also deleted the second line that appears in red, the one I sent a second one. Now it goes, no more errors. To copy the code again in customs, to delete only the first red line
then just delete the first red line and after changing how you told me?
I’d suggest replacing all the code with the code from GitHub.
i did that,i replaced the code with the new github one.And it works:)
now he says he didn’t find the lcd,
but apart from the fact that he says he can’t find the lcd, i think it works. Close the relay not continuously as before