LTR390-UV Sensor with Arduino

What you need:
1 X LTR390-UV Sensor
1 X Arduino UNO
1 X USB Cable

Pinout for LTR390-UV Ultraviolet Sensor (C):

Connection for LTR390-UV Sensor with arduino UNO:

 

Download code from this link:
https://www.waveshare.com/wiki/UV_Sensor_(C)

Waveshare_UV_C is Arduino code, zip the file

Add the Waveshare_UV_C.zip file to the Arduino IDE (Sketch-Include Library-Add .ZIP Library)

 

Choose board, COM port, upload code
After the code uploaded successfully, you can find the result in monitor:

Youtube link:
https://youtu.be/IOOn2IKP_f0

Purchase link:
https://www.diymalls.com/Digital-LTR390-UV-Ultraviolet-Sensor-I2C-Bus

DIYmall 4×4 Matrix Key Membrane Switch Keypad

 

What you need:
1 X 4×4 Membrane Switch Keypad
1 X Arduino Uno
1 X Jumper wires
1 X USB cable

4X4 Matrix Array Keypad Schematic

The wiring of 4X4 Keyboard with Arduino UNO R3 board is like the following picture:

You need install Keypad in your arduino IDE library if you not installed it before.

Click Sketch-Include Library-Manage Libraries, search “Keypad” and install it.

Open examples-Keypad and revise the code

Code:
#include <Keypad.h>

const byte ROWS = 4; //four rows
const byte COLS = 4; // four columns
char keys[ROWS][COLS] = {
{‘1′,’2′,’3’, ‘A’},
{‘4′,’5′,’6’, ‘B’},
{‘7′,’8′,’9’, ‘C’},
{‘*’,’0′,’#’, ‘D’}
};
byte rowPins[ROWS] = {9, 8, 7, 6}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {5, 4, 3, 2}; //connect to the column pinouts of the keypad

Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );

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

