BS-1D-R
AI

The **BS-1D-R** typically refers to a specific model of a **Miniature Photoelectric Sensor** (often associated with brands like Takex or Seeed Studio) or a **Buzzer/Sounder module** depending on the specific electronic context. Based on standard industrial components, here is an explanation of its electronic parts and specifications.
---
## 1. Component Overview
The BS-1D-R is primarily used for object detection in automation. It is a "Reflex" or "Retro-reflective" type sensor, meaning it houses both the light emitter and receiver in one unit.
### Core Electronic Specifications
| Parameter | Description |
| :--- | :--- |
| **Input Voltage** | 12V to 24V DC (typical range) |
| **Output Type** | NPN Open Collector (often with a "Dark ON" or "Light ON" mode) |
| **Sensing Distance** | Approximately 0.1 to 1.0 meters (depending on reflector) |
| **Current Consumption** | 20mA - 30mA |
| **Response Time** | Max 1ms |
---
## 2. Internal Electronic Parts
The device consists of several critical sub-assemblies that work together to detect objects:
### A. Light Emitter (Infrared LED)
The source of the sensing beam. It pulses at a specific frequency to ensure the receiver does not get confused by ambient room light.
### B. Light Receiver (Phototransistor/Photodiode)
Tuned to the same frequency as the emitter. It converts the reflected light into a small electrical signal.
### C. Processing Circuit (Comparator/IC)
* **Amplifier:** Boosts the weak signal from the receiver.
* **Schmitt Trigger:** A circuit used to provide a clean "On/Off" signal, preventing flickering when an object is at the edge of the sensing range.
### D. Output Transistor
Usually an **NPN Transistor**. When an object breaks the beam:
1. The transistor switches.
2. The output wire is pulled to Ground (0V).
3. This signals a PLC or microcontroller that an object is present.
---
## 3. Wiring Configuration
The BS-1D-R usually follows the standard industrial color coding:
| Wire Color | Function | Description |
| :--- | :--- | :--- |
| **Brown** | VCC (+) | Connect to positive power supply (12-24V). |
| **Blue** | GND (-) | Connect to 0V / Common. |
| **Black** | Output (Signal) | The sensing signal (NPN). |
---
## 4. Basic Circuit Implementation
To connect this to a microcontroller (like an Arduino), you typically need a pull-up resistor.
```cpp
// Example: Basic code to read BS-1D-R status
int sensorPin = 2; // Black wire connected to Digital Pin 2
void setup() {
pinMode(sensorPin, INPUT_PULLUP); // Use internal pull-up for NPN
Serial.begin(9600);
}
void loop() {
int state = digitalRead(sensorPin);
if (state == LOW) {
Serial.println("Object Detected!");
}
delay(100);
}
```
- ⤷
What is the difference between NPN and PNP output for this sensor?
- ⤷ How do I align the BS-1D-R with a reflector for maximum range?
- ⤷ Can this sensor be used with a 5V logic system like a Raspberry Pi?