HB100 X 10.525GHz Microwave Sensor
$35.1
$48.09
The HB100 X microwave sensor module is a motion detector designed using the Doppler radar principle. Unlike infrared detectors, this sensor detects moving objects by sensing microwaves reflected from a target, allowing it to detect humans, vehicles and other objects without requiring direct line of sight. The module operates at the X‑band frequency of 10.525 GHz and has a continuously adjustable detection distance from 2 to 16 m using an on‑board potentiometer.Features:• Non‑contact motion detection unaffected by temperature, humidity, noise, airflow, dust and other environmental factors. • Small output power and high sensitivity with anti‑radio‑frequency interference ability. • Suitable for detecting both people and non‑living objects with a long detection range. • Adjustable detection distance via potentiometer; turning towards “MIN” decreases the range, turning opposite increases it. • Highly stable and accurate detection thanks to built‑in Doppler transceiver circuitry.Parameters:• Operating voltage: 5 V ± 0.25 V • Operating current (continuous wave): 50 mA max, 30 mA typical • Emission frequency: 10.525 GHz ± 3 MHz • Detection distance: 2–16 m (continuously adjustable) • Output power (min.): 13 dBm EIRP • Typical average current at 5% duty cycle: 2 mA • Duty cycle: ≥ 1 %Applications: Ideal for automatic door openers, lighting control, industrial automation, occupancy sensing and other motion detection tasks.Arduino Code:Arduino /* HB100 motion detect (interrupt MsTimer2 timer) - Sensor on pin 2 (INT0) – falling edge - LED on pin 13 - كل 1000ms يتم فحص عدد النبضات (count). إذا كان >1 يعتبر حركة. */ #include <MsTimer2.h> // Timer interrupt library const byte pbln = 2; // Interrupt pin (INT0 on UNO) const byte ledOut = 13; volatile int count = 0; volatile int state = LOW; // LED state, الافتراضي مطفأ void setup() { Serial.begin(9600); pinMode(ledOut, OUTPUT); digitalWrite(ledOut, LOW); // مقاطعة الحافة الهابطة من المستشعر attachInterrupt(digitalPinToInterrupt(pbln), stateChange, FALLING); // مؤقت كل 1000ms يستدعي process() MsTimer2::set(1000, process); MsTimer2::start(); } void loop() { // طباعة عدد النبضات (للمتابعة/الديبغ) Serial.println(count); delay(1); // لو تم الكشف عن حركة (state = HIGH) شغّل LED لمدة ثانيتين ثم طفّه if (state == HIGH) { delay(2000); state = LOW; digitalWrite(ledOut, state); // Turn off LED } } // دالة المقاطعة: تُستدعى عند كل نبضة من المستشعر void stateChange() { count ; // عدّ النبضات خلال نافذة 1000ms } // معالج المؤقّت: يُستدعى كل 1000ms void process() { // إذا كان عدد النبضات خلال 1 ثانية أكبر من 1 → اعتبره حركة if (count > 1) { state = HIGH; digitalWrite(ledOut, state); // إضاءة LED count = 0; // تصفير العداد } else { // لا توجد حركة كافية → صفّر العداد count = 0; } }1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859/* HB100 motion detect (interrupt MsTimer2 timer) — Sensor on pin 2 (INT0) – falling edge — LED on pin 13 — كل 1000ms يتم فحص عدد النبضات (count). إذا كان >1 يعتبر حركة.*/ #include <MsTimer2.h> // Timer interrupt library const byte pbln = 2; // Interrupt pin (INT0 on UNO)const byte ledOut = 13; volatile int count = 0;volatile int state = LOW; // LED state, الافتراضي مطفأ void setup() { Serial.begin(9600); pinMode(ledOut, OUTPUT); digitalWrite(ledOut, LOW); // مقاطعة الحافة الهابطة من المستشعر attachInterrupt(digitalPinToInterrupt(pbln), stateChange, FALLING); // مؤقت كل 1000ms يستدعي process() MsTimer2::set(1000, process); MsTimer2::start();} void loop() { // طباعة عدد النبضات (للمتابعة/الديبغ) Serial.println(count); delay(1); // لو تم الكشف عن حركة (state = HIGH) شغّل LED لمدة ثانيتين ثم طفّه if (state == HIGH) { delay(2000); state = LOW; digitalWrite(ledOut, state); // Turn off LED }} // دالة المقاطعة: تُستدعى عند كل نبضة من المستشعرvoid stateChange() { count ; // عدّ النبضات خلال نافذة 1000ms} // معالج المؤقّت: يُستدعى كل 1000msvoid process() { // إذا كان عدد النبضات خلال 1 ثانية أكبر من 1 → اعتبره حركة if (count > 1) { state = HIGH; digitalWrite(ledOut, state); // إضاءة LED count = 0; // تصفير العداد } else { // لا توجد حركة كافية → صفّر العداد count = 0; }} YouTube link :
Proximity