My mother's family has land and farmers, and we also have a small farm behind the house, but when we come to water the plants, my father operates the water pump for a long time to water all the plants, but its noise also makes me ache. In order to reduce water waste, I decided to implement a project that reduces water use in the agricultural sector in order to achieve one of SDGs.
Similar Projects
The design (CAD) software used for this part of the project was Fusion 360
Fusion 360 for design Cool Glass
Firstly, Search for design sizes.
Secondly, draw help lines using standard dimensions.
Thirdly, draw all side of the Planter.
Fourthly, Extrude The sketch of all sides.
Fifthly, Assembly all sides.
Finally, I extracted the file as DXF then imported it to Laser CAD program.
For Fusion Design
I drew every side of the device and also extruded it.
I assembled all the sides together.
For Laser Cutter
laser Cad for preparing the file for cutting
El Malky ML149 CO2 Laser Cutter
PLY wood 3mm
I exported the file in DXF format from fusion 360 software.
Then, I added the design to Laserworks.
I downloaded a pattern from the internet and attached it to LaserCAD software.
Next, I moved the design closer to the origin.
I started by selecting lines based on the action they represented, then assigned speed and color to each selection.
I chose the following colors to represent each action:
Cut - Black
Engrave - Red
I set the cutting action as the last step to ensure it wouldn't affect the design, finally export the file in RLD format.
The photos show the used power and speed for each action, note that we did a little changes in the lab.
Laser Cutter Machine Test
Laser Cutting Fabrication Processes
Smooth Wood
Wood Sealer Paint
Design all 3D printed parts in the device
I designed a pot for the plant so that I could fit its dimensions.
I designed a fixer for the breadboard so that I could attach it to the bottom of the project in wood.
I designed a funnel so that when the water from the plant runs out, I can add more water, and I can also take out a water hose from it that will reach the plant.
I designed the legs of the device to be like the legs of a chair, so that when I put them on the desk, they are raised above the desk surface.
For 3D printing
Ultimaker Cura Software for slicing and preparing the file to be printed
3D Printer Ceality Ender 3 Pro 3D Printer
PLA plastic filament
After downloading the design as STL file format, I opened it in Cura software , choosed the machine and adjusted size and parameters to fit the target.
For the settings parameters, I consulted the settings provided by the design owner on the website, but I made some edits.
Believing the design needed support, I don't need to add support and adhesion.
Additionally, I set the layering to 0.2 mm to reduce printing time and have a reasonable finish.
Checked slicing to see the time and no of grams used.
Finally, Saved the file in g- code format , with naming convention of the desgin name, needed time and grmas.
It was a challenge for me to adjust the size of each printed component because the number of grams is important for the graduation project,
as well as the number of printing hours.
Now, I'm satisfied with the dimensions, although it fits just right.
For Electrical Design
Fritzing Software for designing the electric circuit
Materials :
1- Breadboard and Jumpers to connect the components.
2- Arduino UNO..
3-Arduino Cable.
4- 9V Adaptor.
5- Relay.
6- Water Pump.
7- Moisture Sensor.
8- Relay
9- Humidity Sensor
Using Fritzing add the inputs such as Soil Moisture and Humidity Sensors and outputs such as Speaker and Water Pump,then adding controlling components such as relay and Op Amp.
add brain (Arduino UNO) and Power supply 9 V and DC-DC Step Down Converter to obtain 5 V .
Connected all wires.
Relay
Control module for Water Pump.
Arduino UNO
Brain of the device.
Arduino Cable
Communication wire to install code.
Jumpers
Connection wires.
Adaptor (9V)
Powering the circuit.
Humidity Sensor
It is an input sense humidity and temperature.
Breadboard
foundation to connect the wires
Op-Amp
used for controlling generated sounds.
Water Pump
it is an output connected to relay for control it.
The suitable power source for the project is a 9 V adapter.
The Op-Amp needs 9 v for powering the speaker by using DC-DC Step Down Converter to gain 5 V for powering all sensors.
Final Code using Arduino IDE
Definition of libraries
MozziGuts.h: library used for sound synthesis in Arduino.
Oscil.h: control oscillators for generating musical notes.
sin2048_int8.h: table of sine wave with 2048 samples.
square_no_alias_2048_int8.h: table of square wave with 2048 samples.
DHT.h: temperature and humidity readings from the DHT sensor.
Define Soil Moisture Sensor Pin
Define Water Pump Pin
Define Humidity Sensor Pin and Type
Setting up audio oscillators to make Sounds
melodyOsc: oscillator that generates a sine wave.
bassOsc: oscillator that generates a square wave.
Defining an array of musical notes for melody and bass in HZ
Defining variables to track the notes and timing between them.
Defining variables of Soil Moisture and Humidity Sensors.
Configures the soil sensor and humidity sensor pins as inputs, pump as output, and initializes the Mozzi sound system.
Create function for Sensor and Music Logic
Mapping the soil moisture value to change music from -100 Hz to +100 Hz.
Read DHT sensor value and Check Reading.
Using Temperature to control the speed of musical notes and pass 8 notes with delay time.
Map temperature (15°C to 35°C) and note delay (200ms to 1000ms).
Hotter temperature → Faster music 🔥
Colder temperature → Slower music ❄️
Create a function for adding random sounds.
Mozzi handle music.
I started off by testing the circuit on its own with the code to make sure that everything is working correctly without any errors
The pump is connected to the relay using wires, then connect moisture sensor and relay with Arduino UNO.
I used a jam jar and opened it with a screwdriver to be a container for the water for the plant.
I used the wires to connect the electrical circuit.
I used an electric welder to connect the wires to the variable resistor.
All electrical components together.
Videos for all Functions.
During each phase I asked for help from different people Megoo ,Menna, and Dinaa of course were there to provide feedback and help, but I was lucky enough to be part of a group where we all offered help to each other at any time.
In the design phase, I did not know how to hold the Arduino and other Components in Fusion, so I asked Youssef and Sameh for his opinion and we researched together different ways to connect them together.
Youssef helped me during Assembly my project.
First Challenge
The problem:
The Front Side Pattern can not be cut.
The reason :
Front side cutting is difficult using Laser CAD.
The solution:
Downloaded the shape of the solo key for the music and cut it with the laser machine.
3axis
Second Challenge
The problem:
Can not change speed or frequency of Music with MP3 Module.
The reason :
Need Op-Amp to control it.
The solution:
Generate Sounds and Music from Arduino library Mozzi.
If I had more time I would have liked to use SD Card Module to play the sound feature in my project As a joke, I recorded a voice recording when the plant needs to be watered. It makes a sound saying “Atshana”