Microcontrollers and Cell Phone Vibrator Motors
mmq
Posts: 1
Okay.. This is the deal. I am trying to design a glucometer (Blood Glucose Meter) to give me the results as vibrations. I will have three buttons for the three digits, and a vibrator motor to vibrate. what i need is an algorithm on how I should convert my initial output to give me pulses (such like a square wave) which would then connect to the vibrator motor. Now I know the LCD uses rows and columns, and else-if loops. I want a similar idea, i.e. having the LCD display outputs to give the same output but in pulses, so that if a digit like 3 pops on the display, I would get three pulses at a standard frequency, thus three vibrations.
please help
please help
Comments
You'll just need to setup a loop that executes X number of times... and adjust the value of X based on whatever number of pulses
you want to give.
You need to remember to put pauses in your loop though, otherwise the pause between each pulse will be too brief for a human
to detect.
You DO have your motor hooked up through an H-bridge, right?
Motors are inductive loads and can fry your stamp if your not careful.