Sensors | LK Tronics https://lk-tronics.com/category/sensors/ Components for the Future Sat, 11 Nov 2023 04:45:18 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 https://i0.wp.com/lk-tronics.com/wp-content/uploads/2023/11/cropped-Main-Logo-lktronics-2023-512-x-512-px-1.png?fit=32%2C32&ssl=1 Sensors | LK Tronics https://lk-tronics.com/category/sensors/ 32 32 153475254 What is 801S Vibration Sensor with Arduino https://lk-tronics.com/801s-vibration-sensor-with-arduino/ https://lk-tronics.com/801s-vibration-sensor-with-arduino/#respond Wed, 08 Nov 2023 10:02:13 +0000 https://lk-tronics.com/?p=13888 LK Tronics
What is 801S Vibration Sensor with Arduino

The 801S Vibration Sensor is a module use to detect vibration or mechanical movements. It is commonly employe in various projects and applications where the detection of physical vibrations is

What is 801S Vibration Sensor with Arduino
Research & Development Department

]]>
LK Tronics
What is 801S Vibration Sensor with Arduino

The 801S Vibration Sensor is a module use to detect vibration or mechanical movements. It is commonly employe in various projects and applications where the detection of physical vibrations is required. This sensor can used for purposes such as security systems, impact detection, and vibration monitoring. Here are some key features and information about the 801S Vibration Sensor:

  • Operating Principle: The 801S Vibration Sensor is typically based on a piezoelectric crystal. When the sensor experiences a mechanical vibration or impact, it generates a small voltage signal due to the deformation of the crystal. This signal can used to detect the vibration.
  • Output: The sensor typically provides a digital output signal. When a vibration is detect, the sensor output goes from a LOW to a HIGH state. It can interface with microcontrollers or other digital devices.
  • Sensitivity Adjustment: Some versions of the 801S sensor come with a sensitivity adjustment potentiometer. This allows you to adjust the sensor’s sensitivity to different levels of vibration.
  • Operating Voltage: The sensor usually operates at a low voltage, typically around 3.3V to 5V, making it compatible with most microcontrollers.
  • Applications: This sensor is often use in applications where the detection of movement or vibration is essential, such as in burglar alarms, motion-activated lights, or as part of a system to monitor the integrity of structures or machinery.
  • Wiring: The sensor typically has three pins: VCC (power supply), GND (ground), and OUT (output). Connect VCC and GND to your power supply, and the OUT pin to a digital input pin on your microcontroller.

***************************************************************************************************************

/* Company Name:LK Tronics
* Author: Research & Development Department
EXPERT GUIDANCE TO BRING YOUR DREAM PROJECT TO LIFE
* Date: 2020/ 08/ 25
* https://lk-tronics.com/
***********************************************
* All rights reserved. No part of this code may be reproduced, distributed,
* or transmitted in any form or by any means, including photocopying, recording,
* or other electronic or mechanical methods, without the prior written permission
* of LK Tronics, except in the case of brief quotations embodied in
* critical reviews and certain other noncommercial uses permitted by copyright law.

************************************************/
const int vibrationPin = 3;  // Define the pin

void setup() {
  pinMode(vibrationPin, INPUT);  // Set the sensor pin as an input
  Serial.begin(9600);
}

void loop() {
  int vibrationState = digitalRead(vibrationPin);  // Read the state of the sensor
  
  if (vibrationState == HIGH) {
  Serial.println("Vibration detected!");//Print a message when vibration is detected

  }
}

***************************************************************************************************************

What is 801S Vibration Sensor with Arduino
Research & Development Department

]]>
https://lk-tronics.com/801s-vibration-sensor-with-arduino/feed/ 0 13888
What is MLX9014 IR Temperature Sensor with Arduino https://lk-tronics.com/mlx9014-ir-temperature-sensor-with-arduino/ https://lk-tronics.com/mlx9014-ir-temperature-sensor-with-arduino/#respond Wed, 08 Nov 2023 09:50:22 +0000 https://lk-tronics.com/?p=13883 LK Tronics
What is MLX9014 IR Temperature Sensor with Arduino

The MLX9014 is an infrared (IR) temperature sensor manufacture by Melexis. It is a non-contact temperature sensor that can accurately measure the temperature of an object without physical contact. The

What is MLX9014 IR Temperature Sensor with Arduino
Research & Development Department

]]>
LK Tronics
What is MLX9014 IR Temperature Sensor with Arduino

The MLX9014 is an infrared (IR) temperature sensor manufacture by Melexis. It is a non-contact temperature sensor that can accurately measure the temperature of an object without physical contact. The MLX9014 is often use in various applications, including industrial temperature measurement, automotive systems, and consumer electronics. Here are some key features and information about the MLX9014 IR temperature sensor:

