Mocca
Posts: 7
Joined: Sun Jun 30, 2019 9:54 am

non programmer needs to build an all inclusive pool controller

Sun Jun 30, 2019 10:18 am

I am in the process of trying to build an all inclusive pool controller for my home. I'm pretty good at doing the hardware side of things but i am really struggling with the software. I am putting the post out there if somebody can assist me with the writing of this program. i'm just too far out of my depth to write one. Can any body help?

pcmanbob
Posts: 6420
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Help Required

Sun Jun 30, 2019 10:41 am

Hi.

If you want help with your program then you need to post the code and explain what your problem with it is.

when posting code please use code tags

Add [code] at the top

code goes here

and [/code] at the bottom.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

Mocca
Posts: 7
Joined: Sun Jun 30, 2019 9:54 am

Re: non programmer needs to build an all inclusive pool controller

Mon Jul 01, 2019 3:32 am

I wish I new where to start. I'm a complete newbie at this and haven't done any programming in decades. I have all these ideas but was hoping that somebody can help me make it a reality. I can possibly pay somebody for there time if it's allowed. Any help would be much appreciated.

pcmanbob
Posts: 6420
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: non programmer needs to build an all inclusive pool controller

Mon Jul 01, 2019 10:08 am

Mocca wrote:
Mon Jul 01, 2019 3:32 am
I wish I new where to start. I'm a complete newbie at this and haven't done any programming in decades. I have all these ideas but was hoping that somebody can help me make it a reality. I can possibly pay somebody for there time if it's allowed. Any help would be much appreciated.

If you want to pay some one to help you do this then I suggest you post in the wanted section of the forum with contact details etc.

If you want to try doing it yourself then first I suggest you learn how to use the gpio to connect to various devices like LED's, switch's etc,
the physical computing guide is a good place to start

https://projects.raspberrypi.org/en/pro ... -computing

once you have got some experience with that look at your project and break it down in to smaller parts, like reading a temperature or turning on a pump, then you can tackle each of these smaller parts individually and eventually combine all of them in to your final program.

Don't expect this to be a quick or simple project , however long you think it will take you , double it and add 2 months for fine tuning.

good luck with your project, but please stay safe when working with mains electricity always consult a professional electrician.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

ElEscalador
Posts: 671
Joined: Tue Dec 15, 2015 4:55 pm
Location: Detroit, MI USA
Contact: Website

Re: non programmer needs to build an all inclusive pool controller

Mon Jul 01, 2019 1:52 pm

Start with identifying what parts you need to control. I'm going to guess...pump..maybe heater? No idea what else. Those would most commonly be turned on and off, rather than needing varying signals to control. This would most commonly be done with relays. So you need to learn how to control a relay with raspberry pi. Which is remarkably similar to blinking an LED...so theres a place to start. Then you need to learn how to read whatever conditions would trigger the devices. Would that be time? temperature? A manual switch or button someone presses? Once you learn how to read those and you can turn a relay on and off, then the software is just placing the pieces you learned in individual "functions" and a loop that calls those functions either to test a condition for an "if statement" or as a result of the "if condition" being true. like:

Code: Select all

if(tempurature < 70deg)
{
heater_on();  
}
else
{
heater_off();
}
This calls separate blocks of code (functions) either called heater_on or heater_off that does the thing with the relay. My example is C, but I suggest Python for a beginner. I just don't speak python very well to write an example, but the idea is the same. 1. keep testing conditions. 2. do a thing if a condition is met, otherwise undo the thing. 3. keep checking all the conditions. Forever.
My Autonomous Robot Project and a few of my other projects below.

https://lloydbrombach.wordpress.com/

gordon77
Posts: 4072
Joined: Sun Aug 05, 2012 3:12 pm

Re: non programmer needs to build an all inclusive pool controller

Mon Jul 01, 2019 2:42 pm

If you have designed the hardware then post details and then someone maybe able to assist with software to suit.

Mocca
Posts: 7
Joined: Sun Jun 30, 2019 9:54 am

Re: non programmer needs to build an all inclusive pool controller

Tue Jul 02, 2019 7:43 am

Thanks pcmanbob. I have been playing with bits and pieces for a couple of months now. I can cut and paste programs and do minor changes to gpio pins. I sort of understanding a little of the python language. I don't know how to combine them into one master program and have access to control it via an app or webpage. That's where I need the help I suppose.

