User push button on Zumo bot

Hi! Yesterday I done Zumo Shield and today test it. Then I did that, I saw, that push button doesn’t work. I research datasheet and find this button. I was thinking why one of their contact go to minus. That I can do for button let’s working?

Hello.

I am not sure I understand what you are saying, but it sounds like the pin 12 user button is not working for you. Could you post some pictures clearly showing the button and how it is connected? Also, how did you determine that the button does not work?

  • Grant

Hello!

I mean, that push button didn`t work.I use a Zumo Sheeld for Anduino and Arduino Uno.

Thank you for you reply and sorry for my English :slight_smile:


Could you post some pictures of the actual button (showing both sides of the PCB)? How did you test the button?

  • Grant

I tested it by this program:
void setup()
{
pinMode(12,INPUT);
pinMode(13,OUTPUT):
}

void loop()
{
if(digitalRead(12)==HIGH)
digiralWrite(13,HIGH);
else
digitalWrite(13,LOW);
delay(1);
}


You need to enable the internal pull-up on pin 12 to use the button:

pinMode(12, INPUT_PULLUP);

Could you try using the pushbutton example code to test the shield’s pushbutton?

- Grant

I replaced pinMode(12,INPUT); and pinMode(12, INPUT_PULLUP); , so now it works :smiley:
Thank you very much)