Pololu Robotics & Electronics
My account Comments or questions? About Pololu Contact Ordering information Distributors

External button on 32u4


The pinout of the 32u4 indicates the A button comes out of the header used for the lcd. If I want to use an external button, how do I go about doing that?



One way to add an external button to act in place of button A would be to connect it to pin 14 on the Zumo 32U4 with a pull-down (1k) resistor so that when the button is pressed it pulls that I/O pin to ground through the resistor. You can look at the Zumo 32U4 schematic diagram under the “Resources” tab on its product page. However, if you want the external button to not have the same effect as pressing button A, then you will need to move it to a different pin and you might need to free up an I/O pin. The “Pin assignments” section in the Pololu Zumo 32U4 Robot User’s Guide has information on what pins are used on the Zumo for which functions. If you let me know what pin you would like to connect a button to and what other features of the Zumo you plan to use in your program, I can let you know if it should work.

Please note that although button A shares the same pin as the LCD on the Zumo 32U4, you should be able to use both the button and the LCD screen at the same time.

- Amanda


Thank you. I shorted 14 to ground with a button. Will that cause a problem without the resistor?


If you plan to transmit data to or receive data from the LCD, you need to use a resistor to prevent a short when the button is pushed at the same time the LCD is updating. We use a 1k (as I mentioned in my previous post) to make sure it is strong enough to combat the internal pull-up on that pin of the ATmega 32U4.

- Amanda