–>

How to use Arduino with Vibration Motor on Tinkercad

Arduino Vibration Motor

We’re showing to you how to use vibration motor with Arduino on tinkercad.

Gravity: Vibration Motor Module For Arduino – DFRobot

http://bit.ly/3pRaK4v

hello and welcome in this episode we’re showing to you how to use vibration motor with arduino if you didn’t yet subscribe please subscribe to get our latest videos on the channel

here is the vibration motor that is used in the smartphones and in all applications that make feedback to the user like keyboards or any other devices like kids devices that give feedback to the user

if you want to make an application that makes vibration as an indication to the user you can use this small vibration motor

in the past it has been made of a small motor but nowadays it’s a closed module like this but it still makes small vibration and you can also power it from the arduino power supply because it draws small current than the normal motor

but you still cannot drive it from arduino microcontroller because arduino microcontroller pins cannot supply the current to that motor anyway

you can see the data sheet or that motor if you bite and see how much current it draws for supply

let’s see the circuit it’s a simple circuit that uses a transistor as a switch you can use any npn transistor as a switch and here is the pin number three in arduino

you can use it to switch the vibration on and off through a resistor one kilo ohm to the base of the transistor and the emitter is connected to ground of arduino the collector is connected to the negative terminal of the vibration motor and the positive terminal of the vibration motor is connected to the five volts of arduino here that vibration motor is supplied from the arduino power supply source but you still need to check the data sheet of his vibration motor to see how much current it draws from its source let’s go to the code it’s a simple code just like the blink example that links an led on and off first we define the pin mode as an output pin then we use the igital right too high and we use the delay on and then we make digital right low and then we repeat the delay again here we need to see something about that vibration motor there are some types one type that makes the vibration when it’s connected to the volt and other type of vibration motor that makes the vibration only when the pin voltage is alternating between high and low in the first type in which you can make vibration when the oltage is connected you can use long delay intervals like this one second but in the second type of vibration motor where you need to make fast alternations between high and low you can make this delay smaller you can make something like 100 milliseconds or 10 milliseconds that makes that vibration motor alternates fast between high and low that depends on your type of vibration motor so let’s start simulation and see it it’s just like the blink the led blink example we start the simulation as we can see here the vibration motor is vibrating in one second interval you can use it in any application that uses vibration as a feedback for the user

for the code and the schematic click here

Recent posts

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top