User avatar
IOTON
Posts: 71
Joined: Tue Jul 02, 2019 1:00 pm
Contact: Website

Re: non programmer needs to build an all inclusive pool controller

Thu Jul 04, 2019 3:16 am

just use node-red...

Mocca
Posts: 7
Joined: Sun Jun 30, 2019 9:54 am

Re: non programmer needs to build an all inclusive pool controller

Fri Jul 05, 2019 9:36 am

Wow. Node red looks fairly easy to navigate around. So, here is a list of what I have already done and how I wish to attempt to control them.
1. I have tree float level switches in my spillway pit at the end of my pool. the lower one is currently only used for turning an external light on when the water level gets too low. I would like this to send me a notification on the dashboard. being an analog signal, I would need to run it through an Arduino module.
2. The middle float switch controls the level of water. currently through a relay and some circuitry to slow the switching time down. Also, would need to be run through the Arduino module so that when tripped, it would run for 30 seconds then off for 90. if float level still low it repeats. A maximum of 10 times over an hour period before it defaults to the off position and sends a notification.
3. Third float switch is for a water level that’s to high. (excessive rain). Currently turns a light on. Would like it to switch the auxiliary pump on, open a solenoid via a relay which puts the water into the wastewater. Runs for 90 seconds, off for 5 minutes. then repeat if necessary. maximum of 10 times in an hour before it defaults to the off position and sends a notification.
4. I have 12 deck jests around my pool all controlled by individual solenoids. These will be swathed buy the connected relay board to the raspberry pi. I have six written programs that switch the relays on and off on different sequences at present and am working on a few more, but I would like to be able to select them remotely from the dashboard. The programs would also need to turn the pump on.
5. I have a waterfall feature that is controlled by a solenoid and then to the relay board. On and off on this one only as well as turn the pump on if its not already on with the deck jets.
6. I have six water temp sensors. They are three wire, so I assume digital input. Display on the dashboard. I will route these through a raspberry pi expansion board.
7. I have a weather station that my daughter is building on a separate pi module. Once working, I hope to integrate it.
7. I have two temp and humidity sensors that I would like to put in. one inside the pump shed and one outside.
8. I have a PH sensor that I would like to include. I believe that it connects to the Arduino module. Information displayed on the dashboard.

Some of these I should be able to do myself once I become familiar with the node red program. I do plan on doing more upgrades at a later date date as I get better at it, I hope.

Mocca
Posts: 7
Joined: Sun Jun 30, 2019 9:54 am

Re: non programmer needs to build an all inclusive pool controller

Fri Jul 05, 2019 9:36 am

Wow. Node red looks fairly easy to navigate around. So, here is a list of what I have already done and how I wish to attempt to control them.
1. I have tree float level switches in my spillway pit at the end of my pool. the lower one is currently only used for turning an external light on when the water level gets too low. I would like this to send me a notification on the dashboard. being an analog signal, I would need to run it through an Arduino module.
2. The middle float switch controls the level of water. currently through a relay and some circuitry to slow the switching time down. Also, would need to be run through the Arduino module so that when tripped, it would run for 30 seconds then off for 90. if float level still low it repeats. A maximum of 10 times over an hour period before it defaults to the off position and sends a notification.
3. Third float switch is for a water level that’s to high. (excessive rain). Currently turns a light on. Would like it to switch the auxiliary pump on, open a solenoid via a relay which puts the water into the wastewater. Runs for 90 seconds, off for 5 minutes. then repeat if necessary. maximum of 10 times in an hour before it defaults to the off position and sends a notification.
4. I have 12 deck jests around my pool all controlled by individual solenoids. These will be swathed buy the connected relay board to the raspberry pi. I have six written programs that switch the relays on and off on different sequences at present and am working on a few more, but I would like to be able to select them remotely from the dashboard. The programs would also need to turn the pump on.
5. I have a waterfall feature that is controlled by a solenoid and then to the relay board. On and off on this one only as well as turn the pump on if its not already on with the deck jets.
6. I have six water temp sensors. They are three wire, so I assume digital input. Display on the dashboard. I will route these through a raspberry pi expansion board.
7. I have a weather station that my daughter is building on a separate pi module. Once working, I hope to integrate it.
7. I have two temp and humidity sensors that I would like to put in. one inside the pump shed and one outside.
8. I have a PH sensor that I would like to include. I believe that it connects to the Arduino module. Information displayed on the dashboard.

