Can this DC dimmer work with a leonardo using usb?

Edited: Hello, I'm wanting to have a dimmer like this that clicks off. The description on aliexpress say it does LED.

I will only have usb power connection. Can this dc dial work with a leonardo with only usb? I'm thinking no. If not, can someone point me to a cheap solution similar to this click/off dimmer? I really appreciate it.

Thank you!

https://m.ebay.com/itm/DC-5V-35V-5A-20khz-LED-PWM-DC-Motor-Controller-Speed-Regulation-Dimmer-ER/401412400823?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649

It is not designed to work with any processor, it is a stand alone unit.

What kind of LED(s) do you have?

What do you mean "click off"? Do you want a manual switch? Do you want a pot?

What do you really want to do?

I realize I need a potentiometer. When I say click off, it doesn't spin continuously like an encoder. It has off/minimum level, and max level...like a volume. I'm wanting to control 5v leds using power from arduino only. I know it sounds like a dumb question, since it is dc and stand alone, but i was reading about the arduino being able to do all kinds of things with different voltages and also dc. I figured it would not work, but thought i would ask. I'm trying to learn what these boards can do, and when you already know about them some questions sound stupid.

Grumpy_Mike: It is not designed to work with any processor, it is a stand alone unit.

Thanks Grumpy Mike

When I say click off, it doesn't spin continuously like an encoder. It has off/minimum level, and max level...like a volume.

Sometimes pots have a switch at the end of their travel, so if you carry on turning anticlockwise you will feel it click. However, I have only ever found these with a LOG pot, sometimes called an analog taper.

The Arduino can do what that board did and generate a PWM signal. See this for how PWM dimming works http://www.thebox.myzen.co.uk/Tutorial/PWM.html.

The only difference is that the board on eBay will handle more voltage and current than a direct Arduino pin. To handle the same voltage and current on an Arduino you have to add a logic level FET. One convenient way of doing this is this product although their are many more. Arduino FET Shield

Ok thanks for letting me know. I ordered a pile of linear 10k pots, but will get some log pots. Would this one have that click off?

https://m.ebay.com/itm/2-x-10K-OHM-Logarithmic-Taper-Potentiometer-Pot-A10K-10KA-FREE-SHIPPING/280779174020?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2055119.m1438.l2649

Edit: i also messaged the seller asking

gr4474: Ok thanks for letting me know. I ordered a pile of linear 10k pots, but will get some log pots. Would this one have that click off?

https://m.ebay.com/itm/2-x-10K-OHM-Logarithmic-Taper-Potentiometer-Pot-A10K-10KA-FREE-SHIPPING/280779174020?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2055119.m1438.l2649

Edit: i also messaged the seller asking

Those look like normal pots to me with no switch.

Would this one have that click off?

If it dosn't say it hasn't got.

Once these were common but now they are rare and I haven't seen a liner one for 40 years.

DrAzzy: Those look like normal pots to me with no switch.

Shazam...I need to search "10k potentiometer switch"

THANK YOU

Well there is only one way to find out. i just ordered the 5 wire type with a separate switch, and also a 3 wire that says it is a switch.

If anyone is wondering why I ordered 250K, this is an interesting video that shows it doesn’t matter what k pot for arduino: Potentiometer Values? Does it matter in your next Arduino Project? - YouTube

this is an interesting video that shows it doesn't matter what k pot for arduino:

Ah another idiot that dosn't understand what they are doing. The net is full of them.