sylatupa / Digital_Multi_Tool_w_ESP32

Final Project for Master of Arts, ASU Herberger Digital Culture
0 stars 0 forks source link

Wire and code the haptic motor #16

Open sylatupa opened 5 years ago

sylatupa commented 5 years ago

transistor used, 2N3904: https://www.sparkfun.com/datasheets/Components/2N3904.pdf

sylatupa commented 5 years ago

Simpler design with mosfet? https://www.precisionmicrodrives.com/content/how-to-drive-a-vibration-motor-with-arduino-and-genuino/

sylatupa commented 5 years ago

http://www.learningaboutelectronics.com/Articles/Vibration-motor-circuit.php

sylatupa commented 5 years ago

https://www.precisionmicrodrives.com/content/ab-001-discrete-driver-circuits-for-vibration-motors/

sylatupa commented 5 years ago

for back and forth control of the motor, but not needed here: https://www.precisionmicrodrives.com/content/ab-002-discrete-h-bridge-for-enhanced-vibration-control/

sylatupa commented 5 years ago

Pulse width modulation and a mosfet will give control over the freq and duty.

pwm12.freq(500) pwm12.duty(512)

See the docs: https://docs.micropython.org/en/latest/esp8266/tutorial/pwm.html