This is yet another greenhouse project with cobbled together components. The main goal is to have a semi-automated system to water plants in a greenhouse as needed. We are completely off grid.
The first iteration of the controller will be more or less a Frankenstein - I have a lot of old acquired parts that were never put to full use. So, hopefully, I will make all the mistakes so you don't have to.
Maybe there will be a multifunction controller in the future. This project is also attempting to solve a data flow / notification problem I currently have in my current off grid system. I am hoping this is solved with use of MQTT and Node-Red.
Designing a Multifunction (Greenhouse) Controller
I've always wanted my own weather station too. So, when I started in on Arduino, I picked up a SparkFun Weather Shield (DEV-12081) a while ago. This part was designed for the Red Board / Uno. We will be remapping the pins so this shield works with the Mega 2560.
This project will use an Electron in the greenhouse more for backup communication over the cellular data airwaves. The primary data pathway will be greenhouse/Xbee to Xbee/Photon which will attach to the home wireless. The house wireless is too far from the greenhouse otherwise I could make this simpler.
I will provide a complete component list later. A general component list for now:
- Solar panel; MorningStar TS-45; 12VDC battery for the greenhouse (main power source)
- B00Q48BRFO: DROK® LM2596 Adjustable Voltage Regulator DC (power to Mega 2560)
- Particle Relay Shield; provides power to Particle Electron
- Some sensors from the Particle Electron Kit (in particular soil moisture)
- SparkFun Weather Shield (DEV-12081) + sensors
- Arduino Mega 2560
- DripWorks: Individual Plant Irrigation Kit - Medium (Without Timer) (KIP2)
- WHALE FW0814 WaterMaster providing the 30 PSI to the drip irrigation (12VDC pump)
- Particle Electron to allow access/monitoring as needed by cell data
- Particle Photon to provide the bulk data flow to the internet instead of using cell data
- The backup data path here would be to go I2C from the Photon to a Beagle Bone Black or Raspberry Pi.
- XBee 2mW RPSMA - Series 2 (ZigBee Mesh); to provide communication between the greenhouse and the house
- I2C(Wire) will be used to pass data between devices as needed
Should be fun and hope to share code, libraries and experiences along the way. All the hardware is here and the code is slowly coming together. Time is the issue! The first part is to get the pump automated. The second part is how to optimize the data flow/notifications.