Hydroponics project with Rpi PH EC and the works (In progress)

Well I ran into some problems with my truck and sort of got distracted from my project. lol Then I wasn’t paying attention and killed my seedlings I had going… I really need to maybe make up something for automating keeping my seedlings alive first. :frowning:

Blockquote Killed my seedlings I had going… I really need to maybe make up something for automating keeping my seedlings alive first. :frowning:

Done exactly this myself :roll_eyes:

Have been tinkering in spare time for 6 months on this and seem to be working from the end backwards!

Working on similar project will post some stuff at some point, mine is currently based on arduino hardware, will keep my eye on one this as I did start the project with a Pi and then moved across to arduino, can I ask what is the main reason you opted for the pi? Local server or something else?

My system should do similar features to yours, I have many parts working but still many to do - what are you using for EC/TDS sensor, I have found getting one for sensible money difficult. PH was simple/cheap enough… Just building the ‘doser’ module at the minute, already have the environment and feed stuff sorted seems to be working okay

Cheers

I opted for the PI because it seemed like it would be more able to do complex things with it and I could write the code in python. The other reason was just because I already had a PI board laying around collecting dust. I ended up parsing out some of the functions to mini Arduino boards. So yeah maybe it been better just to use a single Ardunio board… Shrug…

As for the EC/TDS probe I used this one below because I found a sweat deal on a used one for $20 now its like over $100. I wonder if they had messed up on the price because it went up not long after I bought mine. lol I just took the connector off and routed it to a BNC connector cable. Luckily they give you a sheet with the pin-out, and I didn’t need to use the temperature sensor in it.

Cheers for the reply, be interesting to see how it turns out for you, you definitely have a better understanding of these things than me, and a nice workshop :wink:

I am not familiar with python so probably limits me on the Pi front.

That sensor was a sweet deal. I can’t find anything for less than $100 either :persevere:

Did you use a module or link directly to Pi - Meaning was this simply a case of analog reading between two probes or is some circuitry involved in the middle - most the PH and EC probes I have seen seem to have a separate module with them.

I have seen some DIY versions that use Eurostyle plugs as the probe - unsure on accuracy though.

I’ll keep my eyes on the project, at my end I’m hoping to get something up and running and then open it up to an opensource approach and work with a group to improve etc. These controllers should be available to people. Commercially they are just extortionate!

:+1:

If I understand what your wondering correctly I used the Atlas EC module it was about $58 on Amazon. You could do a DIY one probably for a lot cheaper, but yeah not sure how accurate it would be etc.

Yeah I did come across at a controller like this one that looked like it was open source… https://thegreenautomation.com/documentation/ . The software was fairly complicated to setup the way they did it. I had to install visual studio and other add on stuff to get it to compile. I sort of gave up on it after I decided to to use my PI instead.

Well life has tossed me a bit of a curve ball lately causing much distraction and stress. So the project sort of got put into idle mode… Hope I can get back to doing some stuff on this again. I wasn’t too far off at least getting everything put together… :frowning:

I just thought I stop by and say sorry folks I got distracted this summer and I getting married soon. Needless to say I haven’t worked on the project for a while now. I hoping that I get back to it this winter when things settle down a bit.

I have been working on doing the same thing for the past few weeks piecing it all together.
water temp
humidity/air temp
light meter
8 relays
ph meter
2 pumps ( just got to this they aren’t working/configured yet )

how did you get the pumps working with the pwm since they pi 2.0 from cayenne doesnt support pwm or a2d anymore?

I didn’t show that maybe very clearly but If I follow which pumps your talking about right. I just used a arduino pro micro board ( it was a knock off, but something similar) to act as a bridge (using a protocol similar to the atlas modules) between the rpi and the dosing pumps. I didn’t end up using pwm on them I just have it setup so you can tell it to turn on the dosing pump for so many seconds.

hey I just noticed they have that EC probe on sale again for $32 dollars… if anyone’s looking for one its a good deal. Just need to change the connector.

@pihydro.0001 you can control all this and send/recieve data using cayenne MQTT python library.
if you want i can help you out with it.

where is it on sell at? PM me the link please.
I was thinking about doing this. with the timed seconds per motor with the relay’s for the pumps to be on. I’m just scared to actually use cayenne for that since sometimes I click the on/off button and it might take 1 second or it might take 5-6. with a motor running that would be a big difference esp on a 20 gallon DWC tank.

What I really want is to be able to add buttons/tiles that execute scripts\path on the pi that would be amazing I’m going to look into that tonight.

you dont have to be scared. As whether it is 1 sec or 5-6 second, it is the time for the data to reach your device. So when this data is reached start your motor.

have a look at this.

Hi,
congrats for you greenhousse project. I try to do the same since a cup of weeks. I tried alone in my corner. I found this by chance and decide to made a connection and it’s great. I follow you at star date 1807.11 :smiley:
Thanks for your share.

1 Like

hi,
Great project,
i’m new to cayenne. would it possible to share the code? or is uploaded somewhere

the code is not provided by the user but you it is very easy to develop one using cayenne. Which device are using arduino or raspberry pi. Have you got all the sensors needed for the project?

I’m used to Raspberry, but auduino could be use if easier. I have the probes three atlas with ph, orp and ec via i2c. and the a couple of temperature sensors and 8 relay outputs.
The main interest for looking at the code would be to see how:
The interfacing to the altas probes the which is my first task is done, thereafter how to go from a probe reading to calculating volume chemical (to reach ideal again) which in turn should give a certain on time on a relay output for the dose pumps.
Then i have some simple, if, then and time, programming of other outputs and displaying which look simple to do with Cayenne. Which by the way is quite a need tool :slight_smile:

Hey glad your interested in my project. I am very sorry I didn’t put the code in here. So I got laid off last year and I ended up having to move. So life has been a total mess for a while now. I’m not sure when I will get back to doing anything on this project. I will try to see if I have any of the code around. I think it might have ended up on one of my PCs that still in my storage place.

1 Like

Sorry to hear of all your problems, hope things are better now, if you get around to finding some time finding the code would be great.

1 Like

Well thanks for all the interest and Sorry i dropped the ball on this project. At the moment I was looking at my aquarium project so depending on what happens there I might start posting for that. I do want to get back to doing a hydroponics one based on the card I made more recently.