What are the Feature

  • Operating Principle: The MLX9014 is based on the principles of infrared thermometry. It detects the thermal radiation emitted by an object and converts it into a temperature reading.
  • Measurement Range: The MLX9014 typically has a wide temperature measurement range, making it suitable for various applications. The specific measurement range may vary depending on the model.
  • Accuracy: Melexis give different versions of the MLX9014 with varying levels of accuracy, you can choose a model that your application’s requirements. The accuracy is typically specified in terms of temperature resolution and measurement error.
  • Analog Output: The MLX9014 usually provides an analog output signal, as a voltage or current, that corresponds to the measured temperature. The output is typically linear and can interfaced with microcontrollers or other analog electronics.
  • Digital Interface: Some versions of the MLX9014 come with a digital interface, as I2C or SPI, which simplifies communication with microcontrollers and provides digital temperature readings.
  • Emissivity Correction: The sensor can calibrated for different types of surfaces with varying emissivity to ensure accurate temperature readings. Emissivity is a measure of how efficiently an object emits thermal radiation.
  • Field of View: The field of view (FOV) or spot size of the sensor can vary between models. It determines the area on the object from which the sensor collects thermal radiation for temperature measurement.
  • Supply Voltage: The MLX9014 typically operates on a low supply voltage, making it suitable for battery-powered and low-power applications.
  • Applications: The MLX9014 is use in a wide range of applications, including industrial temperature monitoring, automotive climate control, medical devices, and consumer electronics like non-contact thermometers.
  • Mounting Options: The sensor can mounted in various ways, through-hole or surface-mount (SMD) options, depending on your application’s requirements.

The datasheet will contain information about the pin configuration, operating conditions, calibration procedures, and other details necessary to correctly interface and use the sensor in your project.

Arduino Code

***************************************************************************************************************

/* Company Name:LK Tronics
* Author: Research & Development Department
EXPERT GUIDANCE TO BRING YOUR DREAM PROJECT TO LIFE
* Date: 2020/ 08/ 16
* https://lk-tronics.com/
***********************************************
* All rights reserved. No part of this code may be reproduced, distributed,
* or transmitted in any form or by any means, including photocopying, recording,
* or other electronic or mechanical methods, without the prior written permission
* of LK Tronics, except in the case of brief quotations embodied in
* critical reviews and certain other noncommercial uses permitted by copyright law.

************************************************/
#include <Wire.h>
#include <MLX9014.h>

MLX9014 mlx;

void setup() {
  Serial.begin(9600);
  Wire.begin();
  mlx.begin();
}

void loop() {
  float objectTemperature = mlx.readObjectTemperatureCelsius();
  float ambientTemperature = mlx.readAmbientTemperatureCelsius();
  
  Serial.print("Object Temperature: ");
  Serial.print(objectTemperature);
  Serial.println(" °C");
  
  Serial.print("Ambient Temperature: ");
  Serial.print(ambientTemperature);
  Serial.println(" °C");
  
  delay(1000);
}

***************************************************************************************************************

What is MLX9014 IR Temperature Sensor with Arduino
Research & Development Department

]]>
https://lk-tronics.com/mlx9014-ir-temperature-sensor-with-arduino/feed/ 0 13883
What is TTP223 Touch Sensor with Arduino https://lk-tronics.com/ttp223-touch-sensor-with-arduino/ https://lk-tronics.com/ttp223-touch-sensor-with-arduino/#respond Wed, 08 Nov 2023 09:38:39 +0000 https://lk-tronics.com/?p=13878 LK Tronics
What is TTP223 Touch Sensor with Arduino

The TTP223 is a popular touch sensor module that can detect human touch or capacitive touch. It is widely use in various electronics projects and applications. Here are some key

What is TTP223 Touch Sensor with Arduino
Research & Development Department

]]>
LK Tronics
What is TTP223 Touch Sensor with Arduino

The TTP223 is a popular touch sensor module that can detect human touch or capacitive touch. It is widely use in various electronics projects and applications. Here are some key features and information about the TTP223 touch sensor:

Key point

  • Operating Principle: The TTP223 touch sensor module uses capacitive touch technology to detect a touch. When a user touches the surface of the sensor, it changes the capacitance of the touchpad, and the module can sense this change.
  • Operating Voltage: TTP223 modules typically operate at a voltage of 2.0V to 5.5V, making them compatible with a wide range of microcontrollers and digital devices.
  • Output Modes: The TTP223 module usually provides two output modes, which can select using a jumper or solder bridge on the module:
  • Toggle Mode: In this mode, a single touch will toggle the output state between HIGH and LOW. Another touch will toggle it back to the previous state.
  • Momentary Mode: In this mode, the output is HIGH as long as there is a touch detect, and it goes LOW as soon as the touch is removed.
  • Sensitivity Adjustment: Some TTP223 modules come with a sensitivity adjustment potentiometer, allowing you to adjust the touch sensitivity according to your requirements.
  • Output Signal: The module typically provides a digital output signal (HIGH or LOW) that can read by a microcontroller or other digital devices.
  • Application: TTP223 touch sensors are use in various applications, such as touch-sensitive lamps, interactive displays, and DIY electronics projects. They are a simple way to add touch functionality to your projects.
  • Wiring: To use a TTP223 module, you need to connect it to your microcontroller or digital device using its VCC, GND, and OUT pins. The specific pinout may vary depending on the module’s manufacturer, so be sure to check the datasheet or documentation provided with your particular module.
  • Interfacing: When interfacing with a microcontroller, you can use the digital output to trigger actions or responses in your project whenever a touch is detect.
  • Libraries and Code: Depending on your microcontroller platform, you may find libraries or code examples that make it easier to interface with the TTP223 touch sensor module. This can save you time in setting up and using the sensor in your projects.

