Hardware
| Fig.1 - Preliminary hardware setup |
I will begin by describing the hardware setup. The main load-bearing devices include an aquarium pump which aerates the water and an overhead light constructed specifically for plant growth. Both devices are attached to X10 appliance switches (see Fig.2), which allows them to be activated/deactivated from a computer; I will discuss this in more depth later. The water reservoir (see Fig.3) is ~500 mL in volume and has two holes in the top: one for the aeration tube and the other for the actual plant. The seeds are planted into a small sponge (the inert medium) which will provide the future plants with structural support. The reservoir is filled with Hoagland solution, which will be the topic of another blog post. The reservoir is placed in a heated dog dish as Canadian winters are quite cold, meaning that, during the night, the temperature of the seeds may drop below the 15°C needed for germination. The hardware design is very similar to that of the elaboration phase, albeit with a few exclusions.
| Fig.2 - X10 switches and transceiver |
| Fig.3 - Close-up of the reservoir |
Software
Now, onward to the software. Currently, I am using a program I call hydrocontrol to control automated aspects of DotSlashGarden. It is written in bash and is simply a wrapper for bottlerocket, a Linux-based command-line utility for controlling X10 Firecracker devices. It is extremely simply and I only created it because I can never remember the syntax for bottlerocket!As an example, this would turn on the light:
# hydrocontrol -l onhydrocontrol must be run as root as it requires access to serial devices (i.e. the X10 Firecracker module). Whilst this program is able to turn devices on or off, it is unable to do any type of scheduling; another program, such as cron, would be required to do such a task.
As you can see, this is much simpler to remember than:
# br -c A -n 1 -x /dev/ttyUSB0If you would like to look at or use this program, it is available on my Dropbox. It should be noted that it is somewhat kludgey and it could easily be rewritten in 15 minutes; however, it does the job, and that is what is important.
Conclusion
With this test, I hope to identify some issues will the implementation so that they can be fixed as soon possible. I have already learned that small reservoirs are much easier to handle as 0.5 L of Hoagland solution is easier to make than 14 L. In order to move on to another prototype, the main control program (garden) needs to be integrated into the Raspberry Pi with features such as logging and serial control. Furthermore, the Raspberry Pi also needs to have networking support (something which has been eluding me as of late...).At this moment, the seeds, which are of the lettuce variety, are germinating. In about a week or so, they should sprout and the real test of DotSlashGarden's growing abilities will commence.