B4R Question New to IoT

JacoMuller

New Member
Licensed User
Longtime User
I am a mechanical engineer, doing the odd programming in VB as well as VBA. I have also done a bit of PIC Basic programming on PIC micro controllers. So I am not new to programming but I have always done some flavour of BASIC. I now want to get into IoT as this is completely new to me. I was thinking the best of doing it is to use B4X since the same platform can be used on the the ESP32, PC and Mobile phone.

As a practical example. I have a pool computer managing the chemical levels in my pool. It has been working really well for the past 10 years, but now I want to add some functionality to my system (Not as in integrated part, only stand alone ESP32). I want to monitor the levels of chemicals in two plastic drums. I also want to monitor the water pressure between the pool pump and the filter, to determine if the filter needs cleaning. Finally, I want to switch on a relay that control the pool lights.

I found two options for the fluid level sensors. One option is just a none contact sensor with digital signal once the chemicals reach a set level. The other option is an analogue level sensor, made from stainless steel, to give an analogue signal of the level.

I want to receive alerts when either of the chemicals is running low. I also want to be able to monitor the levels remotely on my phone.

I bought the following kit to get me started: https://www.keyestudio.com/products...-for-arduino-scratch-30-graphical-programming

Obviously the supplied documentation uses the Arduino IDE with C++ and not B4R and they did not supply any code for the mobile phone side - just a compiled app form the App store.

Has anybody came across a similar or useful example to get me going?
 

JacoMuller

New Member
Licensed User
Longtime User
Assuming that the ESP32 is connected to a local network, then you can use MQTT or HTTP to send messages to a PC and then send a notification with Firebase to your mobile phone.
Thanks Erel

I can see, I will have to do much more goooooogling :). Like I said, I have done a fair bit of programming, mostly technical stuff, like automatic test benches and automate processes in Solidworks. I have also done a few a few Access databases but I have zero network and web experience, so when you talk about MQTT, I have no idea what you are talking about.

Obviously I was a bit naive when I thought my little Pool management project was a few days work :).

Regards

Jaco
 
Upvote 0

KiloBravo

Active Member
Licensed User
Check the share my creation section.
This one in particular seems to be very similar to what you want to accomplish and has a link to all the code.

 
Upvote 0
Top