It’s important to refer to the datasheet and documentation provided by the manufacturer of the specific TTP223 module you are using, as pin configurations and features may vary between different models. Additionally, it’s essential to handle the sensor module with care to avoid damage and ensure proper functionality.

Arduino code

***************************************************************************************************************

/* Company Name:LK Tronics
* Author: Research & Development Department
EXPERT GUIDANCE TO BRING YOUR DREAM PROJECT TO LIFE
* Date: 2020/ 08/ 10
* https://lk-tronics.com/
***********************************************
* All rights reserved. No part of this code may be reproduced, distributed,
* or transmitted in any form or by any means, including photocopying, recording,
* or other electronic or mechanical methods, without the prior written permission
* of LK Tronics, except in the case of brief quotations embodied in
* critical reviews and certain other noncommercial uses permitted by copyright law.

************************************************/

const int touchSensorPin = 8; // Define the pin where the TTP223 module is connected

void setup() {
  pinMode(touchSensorPin, INPUT); // Set the sensor pin as an input
  Serial.begin(9600);
}

void loop() {
  int touchState = digitalRead(touchSensorPin); // Read the state of the Sensor

  if (touchState == HIGH) {
    Serial.println("Touch detected!"); // Print a message when touch is detected
    // You can perform any actions or logic here when a touch is detected
  }

  delay(100);
}

***************************************************************************************************************

VISIT OUR FACEBOOK PAGE FOR MORE INFO | MORE PRODUCT IN OUR SHOP

What is TTP223 Touch Sensor with Arduino
Research & Development Department

]]>
https://lk-tronics.com/ttp223-touch-sensor-with-arduino/feed/ 0 13878
What is Analog TDS Sensor with Arduino https://lk-tronics.com/analog-tds-sensor-with-arduino/ https://lk-tronics.com/analog-tds-sensor-with-arduino/#respond Wed, 25 Oct 2023 09:04:27 +0000 https://lk-tronics.com/?p=13713 LK Tronics
What is Analog TDS Sensor with Arduino

An analog TDS sensor measures the stuff dissolved in water. It gives a signal showing how much solid stuff, like salts and minerals, is in the water. People use these

What is Analog TDS Sensor with Arduino
Research & Development Department

]]>
LK Tronics
What is Analog TDS Sensor with Arduino

An analog TDS sensor measures the stuff dissolved in water. It gives a signal showing how much solid stuff, like salts and minerals, is in the water. People use these sensors to check if the water is clean, like in gardens or for treating water. They sometimes turn the analog signal into a digital number for better studying and managing.

To use an analog TDS (Total Dissolved Solids) with an Arduino, you can follow these steps:

  1. Components Needed:
    • Arduino board (e.g., Arduino Uno, Arduino Nano)
    • Analog TDS sensor module
    • Jumper wires
    • Breadboard (optional)
  2. Wiring Connections:
    • Connect the VCC pin of the TDS sensor to the 5V pin on the Arduino.
    • Connect the GND pin of the TDS sensor to the GND on the Arduino.
    • Connect the analog output pin of the TDS sensor to one of the analog pins on the Arduino (e.g., A1).
  3. Upload Code:
    • Use the following sample code to read data from the analog TDS sensor and display it on the serial monitor:
  4. Calibration
    • Depending on your specific TDS sensor model and the TDS scale you’re interested in (measured in parts per million – ppm), you may need to calibrate the sensor to convert the raw analog readings to the desired unit of measurement. Adjust the mapping and scaling accordingly in the code.
  5. Testing:
    • Open the Arduino IDE, upload the code to your Arduino, and open the serial monitor (Ctrl+Shift+M). You should see real-time TDS readings displayed in ppm.
    • This setup allows you to interface an analog TDS sensor with an Arduino and obtain TDS measurements, which can be useful for water quality monitoring and analysis, particularly in applications like hydroponics and water treatment.
What is Analog TDS Sensor

***************************************************************************************************************

/* Company Name:LK Tronics
* Author: Research & Development Department
EXPERT GUIDANCE TO BRING YOUR DREAM PROJECT TO LIFE
* Date: 2020/ 05/ 20
* https://lk-tronics.com/
***********************************************
* All rights reserved. No part of this code may be reproduced, distributed,
* or transmitted in any form or by any means, including photocopying, recording,
* or other electronic or mechanical methods, without the prior written permission
* of LK Tronics, except in the case of brief quotations embodied in
* critical reviews and certain other noncommercial uses permitted by copyright law.

************************************************/
int tdsSensorPin = A1;  // Analog pin where the TDS sensor is connected

void setup() {
  Serial.begin(9600);
}

void loop() {
  int tdsValue = analogRead(tdsSensorPin);
  
  // You may need to map the raw value to your TDS scale
  // For example, if your sensor output is 0-1023 and your TDS scale is 0-500 ppm:
  float ppm = map(tdsValue, 0, 1023, 0, 500);
  
  Serial.print("TDS Value: ");
  Serial.print(ppm);
  Serial.println(" ppm");
  
  delay(1000);
}

***************************************************************************************************************

VISIT OUR FACEBOOK PAGE FOR MORE INFO | MORE PRODUCT IN OUR SHOP

