OpenSprinkler › Forums › Comments, Suggestions, Requests › Opensprinkler on ESP8266
Tagged: ESP8266 installation
- This topic has 171 replies, 26 voices, and was last updated 2 years, 11 months ago by zenonmb.
-
AuthorPosts
-
June 9, 2018 at 12:54 pm #50573
RayKeymasterIf you use the stock OpenSprinkler firmware — it assumes you have buttons, which on OpenSprinkler main board are connected to the PCF8574 IO expander. If you don’t have that, the ui_state_machine will probably cause problems as it will read button status incorrectly.
June 7, 2019 at 2:28 pm #60884
Jisse154ParticipantHello all
First of all, thanks Ray and all others for your work on this project.After 3 evenings trying to solve my problem, I see no other solution than to ask for your help. I am trying to upload opensprinkler master firmware in a esp8266 dev nodemcu.
I am using arduino IDE 1.8.9 with ESP8266 CORE 2.5.2. I have compiled using mainArduino.ino and flash the firmware without any errors via serial USB, however the ESP8266 crash and enter on cycling reset loop with this msg:ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ldothers have been facing to this problem but on my case, I cannot solve it.
here attached my setup:
is it correct?
Thanks for your supportAttachments:
June 9, 2019 at 4:23 am #60935
RayKeymasterI would not recommend compiling the code with ESP8266 core 2.5 yet because it has not been tested with core 2.5. The stock firmware has only been compiled with CORE 2.4.1. I am pretty sure some part of the code has to be changed when transitioning to 2.5 and I haven’t had time to figure that out yet.
June 10, 2019 at 8:05 am #60980
Jisse154ParticipantThanks Ray for your reply.
I still have the probleme.
A watchdog reset occurs after the firmware uploadets Jan 8 2013,rst cause:4, boot mode:(1,6)
wdt reset
to compile without error, I have changed the updater.h lib to include reset function and also rename Time.cpp and Time.h.
do I have to change something else?June 12, 2019 at 1:50 am #61017
RayKeymasterNot sure. If you are using your own hardware, the best way to find out is to turn on debugging (#define SERIAL_DEBUG) and watch the serial output (baud rate 115200) to see where it triggers the watchdog timer reset.
June 12, 2019 at 1:50 am #61018
RayKeymasterNot sure. If you are using your own hardware, the best way to find out is to turn on debugging (#define SERIAL_DEBUG) and watch the serial output (baud rate 115200) to see where it triggers the watchdog timer reset.
June 12, 2019 at 2:06 pm #61040
Jisse154ParticipantI have uncommented the #define SERIAL_DEBUG on define.h and put a DEBUG_PRINT just after the DEBUG_BEGIN(115200) on main.h. After the firmware upload, I don’t see anything on the serial monitor except the watchdog reset as previously.
ets Jan 8 2013,rst cause:4, boot mode:(1,6)
wdt reset
I am not sur to use the debug function correctly!?
June 12, 2019 at 2:22 pm #61041
DaijoubuParticipantDoes it also reset when not connected to the breadboard?
Make sure you’re not pulling over the 1A the AMS1117 can provide on the 3.3V rail and check to make sure the GPIOs are in the correct state to boot from flashGPIO 0: HIGH
GPIO 2: HIGH
GPIO 15: LOWIt’s possible your NodeMCU (or clone) is poorly implemented as with chinesium jelly bean parts
June 16, 2019 at 3:33 pm #61095
Jisse154ParticipantHi,
thanks for your support. I ‘m finally solved my issue removing #include <Wire.h> on mainArduino.ino.
June 17, 2019 at 5:58 am #61103
MouadParticipantHello,
I am trying to upload opensprinkler master firmware in a esp8266 dev nodemcu.
I have compiled using mainArduino.ino and flash the firmware without any errors via serial USB, however the ESP8266 crash and enter on cycling reset loop with this msg:ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ldI Am Used RTS DS3231 and I2C LCD For test
Attachments:
June 19, 2019 at 6:22 am #61153
MouadParticipantHello,
I am trying to upload opensprinkler master firmware in a esp8266 dev nodemcu.
I have compiled using mainArduino.ino and flash the firmware without any errors via serial USB, however the ESP8266 crash and enter on cycling reset loop with this msg:ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ldI Am Used RTS DS3231 and I2C LCD For test
Attachments:
June 19, 2019 at 7:24 am #61157
Jisse154ParticipantHi Mouad
get the code mainArduino.ino and remove the first line #include <Wire.h> and then compile.
It worked for me, but I don’t know exactly why!
June 19, 2019 at 7:38 am #61158
MouadParticipantHi Jisse154
thank you for support
Remains the same problem , pleas Give me your code source for testingJune 20, 2019 at 12:10 am #61166
Jisse154ParticipantJuly 19, 2019 at 12:46 am #61731
KunstfliegerParticipantJisse154
do you have it also as compiled .bin file?
And how the relais are connected to the NodeMCU? Is it with a shiftregister?November 18, 2019 at 10:41 pm #63316
SpikeyGGParticipantGuys, I have the components but I’m a bit of a newb when looking through the code. I’ve got the ESP8266 programmed to hook up to my wifi and I can see the web service. I have the RTC and LCD working but I can’t figure out how to hook up the 74HC595 so it controls the relays. Does someone have a wiring diagram of the ESP8266 and the 74HC595? I don’t understand how the shift register works with this…
November 23, 2019 at 9:44 am #63360
litronasParticipantgreat job. thanks to everyone. I live in an apartment and I will not be able to put it, but I would like to try it. What version do you recommend, the latest unified or the one in this post to start? Thanks again.
January 19, 2020 at 7:04 pm #64054
slickParticipantHello,
I hope someone will lend a hand; I’m simply trying to compile the project.
I’ve tried to follow: https://openthings.freshdesk.com/support/solutions/articles/5000165132-how-to-compile-opensprinkler-firmware
I’ve build a CentOS VM and am running the make.lin32 make file.
I have arduino installed, but noticed the make file is looking for it to be installed in ~/Arduino. Since my install went to arduino-1.8.10, I renamed the path in the make file.When I do, I get this:
server.cpp: In function ‘void on_sta_upload()’:
server.cpp:1974:3: error: ‘stopAll’ is not a member of ‘WiFiUDP‘
WiFiUDP::stopAll();
^
make: *** [/tmp/mainArduino/mainArduino_generic/server.cpp.o] Error 1
make: *** Waiting for unfinished jobs….Any suggestions would be greatly appreciated.
Thank you!January 24, 2020 at 9:39 am #64100
RayKeymaster@slick: the instructions we gave does not rely on any existing Arduino installation. You mentioned ‘arduino-1.8.10’: it should’t need that folder at all. If you follow the instructions it will download esp8266 core and arduino files in a self-contained folder.
Also, ~/Arduino refers to where the Arduino libraries will be installed. Since the firmware relies on several libraries, by default those libraries should be installed in that folder. If not, you can certainly modify the make file to point to the correct folder.
Also, if you still can’t get passed that compilation error, just open server.cpp, find that line and comment it out. It’s not a critical line (it basically tells the processor to stop UDP service before OTA firmware update, but that’s actually not entirely necessary).
January 24, 2020 at 7:04 pm #64113
slickParticipantHi Ray,
Ah… That tidbit about not needing a formal Arduino installation and clarifying the purpose of the Arduino directory helped a lot, I get it now. I’m now able to compile and actually loaded a bin file it onto a bare ESP (can’t do much with out the rest of the hardware, but I’m excited none-the-less).
I’m so impressed with what you (and company) have done. Thanks for responding and helping a the new guy out, I appreciate it.
All the bestJanuary 25, 2020 at 7:38 am #64123
KunstfliegerParticipantHello,
I see that some of you tried to run the hardware with a NodeMCU which is based on ESP8266. Mmaybe someone can help me with my questions.
I´ve compiled the code which is on a NodeMCU v3 now.But I do not know, how the outputs are connected to the esp8266. Is there a shiftregister (74HC595) like for the OSPi?
Also how is the rainsensor connected?Best Regards
KunstfliegerJanuary 30, 2020 at 2:08 pm #64173
RayKeymasterYou can find the pin assignment in the hardware design details:
https://github.com/OpenSprinkler/OpenSprinkler-Hardware/tree/master/OS/3.0
OS 3 (based on ESP8266) does NOT use 74HC595, mainly because ESP8266 does not have enough number of GPIO pins. Instead, it uses PCA9555 IO expander, which is I2C-based so only uses 2 pins and are shared with OLED and RTC.February 20, 2020 at 10:31 am #64398
polskifacetParticipantHi,
Is it possible to easily run without the IO expander?March 18, 2020 at 4:51 am #64714
KunstfliegerParticipantHello Ray,
thanks for this help! I have a PCF8574 at home and connected it to an ESP8266. But I couldnt switch any relays which are connected on the PCF. Attached I have the picture, how it is connected. What I´m doing wrong?Attachments:
March 28, 2020 at 6:42 am #64852
KunstfliegerParticipantIs there someone else who can help me with this?
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › Comments, Suggestions, Requests › Opensprinkler on ESP8266