segalion / raspipool

Swimming Pool Automation Systen with Raspberry Pi + Home Assistant
MIT License
393 stars 73 forks source link

Questions #5

Open justinladwig opened 4 years ago

justinladwig commented 4 years ago

Hi, I have a few questions. 1) How do I connect the paristaltic pumps and 2) which specifications should these pumps have. 3) Does this project also work with Raspberry Pi Zero W?

Thank you for this nice project. Justin

MimbaMonkeyHouse commented 4 years ago

I also would love to know the answers for questions 1 & 2. @segalion can you please chime in.

For question 3: Nope, I would not recommend using a Pi Zero to host any Home Assistant instance. It is actually not recommended on the documentation for Home Assistant...

justinladwig commented 4 years ago

Hello again,

could you tell me how you connect the second atlas scientific sensor to the Raspberry Pi? On the sensor connection shema you connect it to Pins 36 and 37, i.e. GPIO 16 and 26. As far as I know, the Raspberry Pi should only have a UART on pins 8 and 10, i.e. GPIO 14 and GPIO 15, which the other sensor is already connected.

I hope you'll reply. Justin

Jackk16 commented 4 years ago

Hi Segalion,

Very promising solution! I am getting prepared to try your solution for a automated pool control. Like the other questions its hard to find how to connect the peristaltic pumps. Could you point out how that works, perhaps add it to the connection diagrams?

Regards, Jack

segalion commented 3 years ago

Sorry, I think too I have to work more on documentate the injection part.

Even more, I think I have to make a global rewrite of all project. Could be great to include some hard-internal-parts passed to a custom component core, to change the illegible jinga2 parts for elegant python code.

About some questions: The peristaltic: I am working with cheap 12V peristaltic pumps, but I have to advert about muritatic acid, that can damage things. Two recomendations:

  1. Put the peristaltic muriatic injection pump ( and all tubes) in a place that any leakage can damage any more.
  2. Dilutes the acid in half to extend the life of the products more years

The Raspberry Pi Zero W: I think Its more than enough to run HA and all important parts (EZO and wifi). Take into account that HA dont recommend Pi Zero for "general purpose", but for run only this project I think is more than enough. My first versions was with RPI1!!!, and takes a long to start, and low speed web-browsing, but worked perfect. Now, I am running a RPI3-1Gb, that has so low CPU and memory usage that its a pitty not to use for more things...

segalion commented 3 years ago

Hello again,

could you tell me how you connect the second atlas scientific sensor to the Raspberry Pi? On the sensor connection shema you connect it to Pins 36 and 37, i.e. GPIO 16 and 26. As far as I know, the Raspberry Pi should only have a UART on pins 8 and 10, i.e. GPIO 14 and GPIO 15, which the other sensor is already connected.

I hope you'll reply. Justin

RPI2-3 has a second "limited" UART. To enable it, you have to...

Edit rpi config file with: sudo nano /boot/config.txt

including this:

force_turbo=1
enable_uart=1
dtoverlay=pi3-disable-bt
# sencond UART1 /dev/ttyS0 
dtoverlay=uart1,txd1_pin=32,rxd1_pin=33

Take into account that with rpi3, bluetooth uses the UART, so you have to disable it.

I think tha RPI4 has even 4 complete UARTs.