What is Analog TDS Sensor with Arduino
Research & Development Department

]]>
https://lk-tronics.com/analog-tds-sensor-with-arduino/feed/ 0 13713
What is MPU6050 Sensor (Accelerometer and Gyroscope Sensor) with Arduino https://lk-tronics.com/mpu6050-accelerometer-and-gyroscope-sensor-with-arduino/ https://lk-tronics.com/mpu6050-accelerometer-and-gyroscope-sensor-with-arduino/#respond Wed, 25 Oct 2023 08:44:16 +0000 https://lk-tronics.com/?p=13708 LK Tronics
What is MPU6050 Sensor (Accelerometer and Gyroscope Sensor) with Arduino

The MPU6050 sensor combines an accelerometer and gyroscope, measuring acceleration and angular velocity in multiple axes. It’s widely used for motion sensing, orientation tracking, and stabilization control in devices like

What is MPU6050 Sensor (Accelerometer and Gyroscope Sensor) with Arduino
Research & Development Department

]]>
LK Tronics
What is MPU6050 Sensor (Accelerometer and Gyroscope Sensor) with Arduino

The MPU6050 sensor combines an accelerometer and gyroscope, measuring acceleration and angular velocity in multiple axes. It’s widely used for motion sensing, orientation tracking, and stabilization control in devices like drones, robots, and virtual reality systems, providing essential data for precise 3D positioning.

To use the MPU6050 accelerometer and gyroscope sensor with an Arduino, follow these steps:

  1. Components Needed:
    • Arduino board (e.g., Arduino Uno or Arduino Nano)
    • MPU6050 sensor module
    • Jumper wires
    • Breadboard (optional)
  2. Wiring Connections:
    • Connect the VCC pin of the MPU6050 to 5V on the Arduino.
    • Connect the GND pin of the MPU6050 to the GND on the Arduino.
    • Connect the SDA pin of the MPU6050
    • Connect the SCL pin of the MPU6050
  3. Install Libraries:
    • To interface with the sensor, you’ll need to install the “Adafruit MPU6050” library. You can do this through the Arduino Library Manager.
  4. Upload Code:
    • Use the following sample code to read data from the sensor and display it on the serial monitor:
  5. Testing:
    • Open the Arduino IDE, upload the code to your Arduino, and open the serial monitor (Ctrl+Shift+M). You should see real-time data from the this sensor, including acceleration and gyroscope readings.
    • This setup allows you to interface the MPU6050 accelerometer and gyroscope sensor with an Arduino and read the motion and orientation data for various applications, including robotics and motion-controlled devices.
Arduino Code

Arduino Code

***************************************************************************************************************

/* Company Name:LK Tronics
* Author: Research & Development Department
EXPERT GUIDANCE TO BRING YOUR DREAM PROJECT TO LIFE
* Date: 2020/ 05/ 14
* https://lk-tronics.com/
***********************************************
* All rights reserved. No part of this code may be reproduced, distributed,
* or transmitted in any form or by any means, including photocopying, recording,
* or other electronic or mechanical methods, without the prior written permission
* of LK Tronics, except in the case of brief quotations embodied in
* critical reviews and certain other noncommercial uses permitted by copyright law.

************************************************/
#include <Wire.h>
#include <Adafruit_MPU6050.h>

Adafruit_MPU6050 mpu;

void setup(void) {
  Serial.begin(9600);
  if (!mpu.begin()) {
    Serial.println("MPU6050 sensor, check wiring!");
    while (1);
  }
}

void loop() {
  sensors_event_t a, g, temp;
  mpu.getEvent(&a, &g, &temp);

  Serial.print("Acceleration: ");
  Serial.print(a.acceleration.x);
  Serial.print(" m/s^2\t");
  Serial.print(a.acceleration.y);
  Serial.print(" m/s^2\t");
  Serial.print(a.acceleration.z);
  Serial.println(" m/s^2");

  Serial.print("Rotation: ");
  Serial.print(g.gyro.x);
  Serial.print(" rad/s\t");
  Serial.print(g.gyro.y);
  Serial.print(" rad/s\t");
  Serial.print(g.gyro.z);
  Serial.println(" rad/s");

  delay(1000);
}

***************************************************************************************************************

VISIT OUR FACEBOOK PAGE FOR MORE INFO | MORE PRODUCT IN OUR SHOP

What is MPU6050 Sensor (Accelerometer and Gyroscope Sensor) with Arduino
Research & Development Department

]]>
https://lk-tronics.com/mpu6050-accelerometer-and-gyroscope-sensor-with-arduino/feed/ 0 13708
What is Load Cell 5 kg Module with Arduino? https://lk-tronics.com/load-cell-5-kg-module-with-arduino/ https://lk-tronics.com/load-cell-5-kg-module-with-arduino/#respond Wed, 25 Oct 2023 08:16:16 +0000 https://lk-tronics.com/?p=13689 LK Tronics
What is Load Cell 5 kg Module with Arduino?

A Load Cell 5 kg Module a transducer that converts mechanical force or load into an electrical signal. It crucially measures force, weight, tension, compression, and more in diverse applications.

What is Load Cell 5 kg Module with Arduino?
Research & Development Department

]]>
LK Tronics
What is Load Cell 5 kg Module with Arduino?

