HydroBit
This project comes from a natural sciences class, we want to have a green school but everyday life often involves busy schedules and frequent activities, which makes it difficult to constantly care for our plants. The last plant died on a short vacation weekend and it was very sad, so the automatic irrigation system provides the ability to maintain a constant supply of water, even in the absence of teachers and students, which is especially beneficial for those with busy schedules. We use the micro Bit as the brain of everything!! It is a pleasure for me to publish this space so that you can build, program and execute a safe planting of Kitchen Tomatoes with your students
Supplies
For this project you will need:
micro bit
Soil moisture sensor
jumper cables
relay
breadboard source
breadboard
lcd screen 1602 i2c
tomato seeds
Pass
mini water pump
9v battery
micro bit pin extension
Connections and Operation
Connection steps:
Connect the I2C module to the 1602 LCD:
Connect the SDA pins of the I2C module to the SDA pin (P20) of the Micro:bit.
Connect the SCL pins of the I2C module to the SCL pin (P20) of the Micro:bit.
Connect the VCC and GND pins of the I2C module to the appropriate supply voltage and ground (you should use 5V and GND)
Connet the Relay:
connect the relay to 5v and gnd from the source, we will take pin P1 of the micro bit as a trigger output signal to activate the pump.
Connet the Humity Sensor:
Connect the humidity sensor to 5V and GND of the source, we will use pin P2 of the microbit for the analog reading of the sensor.
Do not forget to connect the gnd of the supply to the gnd of the microbit, this will balance the voltages since the micro bit works at 3.3v
Operation
The system will work depending on the humidity of the plant, that is, when the humidity is less than 40 percent the pump will be activated so that they are watered when the humidity is greater than 80 percent the pump will stop.
This has these advantages:
Water savings: Smart irrigation systems use technology to optimize the amount of water used. They can automatically adjust the amount of water based on weather conditions and plant needs, reducing water waste.
Time and labor savings: These systems are automated and require minimal intervention from the owner. This saves time and reduces the need for manual watering, especially in large gardens.
Better Plant Health: Smart irrigation systems can provide water more consistently and evenly, promoting healthier plant growth and preventing water stress.
Adjust to changing conditions: They can be connected to soil moisture sensors and weather stations to automatically adjust watering times and amounts based on changing weather conditions. For example, if it has recently rained, the system may delay watering.
Custom Scheduling: Most of these systems allow users to set custom watering programs based on the specific needs of their garden or lawn.
Remote Monitoring: Some smart irrigation systems allow users to control and monitor irrigation remotely via mobile apps, providing convenience and flexibility.
Long-term cost reduction: Despite the initial investment, smart irrigation systems often result in long-term savings in terms of water and garden maintenance costs.
Environmental sustainability: By reducing water consumption, these systems contribute to environmental sustainability and help conserve a valuable resource.
Alerts and notifications: They can send alerts and notifications in case of problems, such as a system leak, helping to avoid costly damage.
Improved Property Value: A well-designed and maintained smart irrigation system can increase the appeal and value of a property by contributing to the beauty and health of the landscape.
In summary, smart irrigation systems offer a number of significant advantages by providing more efficient and convenient irrigation, benefiting both homeowners and the environment
Programming
The first step is to download the extension to control the 1602 LCD called maker Bit. Then we create the humidity variable and set it to 0 in the start block.
In forever we must map the sensor reading to be able to change it to values between 0 and 100 since the sensor gives me analog values from 0 to 1023. remember to go to the advanced section, pins and use the MAP function
Shows Text and Data on LCD Screen With the Extension
Download the extension by going to the extensions block and typing lcd
Shows Text and Data on LCD Screen
go to the Makerbit - lcd block and place the blike connect when starting to establish a connection with the lcd, and then drag the lcd1602 SHOW block to observe text and data and place it in coordinates
Logic
We will establish the pumping working conditions using logic, on this occasion if the humidity is less than 40 the P1 of the micro bit will be activated giving the order to the relay to turn on the pump.
then the humidity changes to greater than 60 to turn off.
then we round the value of the variable humidity to avoid decimals
Water Pump Connection
You must be careful, remember that the relay is a switch and that you only need one cable or phase of the source, when it is activated it allows the current to pass, the cable is connected to common and normally open
Common Assembly 3d Printing in Acrylic
I designed this piece to give greater stability to the reading on the LCD, in acrylic it looks very good so you can use it. Use M3 and M4 screws to adjust.
This is ideal for placing the robot in the patio so that the plants germinate in 5 days.
download in the link.
stop by my space on cults too :)
https://cults3d.com/en/users/Jwstyn/3d-models
Complete Programming and Connection
Here is the complete code, download it and mount it to the micro bit. I hope you liked my first instructable.