BotBoardII "A" button to initiate AL5 arm sequence

I’m attempting to initiate an AL5D movement sequence when the “A” button is pressed on my BotBoardII. The BotBoardII is carrying a BASICatomPro28.

I’ve attempted to write a program (borrowing some lines of code from a link on the “BASIC Atom Pro Programming Tutorial”), but it isn’t working. The arm is going through the movement sequence regardless of whether the button is pressed. The arm should only have the sequence initiated if button “A” is pressed. The Code is attached. Does anyone know what I can do to fix my problem?

Thanks! Have a great day!
ifd2.bas (973 Bytes)

In BASIC, you have to call a label using either a goto or a gosub command. Try something like this:
ifd2.bas (958 Bytes)

Thanks for the input James (not calling you Jim)! However, it still isn’t working. I feel as though the program just isn’t recognizing “button A” on the botboard as the input. It keeps running through the sequence no matter what. Any other ideas?

Thanks Again for your time and thought!
~Jon

Oh, didn’t catch this before, but your button logic is backwards. 1 should be off, 0 is on.

When using a pullup resistor the input is high when the button is not being pressed. It goes low when the button is pressed. Another thing is make sure the button and LED shunts are installed.

Hi Jim (Do you prefer James or Jim?),

My program is now not running the sequence, but when I press the “A” button, nothing is initiated. I believe somehow the “A” button is not being recognized as the input. What is the input callout for the BotBoardII “A” button?

Also, could you inform me of how to make sure the button shunts are installed correctly?

Thanks so much! 8)
~Jon

I prefer Jim, but my son prefers James.

Look at the manual. lynxmotion.com/images/html/build151.htm

Check out item 2.

Lets see an image of your wiring.