A Load Cell 5 kg Module a transducer that converts mechanical force or load into an electrical signal. It crucially measures force, weight, tension, compression, and more in diverse applications. Load cells include strain gauge, hydraulic, pneumatic, and capacitive types, with strain gauge being the most common and versatile.

The working principle of strain gauge Load Cell 5 kg Module is based on the principle of strain.
This strain alters the resistance in attached strain gauges. This change in resistance is proportional to the applied force and can measure as an electrical signal.

Load cells uses in various fields, including industrial scales, quality control, force measurement, structural analysis, and more.

The accuracy and sensitivity of load cells vary based on their load capacities and specifications. High-quality load cells offer accurate and repeatable measurements, and calibration is often necessary to ensure their precision.

Proper installation and mounting are crucial for ensuring accurate measurements with load cells, and they come in various capacities, ranging from a few grams to several tons, depending on the specific requirements of the application. Signal conditioning is often performed to effectively use the load cell’s output, which can involve amplification, filtering, and digitization of the analog signal produced by the load cell.

***************************************************************************************************************

/* Company Name:LK Tronics
* Author: Research & Development Department
EXPERT GUIDANCE TO BRING YOUR DREAM PROJECT TO LIFE
* Date: 2020/ 01/ 07
* https://lk-tronics.com/
***********************************************
* All rights reserved. No part of this code may be reproduced, distributed,
* or transmitted in any form or by any means, including photocopying, recording,
* or other electronic or mechanical methods, without the prior written permission
* of LK Tronics, except in the case of brief quotations embodied in
* critical reviews and certain other noncommercial uses permitted by copyright law.

************************************************/

include "HX711.h"

HX711 scale;

void setup() {
  Serial.begin(9600);
  scale.begin(D2, D3);  // Define the data and clock pins
}

void loop() {
  if (scale.is_ready()) {
  long weight = scale.get_units(10);  // Read the weight from the scale (10 measurements for averaging)
  Serial.print("Weight: ");
  Serial.print(weight);
  Serial.println(" grams");
} else {
   Serial.println("Error: Unable to detect the HX711.");
}
  delay(1000); 
}

***************************************************************************************************************

VISIT OUR FACEBOOK PAGE FOR MORE INFO | MORE PRODUCT IN OUR SHOP

What is Load Cell 5 kg Module with Arduino?
Research & Development Department

]]>
https://lk-tronics.com/load-cell-5-kg-module-with-arduino/feed/ 0 13689
What is MC38 Wired Door Magnetic Read Sensor with Arduino https://lk-tronics.com/mc38-wired-door-magnetic-read-sensor-with-arduino/ https://lk-tronics.com/mc38-wired-door-magnetic-read-sensor-with-arduino/#respond Mon, 16 Oct 2023 10:42:00 +0000 https://lk-tronics.com/?p=13569 LK Tronics
What is MC38 Wired Door Magnetic Read Sensor with Arduino

The MC38 wired door sensor is a magnetic reed switch sensor used to detect the opening and closing of doors or windows. It is a commonly used component in security

What is MC38 Wired Door Magnetic Read Sensor with Arduino
Research & Development Department

]]>
LK Tronics
What is MC38 Wired Door Magnetic Read Sensor with Arduino

The MC38 wired door sensor is a magnetic reed switch sensor used to detect the opening and closing of doors or windows. It is a commonly used component in security systems, home automation, and various other applications where monitoring access or detecting intrusion is necessary. The sensor consists of two main components: a reed switch and a magnet.

How the MC-38 Wired Door Sensor Works:

  1. Reed Switch: The MC-38 sensor contains a reed switch, which is a type of electrical switch operated by an applied magnetic field. The reed switch is made up of two thin, flexible, and magnetizable metal reeds sealed within a glass envelope.
  2. Magnet: A small magnet is typically attached to the moving part of the door (like the door or window frame), while the reed switch is installed on the stationary part (like the door or window itself). When the door or window is closed, the magnet is close enough to the reed switch, creating a magnetic field that causes the reed switch to close, completing an electrical circuit.
  3. Open State: When the door or window is opened, the magnet moves away from the reed switch, and the magnetic field diminishes. As a result, the reed switch opens, breaking the electrical circuit. This change in the reed switch’s state is used to trigger an alarm or signal that the door or window has been opened.

Wiring the MC-38 Sensor:

To use the MC38 wired door sensor with a microcontroller, security system, or other applications, you need to wire it properly:

  1. Common Connection: Connect one of the reed switch’s wires to the ground (GND) or 0V of your circuit.
  2. Signal Connection: Connect the other wire from the reed switch to a digital input pin on your microcontroller or alarm system. When the door is opened or closed, the change in the sensor’s state is detected as a digital HIGH (door closed) or LOW (door opened) signal by your device.
  3. Magnet Placement: Install the magnet on the moving part (e.g., the door or window) and ensure it aligns with the reed switch when the door is closed.
  4. Reed Switch Placement: Securely mount the reed switch on the stationary part (e.g., the door frame) so that it aligns with the magnet when the door is closed.
MC38 Wired Door Magnetic Read Sensor

***************************************************************************************************************

