MH18TBD-R
AI

The **MH18TBD-R** is an electronic component primarily classified as a **Hall Effect Sensor IC**. It is designed for high-sensitivity magnetic field detection, often used in consumer electronics and industrial positioning.
---
### 1. Technical Specifications
The following table highlights the core electrical characteristics of the MH18TBD-R:
| Parameter | Specification |
| :--- | :--- |
| **Component Type** | Unipolar Hall Effect Switch |
| **Operating Voltage** | 2.5V to 24V |
| **Output Type** | Open Drain |
| **Sensitivity** | High (Typically 30-60 Gauss) |
| **Package Type** | SOT-23 (Surface Mount) |
| **Temperature Range** | -40°C to +125°C |
---
### 2. Key Internal Components
The IC is an integrated system consisting of several stages to ensure stable switching:
1. **Hall Plate:** The primary sensing element that generates a micro-voltage when exposed to a magnetic field.
2. **Chopper Stabilization:** Internal circuitry that cancels out offset voltages caused by temperature changes or mechanical stress, ensuring high accuracy.
3. **Schmitt Trigger:** A comparator with hysteresis that prevents "chattering" (rapid flickering of the signal) when the magnetic field is near the threshold.
4. **Open-Drain Output:** A transistor switch that allows the sensor to interface with different logic levels (e.g., 3.3V or 5V) via a pull-up resistor.
---
### 3. Pin Configuration (SOT-23)
The device typically follows a standard three-pin layout:
| Pin Number | Name | Function |
| :--- | :--- | :--- |
| 1 | **VDD** | Power Supply Input |
| 2 | **OUT** | Signal Output (Low when magnet is present) |
| 3 | **GND** | Ground |
---
### 4. Typical Applications
Because it is a **Unipolar** sensor, it responds only to a specific pole of a magnet (usually the South pole). Common uses include:
* **Proximity Switching:** Detecting if a lid is closed or a door is open.
* **Speed Sensing:** Counting revolutions in small motors or fans.
* **Positioning:** Identifying the limit of travel in mechanical arms.
---
### 5. Implementation Example
To use this part with a microcontroller (like an Arduino or ESP32), a pull-up resistor is required because of the open-drain architecture.
```cpp
// Basic Logic for Reading MH18TBD-R
int sensorPin = 2; // Connected to Pin 2 (OUT)
int val = 0;
void setup() {
pinMode(sensorPin, INPUT_PULLUP); // Internal pull-up required
Serial.begin(9600);
}
void loop() {
val = digitalRead(sensorPin);
if (val == LOW) {
Serial.println("Magnet Detected!");
}
delay(100);
}
```
- ⤷What is the difference between a Unipolar and Omnipolar Hall Effect sensor?
- ⤷ How do I calculate the required pull-up resistor value for the MH18TBD-R?
- ⤷ Can this sensor be used for linear distance measurement?