The klx Way!

SamWE19

Well-Known Member
Looks similar to programming I ive done before from quick searching. Simple to create multi threads. Gonna start looking into what hardware I need and start building this in spare time
 

SamWE19

Well-Known Member
Well a days research and I’ve got the following list of things I want my raspberry pi to control.

It’s a lot... not sure wether I can get a single raspberry pi to do all this or if I need multiple yet


Co2 sensor
Co2 burner relay
Humidity sensor
Air Temp sensor
Flower res Fill Water pump relay
Flower res Drain water pump relay
Solenoid Valve 1 relay
Solenoid Valve 2 relay
Solenoid Valve 3 relay
Electric heater relay
Dehumidifier relay
Humidifier relay
Flower res Water temp sensor
Flower res chiller coil solenoid relay
Mother res water temp sensor
Mother res chiller coil solenoid relay
Mother res fill water relay
Mother res drain water relay
Clone res water temp sensor
Clone res chiller coil solenoid relay
Clone res mister relay
Foliar feed pump relay
AC fan relay
Mother res ec sensor
Flower res ec sensor
Mother res ph sensor
Flower res ph sensor
 
Last edited:

klx

Well-Known Member
Does a single raspberry pi run absolutely everything?

Havnt looked into raspberry pi yet only arduino. Wonder if it’s better. I know when I was looking into ardunio an issue I was constantly running into is not enough output ports and needing to use extenders
Really envious of anyone implementing microcontrollers. My experience is limited to basic arduino timers coupled to those single songli relays similar to what you posted above. The thought of recording environmental stats is appealing.
Well a days research and I’ve got the following list of things I want my raspberry pi to control.

It’s a lot... not sure wether I can get a single raspberry pi to do all this or if I need multiple yet


Co2 sensor
Co2 burner relay
Humidity sensor
Air Temp sensor
Flower res Fill Water pump relay
Flower res Drain water pump relay
Solenoid Valve 1 relay
Solenoid Valve 2 relay
Solenoid Valve 3 relay
Electric heater relay
Dehumidifier relay
Humidifier relay
Flower res Water temp sensor
Flower res chiller coil solenoid relay
Mother res water temp sensor
Mother res chiller coil solenoid relay
Mother res fill water relay
Mother res drain water relay
Clone res water temp sensor
Clone res chiller coil solenoid relay
Clone res mister relay
Foliar feed pump relay
AC fan relay
Mother res ec sensor
Flower res ec sensor
Mother res ph sensor
Flower res ph sensor

My prototype is here. https://www.rollitup.org/t/mycodo.993710/
I have been using it in production for nearly a year and the only issue I have had has been 2 failed relays. The Pi and software itself run perfectly. You need to know some Python to get the most out of Mycodo. I am currently building a new one but this time using Home Assistant as it is more flexible and have it running using MQQT and also can use Node Red for the automation which is nice too.

Edit: Screenshot of the environment, can see when lights come on at 06:00

1592773396287.png

I think you will be fine to run that many sensors and relays on one Pi. The Pi 4 has a decent proceccor and 4GB Ram. You may need a breakout board of some type as you might run out of GPIO ports for the relays but thats not too hard. Home Assistant willl also support many more inputs (sensors etc) that Mycodo as well.
 
Last edited:

SamWE19

Well-Known Member
Yes no feedings at lights off but I feed right at lights on.
Yeah I’ve been reading a lot about it.

I think the issue I will have is sensors are analogue and id have some sensors 10m away from pi, 9m away 5m away etc and they don’t work over that distance from what I’ve read

I may have to look into if it’s possible to use cheaper ardunios which alll sync to the pi?
 
Last edited:

klx

Well-Known Member
Yeah I’ve been reading a lot about it.

I think the issue I will have is sensors are analogue and id have some sensors 10m away from pi, 9m away 5m away etc and they don’t work over that distance from what I’ve read

I may have to look into if it’s possible to use cheaper ardunios which alll sync to the pi?
You could run multiple arduinos, I know with home assistant it is possible to go that route. HA is good like that, lots of flexibility.

