Team12 Vibration Motor

From Sketching with Hardware at LMU Wiki
Jump to navigation Jump to search

Coin Vibration Motor[edit]

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[edit]

  • shape: coin format
  • size: 10 x 2,7 mm
  • operating voltage: 3V

Advantages and Disadvantages[edit]

Advantages[edit]

  • small size
  • simple to use and easy to control
  • translates to a wide range of vibration amplitudes and frequencies to match any application

Disadvantages[edit]

  • 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[edit]

Microcontroller[edit]

Use a microcontroller of choice. In our example below we use the Raspberry Pi Pico.

Wiring with a Raspberry Pi Pico[edit]

  • 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[edit]

# 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[edit]

--submitted on uni2work--