i was inspired of commercial product called switchbot , it helps you to push a lot of buttons far away wirelessly thru bluetooth or wifi thru your mobile phone
you can stick it to a lot of devices by double sided tape
fusion 360 for 3d modeling
cura for slicing
i started by building the box of the project , by drawing a sketch and draw rectangle 43 mm x 63 mm then extrude it 43 mm then shell 1.5 mm , then i made an open in front of the box to let the switch move to push the buttons
and about the box cover i made some sketches and extrude from the box open space and i made three legs to hold it in place
i did only three because of the bluetooth module place
then i downloaded my internal components from grabcad.com then i draw on the box bottom sketch the component's holders to keep them in thier places
i drew the switch that will push the buttons to attach it to the servo , and the extra part that i can attache a string to it to let the switch to pull back the button to turn it off
then i made an open for the arduino nano adapter to attach the power cable easily by project the adapter sketch into the box side then extrude cut
then i started to export the stl files to 3d print it
Importing the stl files into cura to 3d printing
i imported all the stl files into cura
i adjust my print setting as shown
res : 0.3
infill 30%
with support and adhesion then i sliced it
after cura slicing that was my printing duration
then i export my gcode file to print it
i used prusa mk3 to print my file
the material that i used is black pla
i cleaned the plate then i print my file
after printing i started to remove the adhesion and supports
after removing the adhesion and supports
my project components
micro servo motor
arduino nano
bluetooth module hc-05
jumpers
i used Fritzing software to simulate my circuit wires as shown below
Servo Motor :
Orange to Arduino pin d6 as output
Red to Arduino 5v
Black to Arduino Ground
Bluetooth Module HC-05 :
RX to Arduino Nano TX
TX to Arduino RX
GND to Arduino GND
VCC to Arduino 5v
my input will be the mobile app arduino control app
i'll use it to communicate with arduino to do some his orders
i needed 5v to run my project components well
so i used external powerbank to power my project , as there's no available internal batteries in the market at this time
i used arduino ide to write my code
i used arduino control app to send data to arduino
each button on the app will send its number to arduino to start make some orders
i started my including the servo library
then i added variable ( data type ) char and called it incoming data and it's value is zero
named the servo motor : myservo
in void setup
a attached my servo to pin 6
and ordered the servo to be in 0 angle
in void loop
i used while loop and ordered the servo to move on specific angles if serial read specific number
so if i sent 1 , servo will rotate to 110 degree angle and stay
and if i sent 2 , servo will rotate -110 and stay
and if i sent 3 it will rotate to 120 degree and wait 250 millisec then go back to 0
and if i sent 5 it will make the multi press move then go back to 0
i made a prototype for my project with pvc pipes , i cut it and melted it with heat then cut it in sizes to make a similar box to my project
after glowing the box parts and building my circuit i tested everything and worked good
actually i helped a lot of my team on their products , in some sanding and assemble and disassemble some parts and screws of their projects
of course i was asking my instractors amany and ibrahim and ahmed before in every obstacle i face and they were always help me in how to solve or even how to think to get the best solution
here while trying to attach my servo into the box one of the wires has broken and the servo stopped working
so i opened the servo and fix it myself , and it worked again
first 3d printing was not successful because of wrong grabcad dimension and i needed some clearances on the cover part
so i edit it and print it again
i made a small edit to the moving switch part by putting the servo horn in it to use its internal gear to attach the switch to the servo
because the printed part was slippery and not fixed perfectly
i needed short jumpers so i did it myself in the maker space
i'll print my other mechanism of i switch
the rack and pinion one , that i already draw it and model it on fuison 360