شحن مجاني للأوردرات فوق
1000 ج
رمضان كريم
Capacitive Detection Without Physical Contact
The XKC-Y25-V is a non-contact liquid level sensor that detects water presence through capacitive sensing without direct contact with the liquid. This makes it ideal for applications requiring hygienic measurement or where sensor corrosion is a concern.
Key FeaturesDetects through container walls without liquid contact
Simple HIGH/LOW signal for water detection
Operates at 3.3V-5V with minimal current draw
Sensitivity control via potentiometer
| Operating Voltage | 3.3V – 5V DC |
|---|---|
| Output Type | Digital (TTL) |
| Detection Method | Capacitive (non-contact) |
| Max Container Thickness | 5mm (plastic/glass) |
| Current Consumption | <15mA |
| Response Time | <100ms |
| Operating Temperature | -10°C to +50°C |
| Protection Rating | IP65 (sensor only) |

| Pin | Label | Description | Arduino Connection |
|---|---|---|---|
| 1 | VCC | Power (3.3V-5V) | 5V |
| 2 | GND | Ground | GND |
| 3 | OUT | Digital output | D2 |
| 4 | EN | Enable pin (optional) | D3 (or leave unconnected) |
// Basic Connections: // VCC → 5V // GND → GND // OUT → D2 (digital input) // Optional: // EN → D3 (digital output for enable/disable) // Mount sensor against container wall // Adjust sensitivity potentiometer as needed
// XKC-Y25-V Water Level Sensor Basic Example
const int sensorPin = 2;
void setup() {
Serial.begin(9600);
pinMode(sensorPin, INPUT);
}
void loop() {
int waterDetected = digitalRead(sensorPin);
if (waterDetected == HIGH) {
Serial.println("Water detected!");
} else {
Serial.println("No water detected");
}
delay(500);
}
// Physical adjustment via potentiometer:
// 1. Apply water to desired detection level
// 2. Slowly rotate potentiometer until LED changes state
// 3. Test with varying water levels
// Power saving with enable pin
void setup() {
pinMode(EN_PIN, OUTPUT);
}
void takeMeasurement() {
digitalWrite(EN_PIN, HIGH);
delay(50); // Allow stabilization
bool waterPresent = digitalRead(SENSOR_PIN);
digitalWrite(EN_PIN, LOW);
return waterPresent;
}
// Monitor multiple levels
void checkLevels() {
bool lowLevel = readSensor(LOW_SENSOR);
bool highLevel = readSensor(HIGH_SENSOR);
if (highLevel) Serial.println("Tank full");
else if (lowLevel) Serial.println("Tank half full");
else Serial.println("Tank empty");
}
// Prevent rapid state changes
bool stableRead(int pin) {
int count = 0;
for (int i = 0; i < 5; i++) { if (digitalRead(pin)) count++; delay(10); } return count >= 3;
}
No account yet?
Create an Account
Recent Comments