SKU_BOS0002_Boson_Push_Button_i2r-DFRobot

Introduction

Buttons are now widely used in doorbell, desk lamp, air conditioner remote control, fire alarm and other scenes. These Boson push buttons output digital signal 0 or 1 with three colors red/blue/yellow provided. They can be used for not only Mind+ and makecode graphical programming but also non-programming projects. And they work well with maincontrollers such as micro:bit and Arduino.

Specification

Pinout

No. Label Description
1 GND Power -
2 VCC Power +
3 SIGNAL Digital Signal Line

Usage Description

The push button module can recognize button action and output digital signal. When the button pressed, it outputs high level, "On" or "1"; released, outputs low level, "off" or "0”.

Principle

Push-button switches usually have a building block structure. The structural features of push-button switches include button caps, return springs, static contacts, moving contacts, housings, and support rods. It is normally designed as composite push button switch with a pair of normally-open and normally-closed contacts.
When the button is not pressed, the moving contact is connected to the static one above, forming normally-closed contacts, while the moving contact is disconnected to the static one below, forming normally-open contacts; when the button is pressed, normally-closed contacts disconnect and normally-open ones connect. After releasing it, the push switch will return to the initial status under the action of the return spring.

Application

1.Button Lamp

Description:

Control the LED by a button module. Press down the button to switch on the LED; release, it goes off.

Components:

BOS0002 Push Button Module BOS0017 LED Module BOS0035 Mainboard-3IO
MBT0039 Micro:bit BOS0040 Micro:bit BOSON Expansion Board

Tips: micro:bit and Micro:bit BOSON expansion boards are used in the programming example.

Non-programming Sample

Connection Diagram:

Connection 1

Programming Sample

Connection Diagram:

Connection 2

Flow Chart:

Mind+ Sample Program:

Mind+1

Makecode Sample Program:

Demo Videos:

Non-programming Programming

2.Anti-theft Exhibition Booth

Description:

The anti-theft exhibition booth works in this way: when the item is taken away from the booth, the booth will give an alarm. When the item is placed on the booth, at this time the button is pressed; when it's taken away, the button is released and the buzzer makes sounds.

Components:

BOS0002 Push Button Module BOS0020 Buzzer Module BOS0029 Logic Module-NOT
MBT0039 Micro:bit BOS0040 Micro:bit BOSON Expansion Board BOS0035 Mainboard-3IO

Tips: micro:bit and Micro:bit BOSON expansion boards are used in the programming example.

Non-programming Sample

Connection Diagram:

Connection 3

Programming Sample

Connection Diagram:

Connection 4

Flow Chart:

Mind+ Sample Program:

Mind+4

Makecode Sample Program:

3.Getting-off Indicator (Programming)

Description:
You have to signal the driver when you want to get off a bus. But sometimes the driver may not notice your signal becase you sit at the back of the bus. After installing the indicator, press the red button, and the buzzer sounds and LED lights up to remind the driver that there are passengers to get off.

Components:

BOS0002 Push Button Module BOS0020 Buzzer Module BOS0017 LED Module
MBT0039 Micro:bit BOS0040 Micro:bit BOSON Expansion Board

Connection Diagram:

Flow Chart:

Mind+ Sample Program:

Makecode Sample Program:

Demo Videos:

Programming

4.Rush-Answer Machine (Programming)

Description:

Make a rush-answer machine, when people presses down the button, turn on the corresponding LED, and stop another LED being turned on.

Components:

BOS0002 Push Button Module BOS0002 Push Button Module BOS0017 LED Module
BOS0017 LED Module MBT0039 Micro:bit BOS0040 Micro:bit BOSON Expansion Board

Tips: micro:bit and Micro:bit BOSON expansion boards are used in the programming example.

Programming Sample

Connection Diagram:

Flow Chart:

Mind+ Sample Program:

Makecode Sample Program:

Demo Videos:

Programming

FAQ

For any questions, advice or cool ideas to share, please visit the DFRobot Forum

Turn to the Boson Kit Page