Raspberry Pi Irrigation Control – Part 2
In the first part of this tutorial we looked at each of the connections available on the board (and if using the bare bones version, soldered everything in place). Now that we have everything ready for power we can work on the software / coding side of the project. In part two of this tutorial we will boot up the Raspberry Pi, do some initial configuration of the Raspbian operating system, install Python libraries for a few of the sensors, and write some basic Python code to trigger each solenoid and read and display the data from each of the sensors. The Python code will be quite long, but we have broken it down into smaller steps. As always, if you have any questions, feel free to post at the bottom of the page.
Before we get started, you should have a microSD card pre-installed with Raspbian. We are using the installation image dated June 27, 2018. Using a different version than this *could* require additional steps during the installation process – so for this reason we recommend using the exact version we are. At the time of writing this tutorial, this is the most current version available from the Raspberry Pi Foundation and it can be found here.
If you have any questions, or need further clarification please post in the comments section below; this way future users of this tutorial can see the questions and answers!