/* Company Name:LK Tronics
* Author: Research & Development Department
EXPERT GUIDANCE TO BRING YOUR DREAM PROJECT TO LIFE
* Date: 2020/ 01/ 03
* https://lk-tronics.com/
***********************************************
* All rights reserved. No part of this code may be reproduced, distributed,
* or transmitted in any form or by any means, including photocopying, recording,
* or other electronic or mechanical methods, without the prior written permission
* of LK Tronics, except in the case of brief quotations embodied in
* critical reviews and certain other noncommercial uses permitted by copyright law.

************************************************/
const int doorSensorPin = 13;
const int LED = 2;
int doorState;

void setup() {
  pinMode(doorSensorPin, INPUT);
  pinMode(LED, OUTPUT);
  Serial.begin(9600);
}

void loop() {
  doorState = digitalRead(doorSensorPin);

  if (doorState == LOW) {
    digitalWrite(LED, HIGH);
    delay(500);
    Serial.println("Door is open");
  } else {
    digitalWrite(LED, LOW);
    delay(500);
    Serial.println("Door is closed");
  }

  delay(1000);
}

***************************************************************************************************************

VISIT OUR FACEBOOK PAGE FOR MORE INFO | MORE PRODUCT IN OUR SHOP

What is MC38 Wired Door Magnetic Read Sensor with Arduino
Research & Development Department

]]>
https://lk-tronics.com/mc38-wired-door-magnetic-read-sensor-with-arduino/feed/ 0 13569
What is Turbidity Liquid Sensor with Arduino https://lk-tronics.com/turbidity-liquid-sensor-with-arduino/ https://lk-tronics.com/turbidity-liquid-sensor-with-arduino/#respond Mon, 16 Oct 2023 10:21:08 +0000 https://lk-tronics.com/?p=13565 LK Tronics
What is Turbidity Liquid Sensor with Arduino

A turbidity sensor with arduino, sometimes referred to as a turbidimeter, is a tool quantify how hazy or cloudy a liquid becomes due to the presence of suspended solids or

What is Turbidity Liquid Sensor with Arduino
Research & Development Department

]]>
LK Tronics
What is Turbidity Liquid Sensor with Arduino

A turbidity sensor with arduino, sometimes referred to as a turbidimeter, is a tool quantify how hazy or cloudy a liquid becomes due to the presence of suspended solids or particles Firstly. Turbidity is a crucial water quality metric that is frequently utilis in a variety of settings, such as industrial operations, water treatment, and environmental monitoring. however Turbidity measurements are particularly useful in assessing the quality of drinking water, wastewater, and natural water bodies.

Here are the key components and working principles of a turbidity liquid sensor:

  1. Light Source: Turbidity sensors typically use a light source, often an LED, to emit light into the liquid sample.
  2. Photodetector: A photodetector or photodiode is measuring the amount of light that passes through the liquid and reaches the other side. Therefore, the amount of light detected is inversely proportional to the turbidity of the liquid, i.e., as turbidity increases, less light will pass through.
  3. Sample Chamber: The liquid sample is a sample chamber that allows the light to pass through it. The chamber designed to prevent external light from interfering with the measurements.
  4. Measurement Unit: A control and measurement unit processes the output from the photodetector and converts it into turbidity values. These values typically displayed as nephelometric turbidity units (NTU) or other relevant units.

How a Turbidity Sensor Works:

  1. Light Transmission Method: The most common method for measuring turbidity is the light transmission method. In this method, the turbidity sensor emits light into the liquid sample, and the photodetector on the other side measures the amount of light that reaches it. As the turbidity of the liquid increases, more light is scattered and absorbed, resulting in less light reaching the photodetector.
  2. Calibration: Turbidity sensors are calibrated using standardized solutions with known turbidity values to establish a reference point for measurements.
  3. Output and Display: The sensor’s measurement unit processes the data and displays the turbidity value. This value can record, transmitted, or used for process control.
  4. Cleaning and Maintenance: Turbidity sensors may require periodic maintenance and cleaning to ensure accurate measurements. Contaminants on the sensor’s optical surfaces can affect its performance.

Turbidity sensors are commonly used in environmental monitoring to assess water quality, in water treatment plants to monitor the effectiveness of the treatment process, and in industrial processes to ensure product quality. They are essential tools for ensuring that water is safe to drink, for monitoring effluent from wastewater treatment plants, and for various other applications where the clarity of a liquid is critical.

To use a turbidity sensor with an Arduino, you will typically need a turbidity sensor module that includes the sensor itself and an analog or digital interface. The specific wiring and code will depend on the type of turbidity sensor you have. Below, I’ll provide a general guide for connecting and using a common turbidity sensor with Arduino:

Hardware Connection:

  1. Connect the turbidity sensor to your Arduino. Typically, the sensor module will have three pins: VCC, GND, and the signal output pin. Follow these general connections:
    • Connect VCC to 5V on your Arduino.
    • Connect GND to GND on your Arduino.
    • Connect the signal output pin to an analog input pin on your Arduino.
  2. Some turbidity sensors may require additional components like resistors or capacitors in the circuit. Refer to the datasheet or documentation of your specific turbidity sensor for precise details on wiring.
What is Turbidity Liquid Sensor with Arduino

***************************************************************************************************************

