——
#DonLucElectronics #DonLuc #PIR #WemosD1 #Display #IoT #Project #Fritzing #Programming #Electronics #Microcontrollers #Consultant
——
——
——
——
Wemos D1
The Wemos D1 looks like the normal Arduino board with the same pin layout as the Uno, which means all of the shields which can be used with the Arduino Uno, will plug in seamlessly with the Wemos D1. While the connection is one thing, the shields must have matching libraries that work with the esp8266 platform so as to be able to establish easy communication between the Wemos and the shield.
Crowtail- PIR Motion Sensor 2.0
This is a simple to use PIR motion sensor with Crowtail compatible interface. Simply connect it to Crowtail base shield and program it, when anyone moves in its detecting range, the sensor outputs HIGH on its SIG pin. The detecting range can be adjusted by a potentiometer soldered on its circuit board, The max detecting range of it up to 6 meters.
DL2601Mk01
1 x Wemos D1
1 x Gravity: I2C 16×2 Arduino LCD
1 x Crowtail- PIR Motion Sensor 2.0
1 x USB Battery Pack
1 x Micro USB Cable
DL2601Mk01p
DL2601Mk01p.ino
/****** Don Luc Electronics © ******
Software Version Information
Project #28 – Sensors – PIR – Mk23
28-23
DL2601Mk01p.ino
DL2601Mk01
1 x Wemos D1
1 x Gravity: I2C 16x2 Arduino LCD
1 x Crowtail- PIR Motion Sensor 2.0
1 x USB Battery Pack
1 x Micro USB Cable
*/
// Include the Library Code
// Wire
#include <Wire.h>
// LCD1602 RGB Module
#include "DFRobot_RGBLCD1602.h"
// LCD1602 RGB Module
/*RGBAddr*/
/*lcdCols*/
/*lcdRows*/
// 16 characters and 2 lines of show
DFRobot_RGBLCD1602 lcd(0x60 , 16, 2);
// PIR motion sensor
// Use pin 2 to receive the signal from the module
#define PIR_MOTION_SENSOR D2
int sensorValue;
String sPIR = "";
// Software Version Information
String sver = "28-23";
void loop() {
// PIR
isPIR();
// isDisplayPIR
isDisplayPIR();
// Delay
delay( 1000 );
}
getDisplay.ino
// getDisplay
// Gravity: I2C 16x2 Arduino LCD
// Display UID
void isDisplayUID(){
// Set up the LCD's number of rows and columns:
// Print a message to the LCD.
// Cursor
lcd.setCursor(0, 0);
lcd.print("Don Luc Electron");
// Cursor
lcd.setCursor(0, 1);
// Print a message to the LCD.
lcd.print( sver );
}
// Display PIR
void isDisplayPIR(){
// Clear
lcd.clear();
// Set the cursor to column 0, line 0
lcd.setCursor(0, 0);
lcd.print( "PIR" );
// Set the cursor to column 0, line 1
lcd.setCursor(0, 1);
lcd.print( sPIR );
}
getPIR.ino
// PIR motion sensor
// is PIR
void isPIR(){
// PIR
sensorValue = digitalRead(PIR_MOTION_SENSOR);
// If the sensor value is HIGH?
if(sensorValue == HIGH)
{
// Yes, return true
sPIR = "True";
}
else
{
// No, return false
sPIR = "False";
}
}
setup.ino
// Setup
void setup()
{
// Delay
delay( 100 );
// PIR motion sensor
pinMode(PIR_MOTION_SENSOR, INPUT);
// Delay
delay( 100 );
// PIR motion sensor
lcd.init();
// Delay
delay( 100 );
// Display UID
// Don Luc Electronic
// Version
isDisplayUID();
// Delay 5 Second
delay( 5000 );
}
People can contact us: https://www.donluc.com/?page_id=1927
Consultant, R&D, Electronics, IoT, Teacher and Instructor
- Programming Language
- Single-Board Microcontrollers (PIC, Arduino, Raspberry Pi, Arm, Silicon Labs, Espressif, Etc…)
- IoT
- Wireless (Radio Frequency, Bluetooth, WiFi, Etc…)
- Robotics
- Automation
- Camera and Video Capture Receiver Stationary, Wheel/Tank , Underwater and UAV Vehicle
- Unmanned Vehicles Terrestrial, Marine and UAV
- Machine Learning
- Artificial Intelligence (AI)
- RTOS
- Sensors, eHealth Sensors, Biosensor, and Biometric
- Research & Development (R & D)
- Consulting
Follow Us
Luc Paquin – Curriculum Vitae – 2026
https://www.donluc.com/luc/LucPaquinCVEng2026Mk01.pdf
https://www.donluc.com/luc/
Web: https://www.donluc.com/
Web: https://www.jlpconsultants.com/
Facebook: https://www.facebook.com/neosteam.labs.9/
YouTube: https://www.youtube.com/@thesass2063
DFRobot: https://learn.dfrobot.com/user-10186.html
Elecrow: https://www.elecrow.com/share/sharepj/center/no/760816d385ebb1edc0732fd873bfbf13
TikTok: https://www.tiktok.com/@luc.paquin8
Hackster: https://www.hackster.io/luc-paquin
LinkedIn: https://www.linkedin.com/in/jlucpaquin/
Don Luc





























