 
Hello, welcome to my channel
today we will try to make
an automatic spray using arduino
for this, we will need a servo motor
with enough torque, like this one
tower pro MG996R
an arduino board,  in this case an arduino nano v3
a breadboard and a bunch of jumpers
we will also use a plastic bottle like this
these are usually made of PET
polyethylene terephthalate
once empty and dry we remove the label
and the handle
remember not to throw away this green plastic, because it will be useful to us
with the lid tightly closed, we proceed to heat the plastic
the air that expands by heat counteracts
the force of the plastic shrinking
this will leave the plastic thicker, stronger and smoother.
when it has cooled we carefully uncap it to
release the pressure
and we proceed to cut the parts that we don't need
we will cut the plastic into more manageable pieces
just like with the handle.
To join the pieces of plastic we will use a tin
soldering iron in a well ventilated environment
and as you can see the weld is very resistant
To fold the plastic we will use a clamp
this is how it should look.
now we weld the green plastic which
by the way is not PET
to achieve this shape.
we proceed to assemble.
 
 
 
 
 
 
 
 
 
 
and we connect the servo to the breadboard
using the jumpers
this is the code that we must upload to the board
as you can see it is quite simple.
but of course we can make it as complicated as we want.
The first delay indicates the time we must wait
for the servo to go down and release the spray.
the second delay is not that important 200
milliseconds will suffice.
In this case I have used the 150 degree and 30 degree positions.
but this will depend on how they are going to put it together.
if for example we want the spray
to be released once every 10 hours we will have to wait
a total of 36 million milliseconds.
For power supply I have used a computer power supply,
the arduino is powered by 12 volts,
but the servo receives 5 volts direct from the source,
such a powerful servo needs its own source.
connecting it directly to the arduino
could easily burn the board.
now we can see it working.
well I hope they give you a good utility.
If you liked it, like it and subscribe.
don't forget to activate the bell to
receive notifications.
Thank you very much for watching the video and see you soon.
 
