r/arduino • u/Far_Tap8225 • Sep 14 '26
Can slider potentiometers control several objects randomly
Hi I'm brand new to this sort of thing and my first post but I'm looking to dive into the Arduino Life and I've read the guidelines so hopefully this is ok.
I have this idea (see diagram) where I have a rack of plastic tubes that are uniformly placed to each other held in place by guides (1) but then can be set at random levels/ increments individually at each press of a single button (2). The straws are hollow lightweight plastic and approx. 12 inches long and about 1/4 inch diameter. They're locked into place with guides so can slide only vertically (5). Speed isn't essential and I've done a little research under the hood into servo motors already finding some interesting posts on how to control 12 motors (or more with an interface) however I think I'd have to use pulleys / wires.
After a few more searches I've arrived at 'slider potentiometers' 4) to slide and affect the motion 5) but I'm a little confused as to whether this is something that an Arduino encompasses (or maybe I need something else).
Would just like to know if it's a route worth pursuing or should I stick with the motors/ pulleys etc. before I start buying anything. I'd possibly need 12, 16 and 24 sets/ configurations. Your knowledge is greatly appreciated.
thanks and apologies (delete as appropriate)
12
u/ventus1b Sep 14 '26
Potentiometers could be used to measure the position, they cannot move the tubes, so I'm a bit confused as well :)
You also have to consider the range that you want the tubes to move. Servos usually have 90 to 180 degrees of rotation and if you want to translate that into linear motion you'll need to get inventive.
19
u/YT__ Sep 14 '26
Linear actuator is a correct solution of you don't need to move it manually. Though pricey.
Stepper motors with a threaded rod are another option.
Your plan would work too if they're light enough. But definitely more expensive as well. https://www.adafruit.com/product/5466?srsltid=AfmBOor1NvRqG8IUz7CYqYWa8Ysi41_3UAqT5IQtV3z5Y-PfPJxZCYVG
63
u/sjaakwortel Sep 14 '26 •
There are motorized faders, those are slide potentiometers with integrated motor, so the software can change the position. They are a bit expensive, and I'm not sure how much force they can apply to external thigns.
2
u/OptimalMain Sep 14 '26
Arduino works fine. With that many motors and sliders just start with a mega or a newer equivalent instead of adding expanders etc.
2
u/username-kekeke Sep 14 '26 edited Sep 14 '26
with stepper motors you need no additional device for feedback. One switch per rod for sensing 'home' position will work good. Another option is use DC motor with reductor and LED/photodiode pair for feedback (like draw black and white stripes at the back of the rod for sensing). It can be cheaper then steppers but maybe a bit more complicated at software. Anyway I wouldn't recommend potentiometers for feedback. they aren't accurate and depend on temperature. Edit: you aren't making a nuclear reactor, are you?
2
u/JeffSergeant Sep 14 '26 edited Sep 14 '26
Do they need to be actually random or just look 'random'. You could achieve the shuffled appearance using cams and a single motor rotating to different positions to get different results.
1
u/Far_Tap8225 Sep 14 '26
UPDATE: I'm going to go the motors route and really excited to start my first Arduino project tho as suggested I'll start with a single straw pipe.
It's for an art project so the design is as important as the overall output, and hopefully I'll update as I go.
Thanks for all the help genuinely chuffed with it all!
4
u/Sleurhutje Sep 14 '26
Do you need to know the position of the tubes, e.g. because they can be moved by a user? If not, you can use continuous rotating servos, hooked up to a looped wire that controls the tube. Use simple endstop switches to detect the if a tube is at the top or bottom to stop the servo from moving (and at startup calibrate the end points).
If you need more precision, you can use stepper motors and spindles instead of a continuous servo and a wire. But it's more expensive because of the motor, driver and spindle.
1
u/jaknil Sep 14 '26
Threaded rods and nuts for moving up/down sounds like the easiest way to achieve the required motion here. Then cheap stepper motors or geared DC motors can be used to direct drive the rods. For «zeroing» the straws should just be driven into mechanical end stop while motor power is limited (easy with stepper drivers). This reduces the need for extra sensors. Regardless of your motor choice you will need two digital control pins per motor on your microcontroller.
Most importantly: Don’t make the mistake of building all at once. Test your ideas by building and testing ONE before committing and ordering parts for the whole thing.
1
u/TRKlausss Sep 14 '26
The only problem I see with this is the analog of it all. Potentiometers are not that accurate, and the actuation surely has hysteresis.
I’d go with something encoded and with integrated motor in it…
1
u/myopinionisrubbish Sep 14 '26
You can not use side pots to move the straws, which I think is the question you’re asking.
To physically move the straws you will need a motor of some kind for each one. Basically a mechanical nightmare to implement.
1
u/[deleted] Sep 14 '26
[removed] — view removed comment