OpenESP8266_Sprinkler icon indicating copy to clipboard operation
OpenESP8266_Sprinkler copied to clipboard

Where to find more informations ?

Open acca84 opened this issue 7 years ago • 13 comments

Hello, I'm interested in your project, but i'd like to be sure to understand some things.

If i use an ESP 8266 and a Stepper motor driver (see link below), will i be able to build a standalone irrigation system ? Is that compatible with 9v latching solenoids ? I have only to solenoids to control, is i2c expander mandatory ?

Motor driver : https://fr.aliexpress.com/item/Free-shipping-5pcs-lot-L9110S-DC-Stepper-Motor-Driver-Board-H-Bridge-L9110-for-arduino/1876853660.html

Thanks and sorry for my poor English

acca84 avatar Apr 16 '18 11:04 acca84

Hi Yes it is possible to use an H bridge rather that relay but , since I have no schematic of those, I am afraid you need one of those board for each latching relay.
As a cheaper alternative I suggest you could look , in a few day, the description of a new very simple board to drive 2 latching solenoid. This will be available shortly in GitHub.com/pbecchi/SmartSolenoid . It is a new development based on a LoraArduino board that have superior RF performance and very small power drain. You may just use the schematic of my prototype board and connect it to yourEsp8266. No expander is necessary in this case....!

pbecchi avatar Apr 16 '18 12:04 pbecchi

Ok thank you. I already have those Hbridges, one card can drive two motor coils, so i think it can drive two solenoids. I'll take a look at your code. Thanks again

acca84 avatar Apr 16 '18 12:04 acca84

Hello I'm trying to compile the V2.1.3 sketch, i have wonloaded the code and libs on github and pplaced everything in the sketch directory I have passed many compilation erros by changing <> by "" in some libraries definition But now, i'm stopped by this error 👍 In file included from sketch\SPIFFSdFat.cpp:1:0:

SPIFFSdFat.h:15: error: 'uint8_t' has not been declared

bool begin(uint8_t csPin = SS, uint8_t divisor = 2){}

(and many more similar lines)

could you help me please ?

acca84 avatar Apr 18 '18 20:04 acca84

Hi, i have choosen proto 11 i have tried to add # include <stdint.h> and replace bool begin(uint8_t csPin = SS, uint8_t divisor = 2){} by bool begin(uint8_t csPin = 15, uint8_t divisor = 2){}

and now the error is :

SPIFFSdFat.cpp:9: error: redefinition of 'SdFile::SdFile()'

 SdFile::SdFile() {  }

 ^

In file included from sketch\SPIFFSdFat.cpp:1:0:

SPIFFSdFat.h:24: error: 'SdFile::SdFile()' previously defined here

SdFile(){}

Could you help me please ?

acca84 avatar Apr 20 '18 09:04 acca84

ESP8266 OpenSprinkler has never been tested with use of SD cards. And SPIFFSdfat.h should not be included in compilation! Their should be a parameter SDFAT ,if i recall correctly,that control this; that should be #undef check in the code !

pbecchi avatar Apr 20 '18 12:04 pbecchi

I have checked all #include <SPIFFSdfat.h> are commented out ! Are you using the rigth branch?
It should be : "For_OS_Bee_2_0..........

pbecchi avatar Apr 20 '18 13:04 pbecchi

Ok, it is commented out but Arduino IDE wants to compile it anyway. I removed SPIFSSdfat files and now error is :

libraries\DS1307RTC\DS1307RTC.cpp.o:(.bss.RTC+0x0): multiple definition of `RTC'

sketch\OpenSprinkler_ESP8266_V_2_1_6.ino.cpp.o:(.bss.RTC+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

acca84 avatar Apr 20 '18 14:04 acca84

I commented out all references to DS1307RTC in OpenSprinkler_ESP8266_V_2_1_6.ino Now compilation is ok Is ther a way to avoid this kind of problems ?

acca84 avatar Apr 20 '18 14:04 acca84

Another question : by default what is the port of http server ? Where is that configured ?

acca84 avatar Apr 20 '18 14:04 acca84

My esp connects to my router (my router sees it), but i can't connect from a browser. Does proto 11 provides webserver ?

acca84 avatar Apr 20 '18 16:04 acca84

Without a display or USB printout info it is almost impossible to help you!

Http port is 80 as usual....look at the manual!

pbecchi avatar Apr 20 '18 17:04 pbecchi

Ok i'll post that But does proto 11 provides webserver ? Thanks

acca84 avatar Apr 20 '18 18:04 acca84

It's ok, i Can connect to webinterface. What configuration should i use for self latching valves ? i have tested the method below and i'd like to use it in opensprinkler http://vanderleevineyard.com/vineyard-blog/arduino-control-for-vineyard-irrigation

acca84 avatar Apr 20 '18 19:04 acca84