Team12 Vibration Motor: Difference between revisions
Jump to navigation
Jump to search
Created page with "= Coin Vibration Motor = The coin vibration motor (in our case the TC-9193500) is an Eccentric Rotating Mass vibration motor (ERM). An ERM uses a small unbalanced mass on a DC..." |
(No difference)
|
Latest revision as of 18:15, 19 October 2022
Coin Vibration Motor
The coin vibration motor (in our case the TC-9193500) is an Eccentric Rotating Mass vibration motor (ERM). An ERM uses a small unbalanced mass on a DC motor. The rotation of the mass creates a force that translates to vibrations.
Technical Specifications
- shape: coin format
- size: 10 x 2,7 mm
- operating voltage: 3V
Advantages and Disadvantages
Advantages
- small size
- simple to use and easy to control
- translates to a wide range of vibration amplitudes and frequencies to match any application
Disadvantages
- its amplitude is tied geometrically to the frequency and the speed, so it is not possible to alter the amplitude and frequency independently
How to get it to work
Microcontroller
Use a microcontroller of choice. In our example below we use the Raspberry Pi Pico.
Wiring with a Raspberry Pi Pico
- If necessary, solder cable ends to jumper cables
- Connect the black cable to GND
- Connect the red cable to GPIO
- Be careful not to connect the two cables to prevent short circuits
Code Example
# import modules
from machine import Pin,PWM
from time import sleep_ms
# connect red to GPIO3 and black to GND
vib = PWM(Pin(3))
vib.freq(1000)
# for a duty cycle with 16 bit define the maximal possible value
max_value = 65535
# for soft vibrations 30000 is a still visible value
min_value = 30000
# example vibration rhythm
# play with the sleep_ms values to change the rhythm of the vibration
# play with the duty_u16 value to define the intensity of vibration
while True:
vib.duty_u16(max_value)
sleep_ms(1000)
vib.duty_u16(min_value)
sleep_ms(1000)Instructional Video
--submitted on uni2work--