Objectives
- Run a vibration coin motor using NodeMCU
Things
- NodeMCU board (quantity: 1 no.)
- Micro USB cable A to B (quantity: 1 no.)
- Breadboard (quantity: 1 no.)
- Vibration coin motor (quantity: 1 no.)
- Push-button (quantity: 1 no.)
- 1kΩ resistor (quantity: 1 no.)
- Jumper wire – male to male (quantity: 3 no.)
- Arduino IDE on your computer
Let’s begin!
A vibration motor is a small motor with an imbalanced weight on the shaft. The imbalance of the weight causes the motor to vibrate while running. The motor is small and is also available in a coin shape and is therefore called a coin motor.
The motor draws a very small current. The NodeMCU can supply sufficient current to run the motor. We use a push-button to control when the motor runs. As long as the push-button is pressed, the motor will run.
Interfacing vibration coin motor with NodeMCU
Interfacing vibration coin motor with NodeMCU
Final Code
To copy the code, right click on view raw at the bottom of the code, click on open link in new tab and then copy the code.
0 responses on "Run vibration coin motor using NodeMCU"