keyestudio
Share your creative ideas with us here
By Alisa | 27 May 2024 | 0 Comments

How to Use Touch Sensor to Control Active Buzzer?

Overview
 

In this project, you will learn how to use Keyestudio touch sensor to control active buzzer.


Component Required:
 

  • Micro:bit main board*1

  • Keyestudio Micro bit Sensor V2 Shield*1

  • USB Cable*1

  • keyestudio Capacitive Touch Sensor*1

  • keyestudio Digital Buzzer Module*1

  • DuPont jumper wire*6

  • Premium Battery Holder 6-cell AA*1

  • 1.5V AA Battery*6


Component Introduction
 

Capacitive Touch Sensor:
 

The module is based on a touch detection IC. This module allows you to remove the troubles of conventional push-type buttons. It has low power consumption and wide working voltage.

Powered on, the module requires the stable time about 0.5sec, at the moment all functions are banned to conduct self-calibration, do not touch the key, the calibration cycle is about 4.0sec.

It can be applied to the waterproof electrical, button replacement, etc.


Connection Diagram
 

11


Test Code
 

Img


Test Results
 

Done wiring and powered up, transfer code to micro:bit. When touch the sensing area of sensor, the active buzzer will emit sound, otherwise , it won’t make a sound.

Leave a Reply

Your email address will not be published.Required fields are marked. *
Name
E-mail
Content
Verification code