controling led's using a sliding resistor

I am wanting to use a sliding resistor to control the score of my airhockey table.
I want to control 2 sets of 10 led's using a sliding resistor but have no idea how to do it.
I have no kwonledge of programming or arduino but my friend advised me to use it for my project. If someone has the code or wants to write it for me I would aprieciate the help.

if this is the wrong topic to post it please tell me on which topic I need to post it
the file attached is the sliding resistor I want to use

We usually call those things linear potentiometers rather than sliding resistors. But what exactly is it that you want to control with it? Two sets of 10 LEDs doing what ? What type/size/colours of LEDs?

It's not likely that anyone will want to write you a complete program (unless you want to pay good money for it) but if you can explain what EXACTLY you want to do it may be possible to find some already existing code that will work for you.

Steve

I want to control 2 sets of 10 led's using a sliding resistor

Is that one pot and 10 LEDs per player or one pot and 20 leds per player?

Sounds like a bar graph per player. But who knows.
If you don't want to learn, post in the gigs forum and pay someone.

slipstick:
We usually call those things linear potentiometers rather than sliding resistors.

They can be logarithmic as well :wink:

MGerding:
I am wanting to use a sliding resistor to control the score of my airhockey table.
I want to control 2 sets of 10 led's using a sliding resistor but have no idea how to do it.
I have no kwonledge of programming or arduino but my friend advised me to use it for my project. If someone has the code or wants to write it for me I would aprieciate the help.

if this is the wrong topic to post it please tell me on which topic I need to post it
the file attached is the sliding resistor I want to use

Which Arduino are you planning to use? You need to take into account the number of pins. It can be done with an Uno and e.g. software multiplexing (requires 12 pins for the LEDS). You can also use shift registers (e.g. tpic6B595).

Do you want a single LED to light up for each player or multiple? If multiple, you need to take into account the amount of current required as the Arduino has its limitations.

I was going to suggest LM3916 chips, no Arduino needed.