r/arduino • • Sep 14 '26

Can slider potentiometers control several objects randomly

Post image

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)

55 Upvotes

33 comments sorted by

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.

3

u/Far_Tap8225 Sep 14 '26

I also got very confused so all feedback is welcome. I think I might go the servo route as the design is as interesting to me as the final product. Thanks

2

u/wigitty Sep 14 '26

You can get motorised linear potentiometers that are used in high end audio mixing equipment. They aren't cheap though.

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

3

u/Far_Tap8225 Sep 14 '26

Oh wow! These are cool! But yes x24 that's gonna bust my budget into the stratosphere! Thankyou though it's a great help

4

u/ThatNinthGuy Sep 14 '26

You could do one motor and some kind of servo operated clutch system that then engages/a single threaded rod. I imagine it's possible to use button-pad matrices to scale to 2D without increasing cost much

2

u/Far_Tap8225 Sep 14 '26

I'll be honest this is getting way above my technical pay grade as an artist :D but I've noted everyone's comments down in a document so I can refer back to it when I need or research further. It does all sound interesting though!

63

u/sjaakwortel Sep 14 '26 • Bravo

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.

29

u/Blue_The_Snep Sep 14 '26

not much force at all, you can stop most motorized faders with your pinky while your hand is fallen asleep and limp

19

u/NuncioBitis Sep 14 '26

they sell a pill for that...

3

u/Far_Tap8225 Sep 14 '26

Thankyou, I'm trying to keep the cost down so maybe I'll look into a more powerful solution when the project (hopes) works.

4

u/spusuf Sep 14 '26

you can always make one DIY. For the most part it's:

  • a linear actuator (a threaded rod with a nut that can't spin),
  • a motor with a low stall torque (nowadays a tiny stepper would be great for this), and a potentiometer for position feedback.

1

u/Far_Tap8225 Sep 15 '26

Stumbled over this project and now I understand exactly what you mean here now. This project is immense too!

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.

1

u/Far_Tap8225 Sep 14 '26

Excellent. Would the mega accept 24 output for servos (my maximum). I was originally looking at 2 x Unos as i saw in another post they can take 12 each but syncing them up. Thanks for you help

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?

1

u/Far_Tap8225 Sep 14 '26

haha I'm unfortunately not making a nuclear reactor :D
I'm looking into stepper motors as we speak and have found some nice cam follower solutions too so thankyou.

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

I'm unsure of the idea of looking random over being random apologies. I wanted originally that you press a button and a Random Number is generated and output to each position. It looks as though I'm going to use motors though but maybe I'll come back to it. thanks

1

u/JeffSergeant Sep 14 '26

The difference is whether they're mathematically random, whether you'll never see the same pattern again. Or whether it just needs to look all messy to the casual observer but is actually moving in a predictable pattern.

The former needs individual control, the latter could be done with basic clockwork. (a variation on this sort of effect)

1

u/Far_Tap8225 Sep 14 '26

gotcha!!! I think for now I'll use the idea like in your screenshot but would like to eventually get a unique RNG each time.

1

u/otac0n Sep 14 '26

You can do this with a multiplexer.  Also Adafruit has motorized potentiometers like that available.

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!

1

u/wigitty Sep 14 '26

BTW, if you're going to use servos, DO NOT PLUG ALL OF THE SERVO 5v WIRES INTO THE ARDUINO. You need a separate power supply for them, they draw too much current for the power supply built into the Arduino, and will blow it up. You can get shields to handle the wiring for you.

1

u/ventus1b Sep 14 '26

Starting small is the way to go, but I'd start with two because that way you're less likely to code yourself into a corner when it comes to N -> N+1.

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/jaknil Sep 14 '26

Your project reminds me of this million dollar one, https://youtu.be/k7W3HIYbKUY?si=CschYEGv_Y0IiE6a

A know a guy who was part of building and maintaining it, with industrial level safety, fun but very complicated project!

Caveat: I don’t know the actual price of this installation, but I know the parts used and their market price.

2

u/Far_Tap8225 Sep 14 '26

that really is a beautiful installation. I'm an artist before a designer (tho experienced in both) so appreciate that greatly. It is exactly what I'm after as well (but on a single plane and on a smaller scale) so this does speak to me.

I did consider continuous vertical wave motion of my straws/ pipes and might go back to it if I can get it working with motors.

'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.' PERFECT.

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

1

u/Far_Tap8225 Sep 14 '26 edited Sep 15 '26

Sounds simplistic.. care to elaborate further please?

EDIT: its cool I've found out now.