epgodoy
Hello guys,
I am seeing a lot of improvements on the ESP32 library compatibility for the Arduino IDE lately.
As the ESP32 provides a lot of improvements against the ESP8266 mainly in terms availability of ADCs and DAC, I was wondering if Thiago or anyone in the community has already tried to run the OpenPLC on the ESP32.
Would it be compatible at least for the IO available on the ESP8266?
If no, how big would be the work in order to make the OpenPLC compatible with the ESP32?
Thanks.
Reply 0 0
thiagoralves
As I don't have an ESP32 board, I can't be of much help for now. However, if ESP32 is already compatible with the Arduino framework, it shouldn't be too hard to make it work with OpenPLC. If you want to use the same number of I/Os that's are already available on the ESP8266, there is a great chance of the ESP8266 firmware to just work on the ESP32 without any modifications. However, if you want to take advantage of the extra I/O points available on the ESP32, then both the firmware and the ESP8266 driver on OpenPLC must be modified.
Reply 0 0
Sarper ONAL

Hi,

I check the firmware, it is not a big deal to modify it, but what about the driver? Do we have access to the driver code? can I modify the driver for ESP32 Hardware?

Reply 0 0
thiagoralves
The ESP8266 driver is located at /OpenPLC_v2/core/hardware_layers/esp8266.cpp. You can modify it as much as you need, just remember to recompile OpenPLC once you're done (run ./build.sh), or your modifications will not hold.

These threads might help you out as you modify the code:
https://openplc.discussion.community/post/change-arduino-pin-allocation-8326119?highlight=arduino+pins&pid=1294183935

https://openplc.discussion.community/post/max-number-of-digital-io-pins-supported-8298913?highlight=hardware+layer&pid=1293870224
Reply 0 0
CoraDias
Hi...as per my knowledge if ESP32 is already compatible with the Arduino framework, it shouldn't be too hard to make it work with OpenPLC. If you want to use the same number of I/Os that's are already available on the ESP8266, there is a chance of the ESP8266 firmware to just work on the ESP32 without any modifications.

smt circuit board assembly
Reply 0 0
Reply