![]() ![]() Add the pumping end of the water pump into your water source and the dousing end into the plant's soil. Add the moisture sensor to the plant's soil (or lack thereof in the case of this bamboo). Set everything upĪfter preparing the Automation pHAT (soldering terminals on, etc.), connect it to the Raspberry Pi via GPIO pins.Īt this point, you can set your plant watering test up. Close the loopĬlose the circuit for the water pump by using a wire to connect the COM terminal to GND. ![]() Power the float switch using the 5V terminal and connect the other wire into the INPUT 1 terminal. Connect the pump's ground wire to the NO (Normally Open) terminal. Power the peristaltic pump using the 5V terminal on the Automation pHAT. Power the soil moisture sensor using the 5V terminals on the Automation pHAT, and insert the data wire into the ADC 1 terminal (since the sensor is giving us an analog signal to convert). Add capacitive moisture sensorĪs seen on this balenaForum post, it's helpful to paint or coat the exposed electronic components of this sensor with outdoor paint or nail polish. Connect the data pin to the SCLK pin, which is GPIO pin 11 (you'll see this referenced in the plant watering code). Solder on DHT22 sensorĬonnect the power and ground to the 3.3V pins. Wiring will differ if using other hardware. This wiring diagram covers a build that uses the Pimoroni Automation HAT. #Plant incubator code(optional) balenaCLI if you want to hack on this project, push code locally, etc.balenaEtcher to burn OS images to SD cards.a free balenaCloud account (first ten devices are fully featured and free). #Plant incubator softwareHere's the software that you'll need to get going:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |