KY-036 Metal touch sensor module

KY-036 Metal touch sensor module: How to use, how to work, pinouts, datasheets, sample code

0
107

KY -036 Metal touch sensor is a simple and useful module for detecting metal objects. Actually, this module has a very simple way of working. When you touch the mosfete in the module with a metal object, a low output voltage is generated. This small voltage is amplified by the LM386 and transferred to the analog output.

KY-036 Metal touch sensor module schematic diagram

 

KY-036 Metal touch sensor module pinout

If you want an analog output signal, you must get a signal from the AO output. For example, if you want the output signal to increase as a metal gets closer and the output signal to decrease as it moves away, you should use the analog output. If you want to get a digital output from the sensor, you should get a signal from the DO output. For example, if you want an LED to light up when metal is detected, if you want it to turn off when it is not detected, you should use a digital output. You can make the necessary precision for your applications with the trimmer on the module.

 

How to use KY-036 Metal touch sensor module with Arduino

In a project you want to get an analog output, you can connect Arduino as follows.

Sample Arduino Code:

If you load the code below, when you turn on the Serial monitor, you can get analog values between 0-1023 according to the proximity of the metal to the sensor.

 

// 01-05-2021

//PinOuts.net

int touchPin = A0;

int sensorValue = 0;

void setup () {

Serial.begin (9600);

}

void loop () {

sensorValue = analogRead (touchPin);

Serial.println (sensorValue, DEC);

delay (1000);

}

 

 

KY-036 Metal touch sensor module resources

 

KY-036 Metal touch sensor module Datasheet

 

 

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here