I need to design a circuit and code that allows a vibration motor to operate at a fixed frequency and its amplitude can be changed at a rate of 1 micro meter per second.
I was wondering if anyone could help me out with this. I already bought a haptic motor driver to operate with an ERM motor but the PWM control cannot allow the frequency and amplitude to operate independently. I then bought an LRA motor, hoping I would be able to control the frequency and amplitude independently but still could not.
If anyone could provide me some sort of guidance on this it would be super helpful!
Some things missing from your question, which make it hard to answer:
What your level of knowledge and experience is.
Details of what parts you have, such as links to where you bought them and exactly what they are.
Information about what you have tried yourself already; what worked, what didn't work and why.
Exactly what kind of help you want people to give you.
Of course, the only thing you can control is the speed.
Probably because "R" means resonance (AKA "tuned" to a particular frequency).
There are bass shakers that run from an audio power amplifier and they operate over a range of frequencies but they are designed to vibrate a chair or the floor so they might be too big for what you need (and they need a "big" amplifier). And, you need a real analog signal (not PWM) so the regular Arduino won't work.
My knowledge level isn't too bad but I'm definitely not an expert. I have used arduino before and am familiar with C++ coding. I would classify my knowledge level as intermediate.
I was worried about the electronics needed to operate this would be too bulky for the project. A design restriction is that the device needs to be small and compact
You change the amplitude by changing the voltage of the signal. The best example is when you use a variable transformer, a variac, to change the mains voltage from zero up to the maximum. The frequency does not change, but the AMPLITUDE is adjusted by the contact on the transformer.
You will have to design something similar for your project.
Paul