arijav / AriloSprinkler-Firmware

OpenSprinkler Unified Firmware for OpenSprinkler, OpenSprinkler Pi, and OpenSprinkler Beagle.
http://www.opensprinkler.com
GNU General Public License v3.0
15 stars 2 forks source link

use ESP32 local PIN for the 8 channel #21

Closed garudaonekh closed 2 years ago

garudaonekh commented 3 years ago

Hi, ESp32 has enough pin for the 8 channels. Can you share me how to do that?

arijav commented 3 years ago

Hi, in my board there are not enough pings for 8 channels due to the interface pins to the Lora E22 module. You can however create a board based on my design, removing the Lora module, the port expander and driving the triacs directly with the ESP32. If you create such a board have a look to the SW from J.Charer (https://github.com/JaCharer/OpenSprinkler-Firmware-ESP32port) as he is driving the outputs with ESP32 pins and no port expander

garudaonekh commented 3 years ago

Yes, i saw his code but it looks like there's no support for MQTT in his code, which is important. Yes, i plan to add NRF24. Are you sure that not enough PIN for 8 channels?

arijav commented 3 years ago

In my board there is no place for sure. Below you can find a link to the table where you can see the use of each ESP32-WROOM pin (column G):

https://docs.google.com/spreadsheets/d/1rRuH_Wl1ZeBDJMySVSdHYPLP0izNxznpmXPF5bGpdCk/edit?usp=sharing

garudaonekh commented 3 years ago

i update the front end app code because it is hardcoded in fhe main.js and the GPIO pin is working but not sure if this is the proper way.