Pierre6 wrote:
Hi guys! Me again.
We are going to implement it as shown in the picture. The only thing i'm not sure of is the exact value of the resistance. Vin is 5V; Vout needs to be 5, 4, 3, 2, 1 or 0V. Because i don't want to much current, i thought using five 1 kOhm resistors.
Can this work?
Thanks!
Any rotary linear potentiometer will do the job, resistance (and wattage) depends on how much current you need.
You can go for this discrete divider solution as on the picture, but if you connect something with low impedance to it, you can have sparking on switch contacts, so you have to add an capacitor between Vout and ground.