void loop(){
char key = keypad.getKey();

if (key){
Serial.println(key);

Choose board, COM port, and upload the code.

 

Open Serial Monitor window, and press the keyboard, the relative name of the pressed button will appear.

Here is the vedio link for your reference:

 

Purchase link for 4X4 Matrix Keypad:

https://www.diymalls.com/4X4-Matrix-Array-16-Keys-Membrane-Keypad-Switch

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

 

 

DHT11 Temperature Sensor XH2.54 terminal 1602 I2C LCD with Arduino

What you need:
1 X DHT11 Temperature Sensor XH2.54mm terminal
1 X 1602 I2C LCD Display module
1 X Arduino UNOR3
1 X 7P Female to Male Jump Wire
1 X USB Cable

Materials for DHT11 Temperature Humidity Measurement and display

Connection:
DHT11 to UNOR3:
S to D2
+ to 3V3
– to GND

1602 I2C LCD to UNOR3:
GND to GND
VCC to 5V
SDA to A4
SCL to A5

DHT11 sensor 1602 I2C LCD wiring with Arduino

Download below two libraries on your Arduino IDE:
DHT sensor library
LiquidCrystal I2C

 

Code:
#include <LiquidCrystal_I2C.h>
#include “DHT.h”
#define DHTPIN 2
#define DHTTYPE DHT11

LiquidCrystal_I2C lcd(0x27, 16, 2); // I2C address 0x3F, 16 column and 2 rows
DHT dht(DHTPIN, DHTTYPE);

void setup()
{
dht.begin(); // initialize the sensor
lcd.init(); // initialize the lcd
lcd.backlight(); // open the backlight
}

void loop()
{
delay(2000); // wait a few seconds between measurements

float humi = dht.readHumidity(); // read humidity
float tempC = dht.readTemperature(); // read temperature

lcd.clear();
// check if any reads failed
if (isnan(humi) || isnan(tempC)) {
lcd.setCursor(0, 0);
lcd.print(“Failed”);
} else {
lcd.setCursor(0, 0); // start to print at the first row
lcd.print(“Temp: “);
lcd.print(tempC); // print the temperature
lcd.print((char)223); // print ° character
lcd.print(“C”);

lcd.setCursor(0, 1); // start to print at the second row
lcd.print(“Humi: “);
lcd.print(humi); // print the humidity
lcd.print(“%”);
}
}

After upload the code, the measurement of the temperature and humidity results displayed in 1602 LCD like below picture:

Note: if the lcd displays not properly after powered on, pls adjust the blue potentiometer on the IIC Adapter board which is installed in the backside of the lcd module.

 

Purchase link:

https://www.diymalls.com/DHT11-Temperature-Sensor-XH2.54-3P-Terminal-with-1602-I2C-LCD-Display-Module

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

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

DIYmall DHT11 Temperature Sensor 1602 IIC LCD with Arduino

What you need:
1 X DHT11 Temperature Sensor
1 X 1602 IIC LCD Display Module
1 X Arduino UNO
1 X 7P Female to Male Jump Wire
1 X USB Cable

Connection:
DHT 11 to UNO R3:
S to D2
+ to 3V3
– to GND

1602 LCD to UNO R3:
GND to GND
VCC to 5V
SDA to A4
SCL to A5

Download below two libraries on your Arduino IDE:
DHT sensor library
LiquidCrystal I2C

Install DHT sensor library in your Arduino IDE

Install library of LiquidCrystal I2C in your Arduino IDE

Code example:
#include <LiquidCrystal_I2C.h>
#include “DHT.h”
#define DHTPIN 2
#define DHTTYPE DHT11

LiquidCrystal_I2C lcd(0x27, 16, 2); // I2C address 0x3F, 16 column and 2 rows
DHT dht(DHTPIN, DHTTYPE);

void setup()
{
dht.begin(); // initialize the sensor
lcd.init(); // initialize the lcd
lcd.backlight(); // open the backlight
}

void loop()
{
delay(2000); // wait a few seconds between measurements

float humi = dht.readHumidity(); // read humidity
float tempC = dht.readTemperature(); // read temperature

lcd.clear();
// check if any reads failed
if (isnan(humi) || isnan(tempC)) {
lcd.setCursor(0, 0);
lcd.print(“Failed”);
} else {
lcd.setCursor(0, 0); // start to print at the first row
lcd.print(“Temp: “);
lcd.print(tempC); // print the temperature
lcd.print((char)223); // print ° character
lcd.print(“C”);

lcd.setCursor(0, 1); // start to print at the second row
lcd.print(“Humi: “);
lcd.print(humi); // print the humidity
lcd.print(“%”);
}
}

After upload the code, the measurement of the temperature and humidity results displayed in 1602 LCD like below picture:

 

Purchase link:
https://www.diymalls.com/DHT11-Digital-Temperature-Humidity-Sensor-with-LCD1602-I2C-Display-Module

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

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

 

DIYmall One Channel Relay Module for Arduino

What you need:
1PCS Arduino UNO
1PCS  Relay Module
3PCS Female to Male Dupont Cable

Connection:
Relay Module             Arduino UNO
S                                          D8
+                                          5V
–                                           GND

 

Code:

 

void setup(){
pinMode(8, OUTPUT);

}
void loop(){
digitalWrite(8,LOW);
delay(2000);
digitalWrite(8,HIGH);
delay(2000);

}

Result:  
The red LED on relay will turn on and turn off automatically

Where to buy:
Amazon Link:
https://www.amazon.com/dp/B08R8TMT73

Website Link:

Alibaba Link:

Aliexpress Link:

eBay Link:

Any question please email sales@diymalls.com

DIYmall Laser Transmitter Receiver Module Buzzer with Arduino

What you need:
1PCS Arduino UNO
1PCS  Laser Transmitter Sensor
1PCS  Laser Receiver  Sensor
1PCS Buzzer
A Few PCS Female to Male Dupont Cable

Connection:
Laser Transmitter Sensor                Arduino UNO
S                                                                       D12
+                                                                       5V
–                                                                        GND

Laser Receiver  Sensor                Arduino UNO
S                                                                       D2
+                                                                       5V
–                                                                        GND

Buzzer                                                   Arduino UNO
–                                                                     GND
+                                                                      D8

Code:

int Active = 8;
int LaserSensor = 2;
int SensorReading = HIGH;
int Laser = 12;

void setup() {
pinMode(Active, OUTPUT);
pinMode(Laser, OUTPUT);
pinMode(LaserSensor, INPUT);

}
void loop() {
digitalWrite(Laser, HIGH);
delay(50);
SensorReading = digitalRead(LaserSensor);
if(SensorReading == (HIGH)

{
digitalWrite(Active, HIGH);
}
else
{
digitalWrite(Active, LOW);
}
}

Result:  
When there is an obstacle, the buzzer will turn on
When there is no obstacle, the buzzer will turn off

Where to buy:
Amazon Link:
https://www.amazon.com/dp/B07FQ6696X

https://www.amazon.com/dp/B07H95679S

Website Link:

Alibaba Link:

Aliexpress Link:

eBay Link:

 

Any question please email sales@diymalls.com

DIYmall Laser Transmitter Receiver Module with Arduino

What you need:
1PCS Arduino UNO
1PCS  Laser Transmitter Sensor
1PCS  Laser Receiver  Sensor
6P Female to Male Dupont Cable

Connection:
Laser Transmitter Sensor                Arduino UNO
S                                                                       D12
+                                                                       5V
–                                                                        GND

Laser Receiver  Sensor                Arduino UNO
S                                                                       D2
+                                                                       5V
–                                                                        GND

Code:
int LED = 13;
int LaserSensor = 2;
int SensorReading = HIGH;
int Laser = 12;

void setup() {
pinMode(LED, OUTPUT);
pinMode(Laser, OUTPUT);
pinMode(LaserSensor, INPUT);
}

void loop() {
digitalWrite(Laser, HIGH);
delay(200);

SensorReading = digitalRead(LaserSensor);
if(SensorReading == LOW)
{
digitalWrite(LED, HIGH);

}
else
{
digitalWrite(LED, LOW);
}

}

Result:  
When there is an obstacle, the LED will turn on
When there is no obstacle, the LED will turn off

Where to buy:
Amazon Link:
https://www.amazon.com/dp/B07FQ6696X

https://www.amazon.com/dp/B07H95679S

Website Link:

Alibaba Link:

Aliexpress Link:

eBay Link:

 

Any question please email sales@diymalls.com

DIYmall Laser Transmitter Module with Arduino

Note:  Please do not aim at eyes.

What you need:
1PCS Arduino UNO
1PCS  Laser Transmitter Sensor
3P Female to Male Dupont Cable

Connection:
Laser Transmitter Sensor                Arduino UNO
S                                                                       D13
+                                                                       5V
–                                                                        GND

Code:
void setup()
{
pinMode(13,OUTPUT);
}
void loop()
{
digitalWrite(13,HIGH);// Send Laser
delay(1000);// Delay one second
digitalWrite(13,LOW);// Close Laser
delay(1000);// Delay one second
}

Where to buy:
Amazon Link:
https://www.amazon.com/dp/B07FQ6696X

Website Link:

Alibaba Link:

Aliexpress Link:

eBay Link:

 

Any question please email sales@diymalls.com

 

 

DIYmall USBASP Programmer

Burn bootloader Use  USBISP and Arduino UNO via Arduino IDE

Connection:

Open Arduino IDE, choose board: Arduino uNO, programmer: USBasp, then click Burn Bootloader

 

 

 

 

User guide link: https://protostack.com.au/download/Users%20Guide%20(AC-PG-USBASP-UG-V2.0).pdf
Document link: https://tinyurl.com/USBASP-guide
Driver link:
https://zadig.akeo.ie/
Youtube link:

Where to buy:
https://www.amazon.com/dp/B07NZ59VK2 http://www.diymalls.com/USBASP-51-AVR-Microcontroller-Programmer-Downloader-10P-to-6P-Adapter-Board?search=USBASP

Any question please email sales@diymalls.com

DIYmall AS3935 Lightning Detector Sensor

What you need:
1PCS Arduino UNO
1PCS USB Cable
1PCS AS3935 Light Sensor
6P Female to Male Dupont Cable

Connection:
AS3935       Arduino UNO
VCC                   5V
GND                  GND
SCL                   A5
SDA                  A4
IRQ                    D5

First you need use IIC.ino to find the IIC address of the AS3935 sensor

Then you need change IIC address in the AE_AS3935DEMO-.ino, upload the code and open the serial monitor, please choose 9600 baud.
In my case, I changed the Line 11 and Line 66 to 0x03

11 #define AS3935_ADRS 0x03 66 Wire.write(0x03);

Below is the result

Code  link
https://github.com/PlayingWithFusion/PWFusion_AS3935_I2C

Manual link
https://tinyurl.com/y5vnlwjd

Video link
https://youtu.be/uQwvpUYsRok

Website Link
http://www.diymalls.com/GY-AS3935-Lightning-Detector-Digital-Sensor
Alibaba Link                        http://aliurl.cn/axyizl
Aliexpress link    http://aliurl.cn/as06xt
Amazon link                          www.amazon.com/dp/B087358RNT

Any question please email sales@diymalls.com