My project idea is about helping the user (plant geek mainly:") to leave his plant safely while my device watering it rationally with the help of a moisture sensor when it reads the moisture percentage is below a certain level the water pump will start watering automatically from a water source (bottle) inside the device body.
The device enclosure is inspired by an animated character called BAYMAX which in the movie is a healthcare companion so, I made the same idea but as a plant companion.
The idea itself is inspired by my own interests as a plant lover and my need to leave my plants at home without how to water it hustle.
The Cover
with a circular hole projected with the bottle inside the box to be able to refill it easily.
and projected groves from the left and right sides to fit the tabs of T-slots.
The first side of the box with a rectangular hole for the moisture sensor to be hung from it and a square one for the ON\OFF switch.
bottle box.
ARDUINO.
Relay.
the sides slots.
the second side is the same as the first one but without any holes.
For the BAYMAX front face, i downloaded a normal image of him ➡️ transformed it on INKSCAPE program into lines (SVG) ➡️ inserted it on FUSION 360.
Then on LASER WORKS I copied his features to be cut with the whole face.
The length of the face is 42cm.
Front face lines on FUSION
Fully defined lollypop
Extruded
Fitting the character size on the Box size.
Features on LASER WORKS
I copied ➡️ paste new the front side ➡️ extruded it again with ARDUINO holes projections.
1) Water Bottle frame (to limit its movement)
Final extruded version of the frame.
2) ARDUINO Cover
The wall behind the ARDUINO
The Top part
(the roof)
The final extruded enclosure.
Mounting Components Inside the Device and the final integrated parts
Pushbutton and LCD mounting
ARDUINO holes projection
ARDUINO, Relay and Breadboard mounting
ON\OFF switch mounting
Programs used through this journey
To transfer any image into SVG and lines that FUSION can read and accept.
To draw my designs in 2D shapes.
The fabrication Process went through 2 Stages
1) File Preparation
1) Transforming each part of the design separately into DXF format using the DXF extension.
2) Imported it into RD WORKS
3) Parameters Editing
Cut
Speed cut
Scan
2) Fabrication on laser cut machine
Input components:
ON\OFF switch {to control the circuit electricity}
Pushbutton {when pressing a funny message will appear on LCD}
Moisture sensor.{ indicate the plant moisture level}
Action components
LCD {as an output for the switch and button press}
Water pump{ after the sensor reads the pump will start working}.
First I started the wiring of the moisture sensor
VCC ➡️ 5v (ARDUINO)
GND ➡️ GND (ARDUINO)
AO ➡️ A1
Second step wa connecting the water pump
-ve of pump ➡️-ve of power supply (9V)
+ve of pump ➡️NO of relay
we need relay here to control any voltage shortage between the Arduino and the pump
the input side of the relay is connected with:
IN➡️~6
GND➡️ARDUINO GND
VIN➡️+VE ARDUINO
the step before integrating all components together was testing the ON\OFF switch, LCD & Pushbutton in the circuit
on\off switch: one leg ➡️ +ve rail & second one ➡️ arduino pin
push button: one leg ➡️ -ve rail and the other ➡️ arduino
LCD: GND➡️-VE rail, VCC ➡️+ve rail, SDA➡️A4, SDL➡️A5
Circuit Diagram
Final wiring and power supply:
1) VIN (Arduino)➡️ +ve rail (breadboard)
GND➡️-ve rail (breadboard)
so, now one rail is -ve and the other will be supplied with 9v source and the VIN pin is on it
2) pushbutton:
one leg ➡️-ve rail
second leg➡️~8 (ARDUINO)
3) LCD:
GND➡️-ve rail
VCC➡️+ve rail
SDA➡️A4
SDL➡️A5
4) ON\OFF switch:
one leg➡️+ve rosetta
second leg➡️+ve rail
it is controlling the electricity of the whole circuit now
5) Relay:
NO➡️-ve side of pump
Co➡️-ve rail
IN➡️~2
GND➡️GND (breadboard)
VIN➡️+ve rail
6) Regulator: {to regulate voltage from the power supply (9v) to water pump (5v)}
9v rail➡️9v leg on regulator
GND(middle leg)➡️GND rail
5v leg➡️+ve side of water pump
What should happen in detail?
when pressing the on\off switch the device will turn on.(doesn`t need coding)
once the device is on a welcoming message will appear on the LCD saying "HI, I am your plant companion", and because it's a long sentence I distributed it into 2 sentences with 2 coding lines in 3,0 & in 0,1. also i wanted it to appear only one time at the start and to not be repeated so i wrote it in the void setup.
also I identified the pinMode of the pump in it so it will be read once as an OUTPUT.
in addition to the recent point i wrote the LCD backlight code in the void setup to light.
inside the void loop I wrote all the code lines i wanted to repeat which are :
the moisture percentage indicated by the sensor and the pushbutton state
The Conditions Needed
1- when the moisture sensor read percentage less than 50% the pump will start watering automatically.
2- when the pushbutton pressed anytime a funny message will appear on LCD for the user.
that1s why i used 2 if conditions to make 2 orders applicable.
integrating front face components
link the base and sides together
Mounting base components with screws and nuts
Mounting switch and dc jack holes
make sure that ARDUINO holes size fit
whole circle wiring
cover
DEMO
- also i can add a nice to have feature which is controlling the device by my mobile.
Starting without making a prototype to imagine which design do i really need wasn`t a good idea, after that, i tried to make a small prototype just to imagine some connections.
made my first design without any T-Slots just tabs and normal slots took a bit of time to redraw it again
if someone want to do the same project i think the most important thing is taking time to draw and thinking of what they want to put and where as i forgot some components holes and made it after that with a driller and it wasn`t an easy way.