2. OBPushButton - Blue

2.1. Introduction


This is a digital push button sensor, which detects your press action and it is ideal for beginners to use.

../../_images/iM1rurh.jpg

2.2. Characteristics


  • The 3-pins ports is easy to plug and play.

  • It can work with micro:bit in 3V.

2.3. Specifications


Item | Parameter :-: | :-: SKU|EF04034 Power Supply|3V-5.5V Connector Type|Analog Pins Definition|1-Signal 2-VCC 3-GND Response |Quick response with high sensitivity Circuit|Simple Stability|Stable and durable

2.4. Outlook and Dimension


../../_images/eNbM5Kz.png

2.5. Quick to Start


Materials used and connection diagram

  • Connect to the P1 port as the picture shows

    Take sensor:bit for example

../../_images/OkMNDbJ.png

Program as the picture shows

../../_images/HyjB47U.png

Reference

Links: https://makecode.microbit.org/_WhpgVrc8sPCM

You can also download the links below:

---

Result

  • While the button being pressed, an icon is showing on the micro:bit; while released, a rectangle is showing on the micro:bit.

2.6. Relevant Cases


2.7. Technique Files