Introduction
A conductivity switch can be used to detect if an object has electrical conductivity. It can detect not only good conductors like wire, coin, and metal, but also poor electrical conductors such as human, fruit, and plants. Use this module to make interactive applications, for instance, fruit pianos, musical wind chimes or interactive video games.
Specification
- Operating Voltage: 3V-5V
- Operating Current: TBD
- Connector: PH2.0-3P
- Product Dimension: 26×39mm/1.02×1.54"
- Signal Type: digital (0 or 1)
Pinout
Number | Name | Description |
---|---|---|
1 | GND | Negative |
2 | VCC | Positive |
3 | Signal | Digital Signal Line |
4 | LED | Switch Indicator |
5 | Alligator Clip | Conduct electricity |
Usage Description
Touch the positive and negative points of the switch in figure below to change the output state of the switch; or connect them to a fruit to generate digital signal.
Principle
The conductivity switch detects the existence of the current, then generate and output digital signal.
Application
(1) Detect the conductivity of objects
Description: connect the module and fruits with wires and display the result on the OLED module.
Components:
BOS0012 Conductivity Switch | Alligator Clip | BOS0044 OLED Display Module |
BOS0035 Mainboard-3IO | MBT0039 micro:bit | BOS0040 micro:bit |
Tips: micro:bit and Micro:bit BOSON expansion boards are used in the programming example.
Non-programming Sample
Connection:
Programming Sample
Connection:
Flow Chart:
Mind+ Sample Program:
Makecode Sample Program:
Video Demo:
Non-programming | Programming |
---|---|
(2) Detect Metal Object
Description: When a metal object is detected, the buzzer starts buzzing.
Components:
BOS0012 Conductivity Switch | Alligator Clip | BOS0020 Buzzer Module |
BOS0035 Mainboard-3IO | MBT0039 micro:bit | BOS0040 micro:bit |
Tips: micro:bit and Micro:bit BOSON expansion boards are used in the programming example.
Non-programming Sample
Connection:
Programming Sample
Connection:
Flow Chart:
Mind+ Sample Program:
Makecode Sample Program:
FAQ
For any questions, advice or cool ideas to share, please visit the DFRobot Forum
Turn to the Boson Kit Page