Im a student trying to design an Arduino project, in which I would like to create a water sensor, once triggered, to vibrate a vibrator device, as if to imitate a mobile phone vibrating. Im new to Arduino, so I am not very sure as to how to go about this. However, I have already designed the water sensor code, so the system will light an LED when water is detected. All I am asking is how switch the LED to a vibration device and how to change the code with that.
'phones often use what amounts to an out of balance electric motor to provide haptic (vibration) feedback. Is that the sort of thing that you have in mind ?
in all honestly it doesn't really matter what type of vibration device is used, all i need is the method as to how to connect it to my water sensor device. If you believe this may be the best motor for this sort of project then I will take your word for it. Do you have any idea on how I might be able to connect it to my Arduino circuit?
vibration is something mechanical and it is created by a whatever mechanic.
So it is not a programming thing. The programming is just
switch ON and it is vibrating
switch OFF and it stops vibrating
except maybe a bass-speaker misused for vibration
The switch on/off is done by any IO-pin.
What you may need additionally highly depends on the switching-device
You did not name the field of study that you are doing. If it is anything technical totally regardless of what specific technical it is.
electronics
informatic
mechanical
physics
medicine
or whatever
You should at least learn the basics about electronics and mechanics.
Studying means learning how to develop something independently.
That doesn't mean that you don't ask any more questions to experts.
It means thinking for at least 10 minutes and then asking more or less specific questions.
Ti @tomgreen2021 .
I like to disassemble obsolete cell phones.
99% of them use motor to vibrate.
The motor has a semi-circle of metallic material mounted on the end of the shaft.
This semi-circle unbalances the motor causing it to vibrate a lot.
Any motor you mount a metallic semi-circle on the end of the shaft will vibrate.
The frequency of vibration will depend on the motor speed, and the intensity will depend on the weight of the semi-circle.