I will be going Wifi for all my sensors. I have temp / humidity already running with a Sonoff TH10 flashed with Tasmota over MQQT.

1592775484051.png

For CO2 there is a good cheap option that uses ESPHome and home assistant:


This is why I am going HA for my new build, the community support is huge
 

SamWE19

Well-Known Member
You could run multiple arduinos, I know with home assistant it is possible to go that route. HA is good like that, lots of flexibility.

I will be going Wifi for all my sensors. I have temp / humidity already running with a Sonoff TH10 flashed with Tasmota over MQQT.

View attachment 4602124

For CO2 there is a good cheap option that uses ESPHome and home assistant:


This is why I am going HA for my new build, the community support is huge
Yeah after a quick search after you first mentioned it earlier today I decided home assistant was best option.

The arduino would just be the sensor right? Providing the data to the pi and the pi does the computation for eg co2 < 1200 turn on burner
 

klx

Well-Known Member
Yeah after a quick search after you first mentioned it earlier today I decided home assistant was best option.

The arduino would just be the sensor right? Providing the data to the pi and the pi does the computation for eg co2 < 1200 turn on burner
Yes, multiple ways to do it. Usually I need to choose the option that my limited skills can achieve lol
 

SamWE19

Well-Known Member
Yes, multiple ways to do it. Usually I need to choose the option that my limited skills can achieve lol
Yeah I have some programming experience from uni years ago but haven’t done anything since

Just figured I’d start breaking down the list into sections where the sensors will be close by and I got

Air environment ardunio
Co2 sensor
Co2 burner relay
Humidity sensor
Dehumidifier relay
Humidifier relay
Air Temp sensor
Ac relay
Electric heater relay

But then I think to myself what’s the point of home assistant if that arduino controls the environment?
 

klx

Well-Known Member
Yeah I have some programming experience from uni years ago but haven’t done anything since

Just figured I’d start breaking down the list into sections where the sensors will be close by and I got

Air environment ardunio
Co2 sensor
Co2 burner relay
Humidity sensor
Dehumidifier relay
Humidifier relay
Air Temp sensor
Ac relay
Electric heater relay

But then I think to myself what’s the point of home assistant if that arduino controls the environment?
Web interface, access when away from your LAN, logging, charts, customizable dashboard, community support, open source etc is why I like it. You could go a different route for sure, its personal preference in the end.
 

SamWE19

Well-Known Member
Web interface, access when away from your LAN, logging, charts, customizable dashboard, community support, open source etc is why I like it. You could go a different route for sure, its personal preference in the end.
Fair point. So the ardunio would do the controlling but will have to somehow create a login via WiFi for the home assistant to control the ardunio
 
  • Like
Reactions: klx

Airwalker16

Well-Known Member
You could run multiple arduinos, I know with home assistant it is possible to go that route. HA is good like that, lots of flexibility.

I will be going Wifi for all my sensors. I have temp / humidity already running with a Sonoff TH10 flashed with Tasmota over MQQT.

View attachment 4602124

For CO2 there is a good cheap option that uses ESPHome and home assistant:


This is why I am going HA for my new build, the community support is huge
Is home assistant something I just haven't heard of or are you meaning Home automation?
 
  • Like
Reactions: klx

klx

Well-Known Member
Is home assistant something I just haven't heard of or are you meaning Home automation?
Yeah exactly its just using home automation tech to control a grow room. Instead of turning your kitchen light on and off you are turning your grow lights on and off etc.
 

klx

Well-Known Member
What would you say the issue with the leaves is on your last photo?

I got that recently and couldn’t work out if it was a potassium def or nute burn. Looked a bit similar to both

But my leaves looked exactly like yours with the serrated edges on sides of leaf blade browning
Nute burn. Always happens when running multiple strains some are heavier feeders some lighter.

Edit: For test runs I always start out at ~1.0 EC then go to 1.4 EC when I boost the PK. Thats usually when you get the burn but not always, some plants lap it up. Then just back off again for the remainder of the run tapering off to virtually plain water by the end. Thats how I do it anyway for seed plants.
 
Last edited:
Top