The MQ-135 is a popular gas sensor used for detecting a variety of gases including ammonia (NH3), nitrogen oxides (NOx), alcohol, benzene, smoke, and carbon dioxide (CO2). It is widely
MQ-135 Air Quality Gas Smoke Detection Sensor with Arduino
Research & Development Department
The MQ-135 is a popular gas sensor used for detecting a variety of gases including ammonia (NH3), nitrogen oxides (NOx), alcohol, benzene, smoke, and carbon dioxide (CO2). It is widely used in air quality monitoring applications due to its broad detection range and sensitivity to several gases. Here’s an overview of the MQ-135 sensor:
/***********************************************
* Company Name:LK Tronics
* Author: Research & Development Department
EXPERT GUIDANCE TO BRING YOUR DREAM PROJECT TO LIFE
* Date: 2023/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.
************************************************/
const int analogPin = A0; // Analog input pin that the sensor is attached to
int sensorValue = 0; // Variable to store the value coming from the sensor
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 bits per second
}
void loop() {
sensorValue = analogRead(analogPin); // Read the analog value from the sensor
Serial.print("Gas Concentration: ");
Serial.println(sensorValue); // Print the value to the serial monitor
delay(1000); // Wait for 1 second before the next reading
}
The MQ-135 is a versatile and cost-effective solution for detecting a variety of gases, making it ideal for environmental monitoring and safety applications. Proper calibration and understanding of its characteristics are crucial for accurate measurements.
MQ-135 Air Quality Gas Smoke Detection Sensor with Arduino
Research & Development Department
The AD9833 is a programmable waveform generator IC (integrated circuit) developed by Analog Devices. It’s commonly used to generate sine, triangle, and square waveforms with frequency and phase control. Here’s
]]>The AD9833 is a programmable waveform generator IC (integrated circuit) developed by Analog Devices. It’s commonly used to generate sine, triangle, and square waveforms with frequency and phase control. Here’s a brief overview of its functionality:
To use the AD9833 as a function generator, you would typically interface it with a microcontroller or a digital signal processor (DSP) to control its settings and generate the desired waveform with the desired frequency and phase characteristics. The microcontroller or DSP sends commands to the AD9833 via SPI or I2C to set the frequency, waveform type, and phase offset.
When utilizing the AD9833, you would typically:
Overall, the AD9833 provides a versatile and flexible solution for generating accurate waveforms in various electronic applications.
***************************************************************************************************************
***************************************************************************************************************
* Company Name:LK Tronics
* Author: Research & Development Department
EXPERT GUIDANCE TO BRING YOUR DREAM PROJECT TO LIFE
* Date: 2024/ 03/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.
************************************************/
#include <AD9833.h> // Include the library
#define FNC_PIN 10 // Can be any digital IO pin
#define Frequency 1 // if set value 1 = 1Hz Frequency
AD9833 gen(FNC_PIN); // Defaults to 25MHz internal reference frequency
void setup() {
Serial.begin(9600);
gen.Begin();
// Apply a 1000 Hz sine wave using REG0 (register set 0). There are two register sets: REG0 and REG1.
// Each one can be programmed for:
// Signal type - SINE_WAVE, TRIANGLE_WAVE, SQUARE_WAVE, and HALF_SQUARE_WAVE
// Frequency - 0 to 12.5 MHz
// Phase - 0 to 360 degress (this is only useful if it is 'relative' to some other signal
// such as the phase difference between REG0 and REG1).
// In ApplySignal, if Phase is not given, it defaults to 0.
gen.ApplySignal(SINE_WAVE, REG0, Frequency);
gen.EnableOutput(true); // Turn ON the output - it defaults to OFF
// There should be a 1 Hz square wave on the output of the AD9833
}
void loop() {
Serial.println(analogRead(A0));
delay(100);
}
]]>An Organic Light light-emitting diode (OLED) display is a type of flat-panel display technology that uses organic compounds to emit light when an electric current is applied. OLEDs are known
]]>An Organic Light light-emitting diode (OLED) display is a type of flat-panel display technology that uses organic compounds to emit light when an electric current is applied. OLEDs are known for their vibrant colors, high contrast ratios, fast response times, and flexibility. Unlike traditional liquid crystal displays (LCDs) that require a backlight, OLEDs are “emissive” displays, meaning each pixel generates its light. This allows for more accurate and dynamic color reproduction, as well as deeper blacks since individual pixels can be turned off completely to achieve true black.
Here are some key features and advantages of OLED displays:
Despite their advantages, OLEDs also have some challenges, including potential issues with long-term durability (especially for blue OLEDs), susceptibility to water damage, and manufacturing costs. Researchers and manufacturers are continually working to address these challenges and improve the technology.
OLED displays are commonly used in various electronic devices, such as smartphones, televisions, computer monitors, and wearable devices. As technology advances, OLEDs continue to play a significant role in the evolution of display technologies.
***************************************************************************************************************
***************************************************************************************************************
* Company Name:LK Tronics
* Author: Research & Development Department
EXPERT GUIDANCE TO BRING YOUR DREAM PROJECT TO LIFE
* Date: 2023/ 12/21
* 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_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire);
void setup() {
Serial.begin(9600);
display.begin(SSD1306_I2C, 0x3C);
display.clearDisplay(); // Clear the buffer
}
void loop() {
display.setTextSize(3);
display.setTextColor(SSD1306_WHITE); // Draw white text
display.setCursor(30,30); // Start at top-left corner
display.print(F("LK Tronics"));
display.display(); // Show the display buffer on the screen
delay(2000);
display.clearDisplay();
}
]]>The L298N is a popular dual H-bridge motor driver integrated circuit commonly used in robotics and other projects to control DC motors or stepper motors. It allows you to control
L298N Motor Driver with Arduino
Research & Development Department
The L298N is a popular dual H-bridge motor driver integrated circuit commonly used in robotics and other projects to control DC motors or stepper motors. It allows you to control the direction and speed of two DC motors independently.
Features and Connections:
Remember to use appropriate heat sinks if the motor driver gets hot during prolonged usage, and always handle the connections carefully to prevent short circuits.
***************************************************************************************************************
***************************************************************************************************************
Replace the PINs (enA
, in1
, and in2
) with the actual pins you’ve connected the L298N to on your Arduino board. The code demonstrates how to control the direction and speed of the motor. Adjust the analogWrite(enA, 200)
value to change the motor speed (values between 0-255).
Make sure to power the L298N separately with an appropriate voltage source, connect the motor to the outputs of the L298N, and connect the control pins (IN1, IN2, ENA) to the Arduino as specified in the code.
This code is a simple demonstration. For a more sophisticated control scheme or for incorporating inputs like potentiometers or sensors, you’d modify the loop()
function accordingly.
* Company Name:LK Tronics
* Author: Research & Development Department
EXPERT GUIDANCE TO BRING YOUR DREAM PROJECT TO LIFE
* Date: 2022/ 01/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 enA = 9;
int in1 = 8;
int in2 = 7;
void setup() {
pinMode(enA, OUTPUT);
pinMode(in1, OUTPUT);
pinMode(in2, OUTPUT);
// Set initial rotation direction
digitalWrite(in1, LOW);
digitalWrite(in2, HIGH);
// Initialize serial communication
Serial.begin(9600);
}
void loop() {
// Motor speed control using PWM on enable pin (enA)
analogWrite(enA, 200); // Change this value (0-255) for speed control
// Move the motor in one direction for some time
Serial.println("Motor rotating in one direction");
delay(2000); // 2 seconds delay
// Change rotation direction
digitalWrite(in1, HIGH);
digitalWrite(in2, LOW);
// Move the motor in the opposite direction for some time
Serial.println("Motor rotating in the opposite direction");
delay(2000); // 2 seconds delay
// Stop the motor
digitalWrite(in1, LOW);
digitalWrite(in2, LOW);
Serial.println("Motor stopped");
delay(2000); // 2 seconds delay
}
L298N Motor Driver Module (lk-tronics.com)
VISIT OUR FACEBOOK PAGE FOR MORE INFO | MORE PRODUCT IN OUR SHOP
L298N Motor Driver with Arduino
Research & Development Department
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
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:
***************************************************************************************************************
/* 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
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
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:
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.
***************************************************************************************************************
/* 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
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
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:
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.
***************************************************************************************************************
/* 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
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
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:
***************************************************************************************************************
/* 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
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
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:
***************************************************************************************************************
/* 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
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
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