OpenSprinkler Forums Comments, Suggestions, Requests Opensprinkler on ESP8266

Viewing 23 posts - 126 through 148 (of 148 total)
  • Author
    Posts
  • #50573

    Ray
    Keymaster

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

    #60884

    Jisse154
    Participant

    Hello 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
    ~ld

    others have been facing to this problem but on my case, I cannot solve it.

    here attached my setup:
    is it correct?
    Thanks for your support

    #60935

    Ray
    Keymaster

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

    #60980

    Jisse154
    Participant

    Thanks Ray for your reply.

    I still have the probleme.
    A watchdog reset occurs after the firmware upload

    ets 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?

    #61017

    Ray
    Keymaster

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

    #61018

    Ray
    Keymaster

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

    #61040

    Jisse154
    Participant

    I 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!?

    #61041

    Daijoubu
    Participant

    Does 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 flash

    GPIO 0: HIGH
    GPIO 2: HIGH
    GPIO 15: LOW

    It’s possible your NodeMCU (or clone) is poorly implemented as with chinesium jelly bean parts

    #61095

    Jisse154
    Participant

    Hi,

    thanks for your support. I ‘m finally solved my issue removing #include <Wire.h> on mainArduino.ino.

    #61103

    Mouad
    Participant

    Hello,

    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
    ~ld

    I Am Used RTS DS3231 and I2C LCD For test

    • This reply was modified 8 months, 2 weeks ago by Mouad.
    #61153

    Mouad
    Participant

    Hello,

    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
    ~ld

    I Am Used RTS DS3231 and I2C LCD For test

    #61157

    Jisse154
    Participant

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

    #61158

    Mouad
    Participant

    Hi Jisse154
    thank you for support
    Remains the same problem , pleas Give me your code source for testing

    #61166

    Jisse154
    Participant

    Mouad

    Here my sources

    #61731

    Kunstflieger
    Participant

    Jisse154

    do you have it also as compiled .bin file?
    And how the relais are connected to the NodeMCU? Is it with a shiftregister?

    #63316

    SpikeyGG
    Participant

    Guys, 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…

    #63360

    litronas
    Participant

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

    #64054

    slick
    Participant

    Hello,

    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!

    #64100

    Ray
    Keymaster

    @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).

    • This reply was modified 1 month ago by Ray.
    #64113

    slick
    Participant

    Hi 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 best

    #64123

    Kunstflieger
    Participant

    Hello,

    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
    Kunstflieger

    #64173

    Ray
    Keymaster

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

    #64398

    polskifacet
    Participant

    Hi,
    Is it possible to easily run without the IO expander?

Viewing 23 posts - 126 through 148 (of 148 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums Comments, Suggestions, Requests Opensprinkler on ESP8266