Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using your code for inflatable hot tub pump unit controller. #4

Open
Hdale85 opened this issue Jun 4, 2018 · 42 comments
Open

Using your code for inflatable hot tub pump unit controller. #4

Hdale85 opened this issue Jun 4, 2018 · 42 comments

Comments

@Hdale85
Copy link

Hdale85 commented Jun 4, 2018

I bought an inflatable hot tub for cheap that had issues with the built in controller. I pulled the unit apart and found that the on board controller was pretty similar to standard hot tubs, everything was marked and laid out so I could use them all independently. So I'm trying to use a RaspberryPi to control it now. Your project seems to have pretty much everything I need I'm just curious if a few difference will require any coding changes as coding isn't really my cup of tea lol.

I'm currently using a Raspberry Pi B v2.1 although after I get this running I'm pretty sure I'm going to move it over to a Raspberry Pi Zero W since it has onboard wifi and such. Now the pump setup has 2 temp sensors on board which are analog, there are also 2 flow sensors that are just magnetic reed switches but it'd be awesome to implement them at some point for a safety so the heater can't turn on if there's no flow. For ADC I already purchased an ADS1115 16Bit I2C ADC+PGA board and I also purchased a 4 channel relay board that can do 120v 15amps each. Now the unit I'm converting only used 120v 12amp to start with so that should be plenty. The one thing I'm unsure of is if the ADC controller I got is going to make a difference with your code, would I need to change things? It just uses 3.3v, SDA, SCL and ground connections. This is the ADC I got https://www.adafruit.com/product/1085 for reference.

As for the connections on the pump/filter unit. There are 4 connections for 2 heaters, one connection to a transformer which provides 12v and provides 12V AC to the DC filter pump. Then there's a 120v air pump for the bubble jets. Also there's some sort of weird descaling wire that it had, it's just 2 layers of wire wrapped around the output side pipe. I'm not sure if I can ever do anything with that. Anyways that should give you the gist of what I'm dealing with here lol. Control wise I can't imagine much would be different as it's pretty much the same as a standard hot tub minus some extra pumps and stuff, and it's all 120v which that should only matter for the relays.

@Hdale85
Copy link
Author

Hdale85 commented Jun 4, 2018

I just tested the thermistors with my sousvide setup, and they are indeed 10k ohm at 77 degree just like yours. So that shouldn't be an issue. Just a matter of getting the ADC to work then. Since it's a different chip I'm just not sure it'll drop in place of what you used.

@itub
Copy link
Owner

itub commented Jun 6, 2018 via email

@Hdale85
Copy link
Author

Hdale85 commented Jun 6, 2018

Yeah those chips are like 4 bucks these days, I'm probably just going to order one I just liked this one because it was all included on a nice little PCB. If I use the same chip I shouldn't really have to change anything should I? Well other than trying to add in code for the flow sensors I suppose.

@itub
Copy link
Owner

itub commented Jun 6, 2018 via email

@Hdale85
Copy link
Author

Hdale85 commented Jun 6, 2018

Ok, last thing. I don't think I need the transistors or anything as I'm just using standard relays because all my stuff is 120v. So I should just need the MCP3008, Raspberry PI, and Relay board right?

@itub
Copy link
Owner

itub commented Jun 6, 2018 via email

@Hdale85
Copy link
Author

Hdale85 commented Jun 6, 2018

My relays take 5v, they also do 15a 120v for the high power side. It just says 5vdc for the input. I doubt they draw anymore than yours, but they also aren't solid state. My heaters are 120v as well so I don't really need the SPDT I don't think. The stock controller didn't use one anyways lol. I've been running the relays on my old PI for a couple days just playing with them and it doesn't seem to have any issues.

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

I've almost got most of this setup, but I'm trying to figure out what pins to use for the relays. Is the layout in the controller.py the pins you used? Just trying to use the same pins so I don't have to change anything, but those kind of look like sensors since the file description says adc setup or something like that.

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

Actually I think I figured it out. The only thing I'm not sure how to make work is the Bubbler thing, did you just leave the massage jets on all the time?

@itub
Copy link
Owner

itub commented Jun 11, 2018 via email

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

Yeah it's going somewhat ok lol. If my pump is single speed should I just connect it to the pump 1 high? or will it run the low on high if it's configured for single speed pump?

And yes I do believe I am the first as I looked all over the net trying to find someone that had done it since apparently the controller issue with these all in ones are pretty flaky and to my surprise no one had lol.

Your web interface is it all just auto control? Or are there buttons for turning things on and off? If there are buttons I could just connect the bubbler to the Pump 2 at that point. But kind of looks like it's all automatic. The bubbler in these are basically like the massage jets in traditional hot tubs lol. You generally don't want them running while heating as they cool the water significantly.

@itub
Copy link
Owner

itub commented Jun 11, 2018 via email

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

Ah yeah it should just be the one wire then. So then the high speed is just adding power to the second hot wire on the pump?

And yeah I meant on the web interface when you login can you control the pumps and what not individually.

@itub
Copy link
Owner

itub commented Jun 11, 2018 via email

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

It's just a low voltage ac pump has only 2 wires. I doubt I'll find a manual but I'll have to look into it.

@itub
Copy link
Owner

itub commented Jun 11, 2018 via email

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

Actually it runs off a transformer it's 12v 60hz ac from what I wrote down here lol.

@itub
Copy link
Owner

itub commented Jun 11, 2018 via email

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

Well it also supplies 12V dc out of the transformer which I plan to use for the Pi, so I'm going to switch the pump itself likely.

@itub
Copy link
Owner

itub commented Jun 11, 2018 via email

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

Yeah I have a buck converter for it. Trying to keep everything contained in the pump unit. Eventually my brother in law might help me start from scratch code wise so we can add a bunch of stuff specific to this setup.

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

Are there any packages I need to install for your code? I tried to run startup.py and it's complaining about a cherrypy import line.

@itub
Copy link
Owner

itub commented Jun 11, 2018 via email

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

Ah now I found it, it's python-cherrypy

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

Ok so guessing the other package is pigpio, there are some python gpio packages as well though.

@itub
Copy link
Owner

itub commented Jun 11, 2018 via email

@itub
Copy link
Owner

itub commented Jun 11, 2018 via email

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

Ah ok, found that one too

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

Hmm, now it's looking for something called twilio? i searched the database and the only result coming back is python-django-social-auth

@itub
Copy link
Owner

itub commented Jun 11, 2018 via email

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

Just this line?
from twilio.rest import TwilioRestClient
Or does the authentication stuff below it go with it?

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

Nevermind was a couple parts it seems.

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

Ok, so do I need to define pins somewhere? lol

https://pastebin.com/zn79TfBC

It popped on all the relays and then said that.

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

Oh I see it's looking for pyopenssl, might be one issue.

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

And some new issues, https://pastebin.com/w4y77cAF
I'm probably doing something wrong.

@itub
Copy link
Owner

itub commented Jun 11, 2018 via email

@itub
Copy link
Owner

itub commented Jun 11, 2018 via email

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

I don't plan on using it outside my network, at least not anytime soon lol.

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

Ok, apparently it may be looking for a config.json file for configuration.

@itub
Copy link
Owner

itub commented Jun 11, 2018 via email

@Hdale85
Copy link
Author

Hdale85 commented Jun 11, 2018

Yeah, I got past the SSL issue with the help of somebody. But now it needs the jsons for the login info I guess. did you not need those to login to yours?

@itub
Copy link
Owner

itub commented Jun 12, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants