Out of stock



microbit pushswitch connectionsA pushbutton on a lead for when you need another pushbutton or you want it away from your micro:bit

One lead goes on 3v or GND and the other lead goes on 0, 1, or 2. For advanced applications it is feasible to connect two pins with the pushbutton. It will short circuit the micro:bit if connected between 3v & GND and the button is pressed.

Use the digital input block to read the sensor value:

microbit read and display digital

Click to enlarge

You can use any one of the three pins 0, 1 or 2.

If the other lead is connected to 3v, the pin will register a 1 when the button is pressed.

If the other lead is connected to GND, the pin will register a 0 when the button is pressed. However as the pins default to a 0, this will only work if the pin has something causing it to normally be kept high – a direct connection to 3v and pushing the button will cause a short-circuit. There are legitimate situations where in input to ground is needed but they are edge cases. You can use a current limiting resistor (10k value would be appropriate), but at this stage, getting someone from D&T in to help may be a good idea.


There are no reviews yet.

Be the first to review “Pushbutton”

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.