Tabs

More debugging...

Now, to get the button presses to work.  This is a bit of a software problem as well.  The idea behind the grid system was that every button switch would be connect the analog input of the microcontroller to the middle of a voltage divider: when a complete wrong button were pressed, the voltage read would be zero, if a button in the right column, but wrong row were pressed, the voltage would be 5v, and if the correct button were pressed, the voltage would be somewhere inbetween.  (see schematic here).  Thats the theory of course, as you can see from this sample output reading, it still doesn't quite work.... (I think i cycled through every button here and took an output reading while holding a button down)

No comments:

Post a Comment