pic: Multi-state switches

3f0b981a8105f42b73ee514ad74d824c_l.jpg

Hey Mike,

Like you and your team a lot (after all, our schools share the same first name), however could you give a few words on how this voltage divider works for us?

-Jim

Don’t know exactly his original plan but the circuit on the left is appears to be a simple digital on/off. The one on the right could be used with the analog input to sense two different voltages (1.67V and 3.33V) and possible options in your program.

Both are still dual state. Use the one on the left as there will be some floating voltage on the one on the right that could cause unexpected behavior of their robot.

The one on the left has a pull up resistor to keep the voltage steady, even through transition.