Codey OnlineArduino- & ESP32-componentenbibliotheek › Motion sensor with microwave radar RCWL-051
Motion sensor with microwave radar RCWL-051
Sensoren

Motion sensor with microwave radar RCWL-051

De RCWL-051 is een microgolf-radarmotiesensormodule die beweging detecteert door zwakke microgolfsignalen uit te zenden en te kijken naar veranderingen in het gereflecteerde signaal. Hij werkt meestal op een voeding van 3,3–5 V en geeft een digitale TTL-uitgang (OUT) die je kunt uitlezen met een Arduino of ESP32 voor bewegings- en aanwezigheidsdetectie.

Breedte: 36.3 mm

Pinout — Motion sensor with microwave radar RCWL-051

Pin Signaal Beschrijving
3V3 power Regulated 3.3V output from the module for small external loads or reference.
GND ground Common ground return for power supply and logic signal reference.
OUT digital Digital motion output; goes high when the radar sensor detects movement.
VIN power Main supply input for powering the RCWL-051 module.
CDS analog Light-sensor control input; connect an LDR network to inhibit motion output in daylight.

Voorbeeld-aansluitschema — Motion sensor with microwave radar RCWL-051

Van Naar Draad
board:5V x1:VIN red
board:GND x1:GND black
board:D2 x1:OUT green

Voorbeeld-Arduinocode — Motion sensor with microwave radar RCWL-051

Dit voorbeeld is geschreven en compile-gecheckt voor de arduino-uno. Codey Online past het voor je aan naar elk ander ondersteund board.

// RCWL-051 microwave radar motion sensor example
// Wiring:
// - RCWL-051 VIN  -> Arduino 5V
// - RCWL-051 GND  -> Arduino GND
// - RCWL-051 OUT  -> Arduino D2

const int motionPin = 2;

void setup() {
  pinMode(motionPin, INPUT);
  Serial.begin(9600);
  while (!Serial) {
    ;
  }
  Serial.println("RCWL-051 motion sensor example");
  Serial.println("Move in front of the sensor to see OUTPUT change.");
}

void loop() {
  int motionState = digitalRead(motionPin);

  if (motionState == HIGH) {
    Serial.println("Motion detected");
  } else {
    Serial.println("No motion");
  }

  delay(250);
}

Vergelijkbare componenten

18650 Battery Shield with USB-C Charger and 5V Boost Converter

18650 Battery Shield with USB-C Charger and 5V Boost Converter

2.4 inch OLED Display I2C 3.3V

2.4 inch OLED Display I2C 3.3V

3.5 inch TFT LCD Shield

3.5 inch TFT LCD Shield

50kg Load Cell Weight Sensor

50kg Load Cell Weight Sensor

Bouw je Arduino- of ESP32-project met AI

Beschrijf wat je wilt bouwen. Codey Online schrijft de code, tekent het aansluitschema, compileert het en flasht je board rechtstreeks vanuit de browser.

Gratis starten