Yl105 - Datasheet
void loop() hallState = digitalRead(hallPin); if (hallState == LOW) // active low typical digitalWrite(ledPin, HIGH); Serial.println("Magnet detected"); else digitalWrite(ledPin, LOW);
Connects directly to the 5V output pin of your microcontroller or single-board computer (SBC).
Basic flickering or timing sequences for decorative lighting. yl105 datasheet
The YL-105 is a staple in the Arduino and robotics hobbyist community. Unlike a simple magnetic switch (which only detects presence/absence), the YL-105 is a paired with a comparator to offer both analog (magnetic field strength) and digital (threshold trigger) outputs. The datasheet, typically a 1-2 page document from generic Chinese manufacturers, is sparse but covers the essentials.
Since YL105 is a generic module name, no single "official" PDF exists. Use this guide along with the datasheet of the actual Hall IC on your module (e.g., AH3144, SS441A, or OH137). Unlike a simple magnetic switch (which only detects
If a timer isn't lasting the correct duration, the external capacitor connected to the timing pins has likely drifted in value or leaked.
Yes, if the module’s VCC is supplied with 3.3V, the digital output will also be 3.3V compatible. However, some modules require 5V for the comparator. Check your specific module. Use this guide along with the datasheet of
Many sellers offer the YL105 as a that includes the bare Hall sensor chip, a comparator (like LM393), a potentiometer for threshold adjustment, an LED indicator, and pull-up resistors. The bare sensor's raw datasheet is often referenced simply as "YL105" or identified by its actual IC marking (e.g., OH137, AH3144, or similar).
The YL105 suffix spans multiple product lines. The following sections detail the most popular variants.

