I am studying the JSON and trying to configure an ESP8266 to control a water valve. #1900
-
Thanks first for the help.
I tried with this Json but it doesn't work: |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 5 replies
-
I think you should set the full tank switch to GPIO15, stop anyway, GPIO2 is not used in the 8266 circuit as much as possible, I attach a json, I hope it can help you. |
Beta Was this translation helpful? Give feedback.
-
This is my idea, simplifying the operation, in the HAA firmware, with the ESP8266 circuit GPIO2 is best not used. |
Beta Was this translation helpful? Give feedback.
-
I study it, there should be a way |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
The MCU used in the above circuit diagram is ESP8266 12F/S, and the MCU recommends ESP826612S. |
Beta Was this translation helpful? Give feedback.
-
Regarding some of the gpio you mentioned earlier, such as io0, io2, io15, io16 flashing HAA firmware on esp8266, these gpio have other functions, do not use it, so my json avoids these gpio. |
Beta Was this translation helpful? Give feedback.
I think this should be JSON that meets your requirements, I attach the circuit diagram reference.
{"c":{"o":0},"a":[{"0":{"r":[]},"1":{"r":[{"g":5,"v":0}]},"t":5,"s":0,"f0":[{"g":14,"t":0}],"f1":[{"g":14,"t":1}]},{"0":{"r":[{"g":5,"v":1}]},"1":{"r":[]},"t":5,"s":0,"f0":[{"g":12,"t":0}],"f1":[{"g":12,"t":1}]},{"0":{"r":[{"g":5,"v":1}]},"1":{"r":[{"g":5,"v":0}]},"t":20,"b":[],"s":5,"w":0,"d":0,"f0":[{"g":12,"t":0}],"f1":[{"g":13,"t":0},{"g":14,"t":1}]}]}