voltage diviced have ok,
but how i read voltage at rotary switch if i add 4 pin come in 12 volt and need read arduino A0 what position have used,
1,2,3,4 pin come 12 volt, and i think use 14k,20k,30k,50k ohm resistor ewery pin and 10k resistor to ground, and center take out to arduino analog pin read what volt have and what position is connected.
think me wrong voltage divided ? R1=14k,20k,30k,50k, out come 2,3,4,5 volt, R2 have 10k ohm.
and how i read analogread thats ?
and make case what i want do different position. or what is best way read rotary switch position ? simple way ?
i not has code arduino lot,
and want learn how read analog and use 4 different position and do case ewery position different program.
if pos=1 do pump x time, if pos=2 do y time, if pos=3 do z time etc,etc,
case 1 do somethink break, case 2: do somethink break: case3, case 4, etc,