Menselijke aanwezigheidssensor voor detectie van beweging en stilstaande personen in slimme toepassingen.
SKU: OT1021 Número do artigo: 4B341 EAN: 8721244302904 Localização: H02.05
Alternativa
Sensor de movimento por radar de micro-ondas (Doppler) - 5.8Ghz HFS-DC06
€ 11,40
Ver esta alternativa
Como ligar o LD2410C módulo sensor de presença humana 24GHz a um Arduino UNO ou ESP32, com um sketch de exemplo que podes carregar já.
This project detects human presence using the digital output pin of the LD2410C 24GHz mmWave radar sensor. When motion or stationary presence is detected, the built-in LED lights up and the status is reported to the Serial Monitor.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : Human Presence Detection with LD2410C
* Board : Arduino UNO (arduino:avr:uno)
* Parts : Human Presence Sensor LD2410C
* Libraries : none (built-in)
*
* Codey Online is an AI-powered browser IDE for Arduino and ESP32.
* Describe your project and Codey writes the code, draws the wiring
* diagram and uploads it to your board, straight from the browser.
* This code is free to use, modify and share, without warranty.
* ==================================================================
*/
// LD2410C Human Presence Detection Example
// Reads the OUT pin to detect human presence
const int PRESENCE_PIN = 2;
const int LED_PIN = 13;
int lastState = -1;
void setup() {
pinMode(PRESENCE_PIN, INPUT);
pinMode(LED_PIN, OUTPUT);
Serial.begin(115200);
Serial.println(F("LD2410C Presence Sensor Ready"));
}
void loop() {
int currentState = digitalRead(PRESENCE_PIN);
// Update on state change
if (currentState != lastState) {
lastState = currentState;
if (currentState == HIGH) {
digitalWrite(LED_PIN, HIGH);
Serial.println(F("Target detected: Presence confirmed!"));
} else {
digitalWrite(LED_PIN, LOW);
Serial.println(F("No target detected."));
}
}
delay(50);
}
Wiring diagram and example code generated by Codey.online — https://www.codey.online
This circuit reads real-time mmWave radar data from the LD2410C sensor over UART using ESP32 Serial2. A resistor voltage divider (1kΩ / 2kΩ) safely steps down the sensor's 5V TX output to 3.3V for the ESP32 RX2 pin. Presence, stationary targets, and moving targets are reported over the Serial Monitor.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : LD2410C Human Presence Detection
* Board : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
* Parts : Human Presence Sensor LD2410C
* Libraries : none (built-in)
*
* Codey Online is an AI-powered browser IDE for Arduino and ESP32.
* Describe your project and Codey writes the code, draws the wiring
* diagram and uploads it to your board, straight from the browser.
* This code is free to use, modify and share, without warranty.
* ==================================================================
*/
#include <ld2410.h>
ld2410 radar;
uint32_t lastPrint = 0;
void setup() {
Serial.begin(115200);
// LD2410C default baud rate is 256000 on Serial2 (RX: 16, TX: 17)
Serial2.begin(256000, SERIAL_8N1, 16, 17);
Serial.println("Connecting to LD2410C sensor...");
if (radar.begin(Serial2)) {
Serial.println("LD2410C sensor initialized successfully!");
} else {
Serial.println("Sensor initialization failed. Check wiring and power.");
}
}
void loop() {
radar.read();
if (radar.isConnected() && (millis() - lastPrint > 500)) {
lastPrint = millis();
if (radar.presenceDetected()) {
Serial.print("Presence: DETECTED | ");
if (radar.movingTargetDetected()) {
Serial.print("Moving Target: ");
Serial.print(radar.movingTargetDistance());
Serial.print(" cm | ");
}
if (radar.stationaryTargetDetected()) {
Serial.print("Stationary Target: ");
Serial.print(radar.stationaryTargetDistance());
Serial.print(" cm");
}
Serial.println();
} else {
Serial.println("Presence: None");
}
}
}
Wiring diagram and example code generated by Codey.online — https://www.codey.online
O LD2410C é um sensor de presença avançado que deteta movimentos humanos utilizando radar de ondas milimétricas FMCW de 24 GHz. Ao contrário dos sensores PIR tradicionais, este módulo funciona através de micro-ondas e do efeito Doppler, permitindo-lhe detetar movimentos através de praticamente todos os materiais, exceto metal.
O LD2410C oferece uma solução fiável e flexível para detetar a presença humana, mesmo em ambientes desafiantes. Graças à integração simples e às amplas opções de configuração, este sensor é adequado para diversas aplicações inteligentes sem que necessite de conhecimentos avançados de programação.
| Formato compacto | 22 x 16 mm e baixo consumo de energia de 79 mA a 5 V |
|---|---|
| Alimentação | 5 V |
| Dimensões | 22 x 16 mm |
| Conexão | conector de 5 pinos |
| Interface | pino OUT, UART, Bluetooth |
| Adequado para | Arduino, Raspberry Pi, ESP32 |
| Faixa de temperatura | -40 °C a +85 °C |
| Consumo de energia | 79 mA |
| Técnica de deteção | Radar FMCW de 24 GHz, efeito Doppler |
| Alcance de deteção | 0,75 a 6 metros |
| Ângulo de deteção | ± 60° |
Ainda sem avaliações.
Não ficas satisfeito? Tens 30 dias após a receção para devolver o produto.
Tudo sobre devoluções
LD2410C módulo sensor de presença humana 24GHz