Kamikaze_PLC
Evening folks
 
I have been approached to build a simple level controller to start and stop a pump looking at an LMT121. I decided to try it out on an esp32 and have built everything into a little JB with interfacing circuitry and it is looking good. I was initially going to just platformio it but thought to maybe try it with OpenPLC. I was going to get a bluetooth app going as well to allow the user to change on and off delay timer set-points for the level control. I have done so in the past making use of MIT inventor APP builder.
 
Is it possible to write a bit of a hybrid setup with OpenPLC running the function block side of things but then write a custom bluetooth .h and .cpp handler and add it to main.cpp additionally somehow outside of the OpenPLC compiler maybe.
Or can OpenPLC handle the bluetooth side of things in an ESP32 natively?
 
Thanks in advance
Reply 0 0
thiagoralves
Yes. Just click on the plus grey icon ok the left panel and select “Arduino Extension”. You can write any arduino-compatible code in there which will run alongside your PLC program. Just don’t use any delay() calls as that will mess up the timing for the PLC runtime.
Reply 0 0
Reply