I'm working on an Arduino/esp32/rtc/lcd display project to control my pool 
solar heating array to open/close valves, turn the solar array or pool filter 
pump off/on based on solar availability and min filter hours needed using 
electric actuated valves, pump relays and temperature sensors.

I connected an esp32 com port to the Arduino com port. The esp32 is a socket 
server and talk to the remote pumps/sensors... having their own Arduino and 
esp32s to be told when to turn on/off, open/close valves and get senor info.

I have used AT commands(it's funny that AT the command format still exists) to 
test the esp32 and have the whole Arduino thing under control(never thought I'd 
have to learn C). It's time to connect them together. I know I could do a lot 
of this on the esp32 itself but all the sensors, relays, display, RTC, SD Card 
and large program might be too much to the esp32.

I want to be able to see the status and set parameters in the Arduino via the 
esp32 using a LiveCode desktop/mobile gui app talking to the socket server.

The Arduino on boot inits the esp32, put it into socket server mode. Waits for 
all clients(2-4 below) to connect then the Arduino fields/responds to all the 
clients. Starts events in progress. Clients are: 1) LC socket client app to see 
status/set params/ turn things on/off outside of scheduled events 2) Main Pool 
filter pump. 3) Solar array pump. 4) Water valves. The last 3 are in different 
locations using Arduinos and esp32 socket clients via wifi. The display on the 
master socket server shows temperatures(in/out solar and pool)

I will forward a port on my router to access the socket server when not on the 
local LAN. Encrypted of course.

I'm, trying to get the most solar heat to the pool with sufficient water 
filtering with minimum electric usage. I'm tired of doing all of this manually 
and also my electric cost has doubled in the last 2+ years and I'm trying to 
claw some of it back with this project. I guessing that the handling of network 
interruption events will be a challenge.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-----Original Message-----
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Douglas A. Ruisaard via use-livecode
Sent: Sunday, September 24, 2023 11:38 AM
To: 'How to use LiveCode'
Cc: Douglas A. Ruisaard
Subject: RE: Livecode and ESP32 microcontroler

Hery:
I am a livecode list "lurker" ... I read every posting but rarely respond.  I 
do most of my mini project development in the ESP environment but primarily use 
the Arduino development platforms.  I am abouit to embark on  getting involved 
with the Raspberry Pi platform which probably means learning Python (old dog, 
new tricks, etc).  I have developedd extensively in Livecode, though and still 
consider it my "go-to" environment when possible.  If there were a way to 
integrate Livecode with the ESP platforms, I'd be ALL IN.  I think others on 
this list will feel the same, so please share your preferences on how to 
exchange ideas.

Doug Ruisaard
Trilogy Software


-----Original Message-----
From: use-livecode <use-livecode-boun...@lists.runrev.com> On Behalf Of 
Heriberto Torrado via use-livecode
Sent: Saturday, September 23, 2023 8:01 AM
To: use-livecode@lists.runrev.com
Cc: Heriberto Torrado <htorr...@networkdreams.net>
Subject: Livecode and ESP32 microcontroler

Dear Livecode lovers,

It's been a while since I've had the opportunity to contribute to our 
discussion group, and I'm excited to share a new project I've been working on 
with Livecode Server.

In this project, I've been utilizing Livecode to establish communication with 
the serial port of a PC, leveraging Livecode Server to interface with an ESP32 
microcontroller. What I've discovered is that Livecode truly shines as a 
scripting language in this context. It offers exceptional productivity 
advantages compared to languages like Python, particularly when it comes to 
text manipulation tasks.

I wanted to take a moment to reach out and let you know that if you have any 
interest in microcontroller programming with Livecode or if you'd like to learn 
more about my project, please feel free to get in touch with me. I'd be more 
than happy to share insights, experiences, and collaborate on this exciting 
endeavor!

Best,

Hery





Heriberto Torrado
​Chief Technology Officer (CTO)
​Director de informática
Directeur informatique

*NetDreams S.C.*
http://www.networkdreams.net <http://www.networkdreams.net>


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to