rrbutani / glowing-potato

<needs a name>
MIT License
1 stars 0 forks source link

Button circuit prototype #5

Closed rrbutani closed 5 years ago

rrbutani commented 5 years ago

Before we manufacture board V0, we should build and test the ADC/digital in button circuit.

Since we're mostly concerned about the electrical soundness of the design, we can test this on a breadboard with a TM4C.

We should check that:

rrbutani commented 5 years ago

Another thing to think about (for later) is whether we should poll the ADC constantly (or repeatedly, at least) while the digital input is high.

The edge case to consider is when a button is pressed and, before that button is released, another button is pressed. The second button press (and the release of one of the two buttons) will not trigger interrupts which means that if we don't poll the ADC on a timer while the digital input is high, we'll miss such button presses.

This isn't necessarily bad; ignoring button presses while another button is already held might be perfectly reasonable behavior.

rrbutani commented 5 years ago

Finished by @spendharkar in 041b4806ed6dc4f6f6d12590575530fffd11401e.