pbecchi / OpenESP8266_Sprinkler

ESP8266 port of Opensprikler software.
GNU General Public License v3.0
37 stars 15 forks source link

Where to find more informations ? #5

Open acca84 opened 6 years ago

acca84 commented 6 years ago

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

pbecchi commented 6 years ago

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....!

acca84 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Hi, i have choosen proto 11 i have tried to add # include 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 ?

pbecchi commented 6 years ago

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 commented 6 years ago

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

acca84 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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

acca84 commented 6 years ago

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

pbecchi commented 6 years ago

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

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

acca84 commented 6 years ago

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

acca84 commented 6 years ago

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