* Company Name:LK Tronics
* Author: Research & Development Department
EXPERT GUIDANCE TO BRING YOUR DREAM PROJECT TO LIFE
* Date: 2020/ 04/ 20
* https://lk-tronics.com/
***********************************************
* All rights reserved. No part of this code may be reproduced, distributed,
* or transmitted in any form or by any means, including photocopying, recording,
* or other electronic or mechanical methods, without the prior written permission
* of LK Tronics, except in the case of brief quotations embodied in
* critical reviews and certain other noncommercial uses permitted by copyright law.

************************************************/
const int turbiditySensorPin = A0;
int turbidityValue; // Variable to store the turbidity value

void setup() {
  Serial.begin(9600); // Initialize serial communication for debugging
}

void loop() {
  // Read the turbidity sensor value
  turbidityValue = analogRead(turbiditySensorPin);

 
 // Print the turbidity value to the serial monitor
  Serial.print("Turbidity: ");
  Serial.println(turbidityValue);

  // Add a delay if needed
  delay(1000); // Delay for 1 second
}

***************************************************************************************************************

VISIT OUR FACEBOOK PAGE FOR MORE INFO | MORE PRODUCT IN OUR SHOP

What is Turbidity Liquid Sensor with Arduino
Research & Development Department

]]>
https://lk-tronics.com/turbidity-liquid-sensor-with-arduino/feed/ 0 13565
What is BMP180 Sensor with Arduino https://lk-tronics.com/bmp180-sensor-with-arduino/ https://lk-tronics.com/bmp180-sensor-with-arduino/#respond Mon, 16 Oct 2023 10:07:39 +0000 https://lk-tronics.com/?p=13558 LK Tronics
What is BMP180 Sensor with Arduino

The BMP180 sensor is a digital barometric pressure sensor that is commonly use to measure atmospheric pressure and temperature. It is manufacture by Bosch Sensortec, now known as Bosch Sensortec

What is BMP180 Sensor with Arduino
Research & Development Department

]]>
LK Tronics
What is BMP180 Sensor with Arduino

The BMP180 sensor is a digital barometric pressure sensor that is commonly use to measure atmospheric pressure and temperature. It is manufacture by Bosch Sensortec, now known as Bosch Sensortec GmbH, a subsidiary of the Bosch Group. The BMP180 is part of the BMPxxx series of sensors, which also includes its successor, the BMP280, and the more advanced BMP388.

Features of the BMP180 sensor include:

  1. Barometric Pressure Measurement: The BMP180 is primarily design to measure barometric pressure. It can provide accurate pressure measurements with a resolution of up to 0.01 hPa (hectopascals). The pressure data can used for various applications, including weather forecasting, altimeter functions, and more.
  2. Temperature Measurement: In addition to pressure, the BMP180 also includes a temperature sensor. It can measure temperature with high accuracy, which is often use for temperature compensation when calculating pressure values.
  3. Digital Interface: The BMP180 sensor communicates with a microcontroller or other devices using a digital interface, typically I2C (Inter-Integrated Circuit) or SPI (Serial Peripheral Interface), making it easy to integrate into various electronic systems.
  4. Low Power Consumption: The sensor is design to power-efficient, making it suitable for battery-powered and low-power applications.
  5. Small Form Factor: The BMP180 is typically available in a compact surface-mount package, which makes it suitable for space-constrained designs.
  6. Calibration Data: Each BMP180 sensor is individually calibrate during manufacturing, and this calibration data is store in the sensor’s onboard memory. This data can used to improve the accuracy of pressure and temperature measurements.

It’s worth noting that the BMP180 is not the latest model in the BMPxxx series; the BMP280 and BMP388 sensors offer improved performance and additional features. The choice of sensor depends on the specific requirements of your project.

To use a BMP180 sensor, you would typically connect it to a microcontroller, such as an Arduino, Raspberry Pi, or other development board, and then write code to read and process the data from the sensor. The manufacturer provides datasheets and libraries to help with sensor integration.

BMP180 Sensor

Arduino Code

***************************************************************************************************************

* Company Name:LK Tronics
* Author: Research & Development Department
EXPERT GUIDANCE TO BRING YOUR DREAM PROJECT TO LIFE
* Date: 2020/ 02/ 05
* https://lk-tronics.com/
***********************************************
* All rights reserved. No part of this code may be reproduced, distributed,
* or transmitted in any form or by any means, including photocopying, recording,
* or other electronic or mechanical methods, without the prior written permission
* of LK Tronics, except in the case of brief quotations embodied in
* critical reviews and certain other noncommercial uses permitted by copyright law.

************************************************/

#include <Adafruit_BMP085.h>
Adafruit_BMP085 bmp;

void setup() {
    Serial.begin(9600);
    if (!bmp.begin()) {
        Serial.println("Could not find a valid BMP180 sensor, check wiring!");
        while (1);
    }
}
void loop() {
    // Read temperature
    float temperature = bmp.readTemperature();

    // Read pressure
    float pressure = bmp.readPressure();

    // 1013.25 hPa is the standard sea-level pressure
    float altitude = bmp.readAltitude(1013.25);  

    Serial.print("Temperature: ");
    Serial.print(temperature);
    Serial.println(" °C");
    Serial.print("Pressure: ");
    Serial.print(pressure / 100.0);  // Convert pascals to hPa (hectopascals)
    Serial.println(" hPa");
    Serial.print("Altitude: ");
    Serial.print(altitude);
    Serial.println(" meters");

    delay(1000);  // Delay for 1 second (adjust as needed)
}

