Posts

Human motion detection sms and call alerts pir sensor esp32 sim800l module

Image
Human motion detection sms and call alerts pir sensor esp32 sim800l module Demo short video-  https://youtube.com/shorts/U1b-yNNR45w?si=DOj4NnMxbzicP_M9 Full video-  https://youtu.be/eRDQAeMDCpg?si=oLeb6EggfwYpCXWl  ,  https://youtube.com/shorts/qKJWksaDIbA?si=3jgzGFErxdBTaWy6 Example Code and Video-  https://youtu.be/_QxP2RT5CLU?si=invdNqf2O8qYKnK_ Example Code-  https://github.com/futuristiciox/Human-motion-detection-sms-and-call-alerts-pir-sensor-esp32-sim800l-module #include <SoftwareSerial.h> #define rxPin 16 #define txPin 17 SoftwareSerial sim800L ( rxPin, txPin ) ; #define pirPin 5 #define buzzerPin 18 bool pirEnabled = true ; // Software switch variable to enable/disable PIR String buff; // Variables for non-blocking PIR debounce unsigned long pirHighStartTime = 0 ; bool motionStateRecorded = false ; const unsigned long debounceTime = 100 ; // Must stay HIGH for at least 100ms void setup () {   Serial . begin ( 115200...

AJ-SR04M Waterproof ultrasonic sensor testing TrigEco Mode-1 and UART Communication mode-4 code

Image
Full video-  https://youtu.be/Wsxv97HIU-c?si=3Wx6_a_YFcpJnHO7 UART communication short-  https://youtube.com/shorts/uVVg_NuV92s?si=c0VhZxT8jl2V60o6 1. TrigEco mode-1 code- >>TrigEco mode-1 Minimal code- #define ECHOPIN 5 #define TRIGPIN 18 void setup () {   Serial . begin ( 115200 ) ;   pinMode ( ECHOPIN, INPUT ) ;     // Fixed: Standard input without pull-up   pinMode ( TRIGPIN, OUTPUT ) ; } void loop () {   digitalWrite ( TRIGPIN, LOW ) ;   delayMicroseconds ( 2 ) ;   digitalWrite ( TRIGPIN, HIGH ) ;   delayMicroseconds ( 10 ) ;       // Fixed: Standard 10µs trigger pulse   digitalWrite ( TRIGPIN, LOW ) ;     // 30,000 µs (30ms) timeout allows measurement up to ~5 meters   long duration = pulseIn ( ECHOPIN, HIGH, 50000 ) ;   int distance = duration / 58 ;   Serial . print ( distance ) ;   Serial . println ( " cm" ) ;   delay ( 50 ) ; } >>TrigEco mode-1...