It's a robot car have a lot of options it can help the home agriculture or in the large scale. This project mainly made to encourage the planting and make it more interactive.
As you can control it using your phone to make the car move forward and backward until reach the plant. By moving the servo motor up and down to make the soil moisture sensor touch the soil. Here you can also use your phone to measures the soil moisture to water the plant if it needs.
Designing process
Software: Fusion360
Fusion360
Start from the top of the car && power bank housing
Extrude the skitch 3 m as the used wood && mounting the relay and DHT11
Using P option to make the holes of each component. && Make some holes for the wires.
Then draw the bottom with cater wheel holes and motors housing
Mounting for the motor driver and Arduino Uno
Mounting the Dc motors and wheels
Mounting for the caster wheel and servo motor && make a joint to make sure from the place and holes
Make an offset plane to make servo housing
Make the skitch of the housing
Extrude the skitch for the housing and make sure from the joint
Make a holes for the spacers
Draw the cup to see if it the hole or not
from the loft feature
This vide explains the design process step by step.
CAD step by step
Laser Cutting
Software: laserWork (used in prepare for fabrication process)
Machine: Morn MT3050D CO2 Laser Cutter
Material: Wood + M3 screws and nuts as well.
Morn MT3050D CO2 Laser Cutter
laserworks
from file >> Import file
choose the needed Dxf file to import
put it in a suitable place
Set the speed and power of cutting
see the simulation and the estimated time for cutting
Laser cut bottom
Laser cut Top
Laser servo housing
Laser cut Link
OUTPUT
2 Dc Motors
For the motion
2 Wheels
For the motion
water pump
For the Watering
One channel relay
For control the Watering process
POWER
Lithium Polymer Battery
to provide the power to the components
Direct with Arduino and motor Drive 7 Volt
LM7805
used as a voltage regulator to provide the 5 volt to (Relay - Bluetooth -soil moisture -servo)
INPUT
Bluetooth Module
For the control process of each component
soil moisture sensor
To measure the moisture of the Soil
Brain
Arduino Uno
Used as a brain of the system to sent and receive the data
Motor driver
to control the motors motion
Electrical components
Breadboard:
to connect components
wires
(female-male)(female-female)(male-male) to connect components
caster wheel
For the motion
servo motor
To make the link move up and down
Preparation connection
Motor driver
Connect it with the 2 Dc Motors and connect them to the Wheels
Out 6 pins to enter in Arduino and 2 pins to power supply
Relay
Connect it water pump
Out 1 pin to enter in Arduino and 2 pins to power supply
Breadboard
Put the voltage regulator
in the input pin
1-Arduino
2-power supply
3-Motor driver
make the Ground as a Common Ground for the project
in the output pin
1-Relay
2- Bluetooth
3-soil moisture
4-servo
Connection with Arduino
Bluetooth Module
Tx to Rx Arduino pin
Rx to Tx Arduino pin
VCC to 5 volt out from the voltage regulator
GND to the common ground in the breadboard
soil moisture sensor
ٍSIG to A0 Arduino pin
VCC to 5 volt out from the voltage regulator
GND to the common ground in the breadboard
Motor driver
ٍENA to pin 6 Arduino pinٍ
LN1 to pin 7 Arduino pin
LN2 to pin 8 Arduino pin
LN3 to pin 11 Arduino pin
LN4 to pin 12 Arduino pin
ٍENB to pin 13 Arduino pin
ٍ
VCC to 7 volt out from the voltage regulator
GND to the common ground in the breadboard
Relay
ٍSIG to pin 3 Arduino pin
VCC to 5 volt out from the voltage regulator
GND to the common ground in the breadboard
servo motor
ٍSIG to pin 5 Arduino pin
VCC to 5 volt out from the voltage regulator
GND to the common ground in the breadboard
TinkerCAD simulation
All Components placed in its place
Motors With Bluetooth Module
Test the Motors and Bluetooth
Test servo motion
Test Relay and soil moisture
1-Include libraries :
-servo.h for servo motor
2- variable identifications.
-servo , Relay ,Pump and Bluetooth.
Text Code
Text Code
Void setup
It has the dentification of the pin modes between input and output.
And make at the start of the program the motors off
I used the enable pin mode(pin 6-11) because the 2 DC motors that I have were not have the same speed. so i used a 2 different values of PWM form the 2 motors to be synchronous.
Text Code
Void LOOP
Start the Loop by checking the incoming data send by the Bluetooth to go on the loop and the different function
I use 200PWM for the fastest one and for the other one i use 220 PWM (these values selected after a long try and error process )
1- first option : if you press 1 in the GUI >> the action will be >> the car move forward
2- Second option : if you press 2 in the GUI >> the action will be >> the car move Backward
Text Code
Void LOOP
3- Third option : if you press 3 in the GUI >> the action will be >> the Servo make the link move DOWN (with the soil in it )
4- forth option : if you press 4 in the GUI >> the action will be >>the Servo make the link move UP (After finishing the watering process.
Text Code
Void LOOP
5- fifth option : if you press 5 in the GUI >> the action will be >> The Soil moisture start get the reading and if the soil need watering the relay will make the pump on else it will stop watering
6-- sixth option : if you press 6 in the GUI >> the action will be >> The car and the pump will stop
This photo represent the GUI of the mobile app and the buttons
After testing each component
i start to test:
Dc Motor with the motor driver
DC motors with Bluetooth
Relay& PUMP
Relay& PUMP& soil moisture
Final project
Side View
Top view
All Components placed in its place
As it's appear in the left photo
1- first i start collect each part components together
2- i started with the DC motors and wheels using the Avis Plastic Belt
3- put the motor drive in its place with screw and nets
4-connect the 2 DC motor with the motor drive .
5-fix the Arduino UNO in its place in the bottom part
6-connect the motor drive with Arduino UNO.
7-Put the caster wheel in the bottom fix it with 4 nets and 2 screws
8- put the servo motor in its place by the T slot with screw and net
9-fix the Small breadboard and connect the voltage regulator and the power of the components
10- put the spacers.
11-fix the cup in its place in the middle of the plate and put the water pump in it
12- Go to the Top part and put the Bluetooth module
13-fix the battery and its on off switch
14-fix the relay
15-Now we are ready to put the two parts together and fix them with the nets with the spacers
Test Relay, pump and soil moisture
Test Relay and pump motion
ALL thinks goes to Amany, She always helps me at any time and provide the solution for any problem that i face .
I face a problem with the length of the caster wheel when i fix it with the 10 m screw , it be an inclined car and this is won't be safe with the water and electronics
i fix this problem by using this screw from my table hand ><
Make it an automatic car using IR sensor and with some edits in the code .
Add LCD and DHT11 to make the car fully functional