Quick-links:
5 'tactile' buttons in an up, down, left, right, centre configuration.
Each pin is connected to a single button. When a button is pressed, its pin will be connected to ground.
It is suggested that pull-up resistors are used on the uC's input pins to ensure that a 'high' state is read when the buttons are not being pressed. This can either be done using an external resistor or by configuring internal pull-up resistors to be activated.
On (most?) AVR ATMega and ATTiny uCs, internal pull-ups can be enabled by simply setting the relevant PORT bit for an input pin to '1' (this assumes that the global "Pull-up Disable" [PUD] bit [in MCUCR] hasn't been changed from it's default of 0 [pullups enabled]).
Sample code will be available soon. it will include provision for debouncing of the buttons.
Note: We've now dropped the 'right-angled pins' option to save confusion. The vast majority of people
want the plain 'straight pins' option, meaning that the board sits flat on the top of a breadboard.
If you really, really want right-angled pins (or even no pins at all), just order the 'straight pins' version and
drop us an email at the same time - we'll sort it out for you.
Note: This part is currently being made with black buttons, rather than the white ones shown in the pictures.
Parts with a BMB0041 prefix.
| Part# | Description | price | |
|---|---|---|---|
| BMB0041SA | straight pins | £4.00 | Add ![]() |
| BMB0041RA | right-angled pins | £ | no longer available |
| Version | Date | File | Size |
|---|---|---|---|
| 1.1 | 2008-09-15 | (20.0 KB) |