Some of these I should be able to do myself once I become familiar with the node red program. I do plan on doing more upgrades at a later date date as I get better at it, I hope.

User avatar
IOTON
Posts: 71
Joined: Tue Jul 02, 2019 1:00 pm
Contact: Website

Re: non programmer needs to build an all inclusive pool controller

Fri Jul 05, 2019 4:06 pm

You will control it easily with node-red. Just install it and try. Use install script, and say yes about install raspberry specific nodes on install.
If you will have any problems - you can ask on the node-red forum.
It's IBM team, great guys.

OmnIoT
Posts: 6
Joined: Mon Aug 13, 2018 8:29 am

Re: non programmer needs to build an all inclusive pool controller

Mon Jul 08, 2019 4:26 am

It sounds like you have a lot going on there. I'm not super familiar with Node Red but you might also take a look HERE at the OmnIoT SoftHub. It allows you to do a lot of the stuff you seem to want to do, again with no programming. You can send and receive MQTT messages to/from any third party cloud based dashboard that provides an MQTT interface. Turning on/off and monitoring GPIO's is fairly trivial as well and there are all types of timers supported (e.g. one-shot, repeating, relative, or absolute time of day). I'm the lead dev so happy to help you if you are interested. There are also lots of video's on the youtube channel. There's a bit of a learning curve but really it's actually a pretty straight-forward event based platform. Let me know if you have any specific questions or I can point you to relevant examples... Thx

PS - the MQTT functionality is actually new so it's not covered on the main website yet, but there's a hackster.io project HERE that covers it fairly well (and you'll need to download the beta version of the SoftHub for MQTT as well).

Mocca
Posts: 7
Joined: Sun Jun 30, 2019 9:54 am

Re: non programmer needs to build an all inclusive pool controller

Sat Jul 13, 2019 4:50 am

So, I have been playing around with Node red a little. I can get dashboards up and receiving data foam a temp/Humidity sensor after watching a YouTube tutorial. it works alright but a little locked at the dashboard. i really want to be able to customize the dashboard with a background picture of my pool. i couldn't find a way to do this, prob just me. Still looking for other suggestions....

OmnIoT
Posts: 6
Joined: Mon Aug 13, 2018 8:29 am

Re: non programmer needs to build an all inclusive pool controller

Sun Jul 14, 2019 9:45 am

I can't really remember which one it was but below is a list of dashboard providers I tested with using the SoftHub. I'm assuming node-red uses MQTT so might be compatible with the same list? Anyway, I can't remember which ones allow it (background jpg's) but I'm sure that at least a couple did. Most of them are either free or free to demo. Anyway, good luck!

MS Azure PowerBi
IBM Watson IoT
Amazon AWS IoT
ThingsBoard.io
Ubidots
Cayenne
AdaFruit IO
BeeBotte
AllThingsTalk
Tago.io
Tinamous

User avatar
IOTON
Posts: 71
Joined: Tue Jul 02, 2019 1:00 pm
Contact: Website

Re: non programmer needs to build an all inclusive pool controller

Mon Jul 15, 2019 6:44 am

Mocca wrote:
Sat Jul 13, 2019 4:50 am
So, I have been playing around with Node red a little. I can get dashboards up and receiving data foam a temp/Humidity sensor after watching a YouTube tutorial. it works alright but a little locked at the dashboard. i really want to be able to customize the dashboard with a background picture of my pool. i couldn't find a way to do this, prob just me. Still looking for other suggestions....
No problem, you need to hire a man who familiar with web development (html, js, angular) it's simple.

Search Nest Thermostat for node-red, and look, how it's made.

User avatar
B.Goode
Posts: 8045
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: non programmer needs to build an all inclusive pool controller

Mon Jul 15, 2019 7:13 am

No problem, you need to hire a man who familiar with web development (html, js, angular) it's simple.

A woman might be able to do it as well...


And this has already been posted in the Wanted sub-forum and attracted offers of paid assistance. https://www.raspberrypi.org/forums/view ... 1&t=245577

Return to “Other projects”