***************************************************************************************************************

VISIT OUR FACEBOOK PAGE FOR MORE INFO | MORE PRODUCT IN OUR SHOP

What is BMP180 Sensor with Arduino
Research & Development Department

]]>
https://lk-tronics.com/bmp180-sensor-with-arduino/feed/ 0 13558
What is MAX30102 Heart Rate and Pulse Oximeter Sensor with Arduino https://lk-tronics.com/max30102-heart-rate-and-pulse-oximeter-sensor-with-arduino/ https://lk-tronics.com/max30102-heart-rate-and-pulse-oximeter-sensor-with-arduino/#comments Wed, 11 Oct 2023 08:58:52 +0000 https://lk-tronics.com/?p=13505 LK Tronics
What is MAX30102 Heart Rate and Pulse Oximeter Sensor with Arduino

The MAX30102 is a popular integrate sensor module for measuring heart rate and blood oxygen saturation (SpO2). It is commonly use in wearable fitness trackers, medical devices, and other applications

What is MAX30102 Heart Rate and Pulse Oximeter Sensor with Arduino
Research & Development Department

]]>
LK Tronics
What is MAX30102 Heart Rate and Pulse Oximeter Sensor with Arduino

The MAX30102 is a popular integrate sensor module for measuring heart rate and blood oxygen saturation (SpO2). It is commonly use in wearable fitness trackers, medical devices, and other applications where monitoring these vital signs is essential. The MAX30102 sensor is manufacture by Maxim Integrate Here are some key features and information about the MAX30102 sensor:

  1. Heart Rate Monitoring: The MAX30102 uses a combination of red and infrared light to measure heart rate. By measuring the variation in light absorption caused by the pulsatile flow of blood, it can calculate the user’s heart rate in beats per minute (BPM).
  2. Pulse Oximetry (SpO2): In addition to heart rate, the MAX30102 can also measure blood oxygen saturation (SpO2). It does this by comparing the absorption of red and infrared light by oxygenated and deoxygenated hemoglobin in the blood. The SpO2 value represents the percentage of oxygen in the blood.
  3. Integrated Red and Infrared LEDs: The MAX30102 module includes red and infrared LEDs for emitting the required light, as well as a photodetector for measuring the reflected light. It also includes signal conditioning and processing circuitry.
  4. High Accuracy: The MAX30102 is designe to provide accurate heart rate and SpO2 measurements, making it suitable for both consumer and medical-grade applications.
  5. Low Power Consumption: It is power-efficient, making it well-suited for battery-powered devices and wearable applications.
  6. I2C Interface: The sensor communicates with a microcontroller or other devices using the I2C (Inter-Integrate Circuit) communication protocol, which is widely support by microcontrollers such as Arduino and Raspberry Pi.
  7. Interrupts: The MAX30102 can configure to generate interrupts base on certain conditions, which can used to trigger actions or data logging in response to specific events.
  8. Library Support: Several libraries are available for various platforms like Arduino, making it relatively easy to interface with and use the MAX30102 sensor in your projects

Arduino Code

***************************************************************************************************************

* Company Name:LK Tronics
* Author: Research & Development Department
EXPERT GUIDANCE TO BRING YOUR DREAM PROJECT TO LIFE
* Date: 2020/ 03/ 10
* https://lk-tronics.com/
***********************************************
* All rights reserved. No part of this code may be reproduced, distributed,
* or transmitted in any form or by any means, including photocopying, recording,
* or other electronic or mechanical methods, without the prior written permission
* of LK Tronics, except in the case of brief quotations embodied in
* critical reviews and certain other noncommercial uses permitted by copyright law.

************************************************/
#include <Wire.h>
#include <MAX30105.h>

MAX30105 particleSensor;

void setup()
{
  Serial.begin(9600);

  if (!particleSensor.begin(Wire, I2C_SPEED_FAST)) // Use default I2C port, 400kHz speed
  {
    Serial.println("MAX30105 was not found. Please check wiring/power.");
    while (1);
  }

  particleSensor.setup();
  particleSensor.setPulseAmplitudeRed(0x0A);
  particleSensor.setPulseAmplitudeIR(0x0A);
  particleSensor.setSampleRate(100); // Sample at 100 Hz
  particleSensor.enableDIETEMPRDY();
}

void loop()
{
  float temperature = particleSensor.readTemperature();
  Serial.print("Temperature: ");
  Serial.println(temperature);

  if (particleSensor.available())
  {
    int32_t irValue = particleSensor.getIR();
    int32_t redValue = particleSensor.getRed();
    Serial.print("IR Value: ");
    Serial.print(irValue);
    Serial.print("  Red Value: ");
    Serial.println(redValue);
  }
}

***************************************************************************************************************

VISIT OUR FACEBOOK PAGE FOR MORE INFO | MORE PRODUCT IN OUR SHOP

What is MAX30102 Heart Rate and Pulse Oximeter Sensor with Arduino
Research & Development Department

]]>
https://lk-tronics.com/max30102-heart-rate-and-pulse-oximeter-sensor-with-arduino/feed/ 1 13505