How do I use a proximity sensors output in order to strengthen or weaken the strength of a vibration motor?
At first I thought I would use resistors but I was unable to find a way to change the strength of the resistance based on a variable.
PWM?
What sort of vibra have you got?
LRA or ERM?
Also I'm sort of new to aruino and coding but I'm working on a project and I just want to know if there's a simple way to change the strength of the vibrating motor by either increasing or decreasing the current resistance or volts
Those are Eccentric Rotating Mass vibras.
Try driving them from a PWM output, using a transistor buffer.
ezra_reiss:
How do I use a proximity sensors output in order to strengthen or weaken the strength of a vibration motor?
At first I thought I would use resistors but I was unable to find a way to change the strength of the resistance based on a variable.
You don't use a proximity sensor at all. If you want to measure shock or vibration you use the accelerometer best suited for the range of vibration you have. Even then this would only really apply to a closed loop system. If all you want to do is use your motors to create shake (vibration) in a very simple system just use a PWM signal from an Arduino or any number of sources to drive a transistor to drive a motor. Multiple motors likely will not work out well because you will never get them in sync. Rather than a collection of little motors normally only a single large motor is used. Start with a Google of "Shaker Table".
Ron
ezra_reiss:
How do I use a proximity sensors output in order to strengthen or weaken the strength of a vibration motor?
At first I thought I would use resistors but I was unable to find a way to change the strength of the resistance based on a variable.
We get a lot of questions of this form: How do I use X to control Y?
That's never how to think about things.
We need code to read from the sensor X. Test it.
We need code to write to and control actuator Y. Then test that.
Only then write code that decides what to do to Y, given readings from X.
Here the real issue was how to control the motor.
And googling "Arduino motor control" isn't hard. You might wonder and query if vibration motors are
like other small motors (they are).
Once you've got a working tested function to control your motor, that's when to think about using
the sensor to call it.