Let's Make Robots!

touch sensor

Hello everybody! Well, this is my first robot here at LMR. I see great robots in the galleries made ​​by people who have a lot of talent around the world. Well, … Read more

Multiple swithces to analog input?

Just had an idea. I'm planning to use a LOT of (tactile) switches on a walking robot. For instance I wanna put several under each foot. But it seems like a waste of pins to use a digital pin for each switch (or use multiplexers). So I thought I might be able to connect the switches in paralel and read several at a time from an analog input using resistors of different sizes connected in serial with each switch. Like this:

switches_s.jpg