CATEGORIES

My Account

CATEGORIES
Your Cart

U18 US1881 OH188 1881 Hall Effect Sensor Magnetic Detector

U18 US1881 OH188 1881 Hall Effect Sensor Magnetic Detector
U18 US1881 OH188 1881 Hall Effect Sensor Magnetic Detector
Orders placed before 16:30 on weekdays are sent on the same day. Free shipping over 250 RON.
4,00RON
Ex Tax: 4,00RON
  • Stock: In Stock
  • Model: A0311.US1881

U18 US1881 OH188 1881 Hall Effect Sensor Magnetic Detector

 

The US1881 Hall effect sensor is a digital output magnetic field detector. It can detect the presence and direction of magnetic fields. This sensor is commonly used in automotive, industrial, and consumer electronics applications. The US1881 provides a digital signal when a magnet is brought close to it.

Technical Specifications:

  • Operating Voltage: 3.5V - 24V
  • Output Type: Digital
  • Sensing Distance: Depends on the strength of the magnet
  • Operating Temperature: -40°C to 150°C
  • Hysteresis: Typically 25 Gauss

 

Applications:

  • Position detection
  • Speed measurement
  • Tachometers
  • Magnetic switch applications

 

Using US1881 Hall Sensor with Arduino

The US1881 Hall sensor, when used with an Arduino, can detect the presence of a magnet and produce a digital signal. Here is an example code for using the US1881 sensor with an Arduino:

 

Required Components:

  • Arduino Uno
  • US1881 Hall Sensor
  • Connecting wires
  • Magnet

 

Connection Diagram:

  • Connect the Vcc pin of the US1881 to the 5V pin on the Arduino.
  • Connect the GND pin of the US1881 to the GND pin on the Arduino.
  • Connect the OUT pin of the US1881 to the digital pin 2 on the Arduino.

 

const int hallPin = 2;  // Pin where the Hall sensor output is connected
int hallState = 0;      // Variable to store the state of the Hall sensor

void setup() {
  Serial.begin(9600);   // Initialize serial communication
  pinMode(hallPin, INPUT);  // Set hallPin as an input
}

void loop() {
  hallState = digitalRead(hallPin);  // Read the state of the Hall sensor

  if (hallState == HIGH) {
    Serial.println("Magnet detected");  // Print message when magnet is detected
  } else {
    Serial.println("No magnet");        // Print message when no magnet is detected
  }
  delay(500);  // Wait for 500 milliseconds
}

 

Explanation:

  • In the setup() function, serial communication is initialized, and the Hall sensor output is set as an input.
  • In the loop() function, the state of the Hall sensor is read. If the sensor detects a magnet, "Magnet detected" is printed to the serial monitor. Otherwise, "No magnet" is printed.
  • The delay(500) function creates a 500-millisecond delay between sensor readings.

This simple project allows you to observe whether the US1881 Hall sensor detects a magnet using your Arduino.

Your orders placed before 16:30 on weekdays are dispatched the same day.

Write a review

Note: HTML is not translated!
Rating
Bad Good

Category Products

1x40 Pin Header Male - Black1x40 Male Header is a connectivity tool for easily interfacing sensors and modules in your Arduino projects. With its sing..
0,55RON
Ex Tax:0,55RON
Add to Cart
1 x 40 Pin Header Male - Blue
Out Of Stock
1 x 40 Pin Header Male - BlueProduct Description:1x40 Male Header is a connectivity tool for easily interfacing sensors and modules in your Arduino pr..
0,55RON
Ex Tax:0,55RON
Out Of Stock
1x40 Pin Header Male - Red1x40 Male Header is a connectivity tool for easily interfacing sensors and modules in your Arduino projects. With its single..
0,55RON
Ex Tax:0,55RON
Add to Cart
1 x 40 Pin Header Male - White
Out Of Stock
1 x 40 Pin Header Male - WhiteProduct Description:1x40 Male Header is a connectivity tool for easily interfacing sensors and modules in your Arduino p..
0,55RON
Ex Tax:0,55RON
Out Of Stock
1 x 40 Pin Header Male - Yellow
Out Of Stock
1 x 40 Pin Header Male - YellowProduct Description:1x40 Male Header is a connectivity tool for easily interfacing sensors and modules in your Arduino ..
0,55RON
Ex Tax:0,55RON
Out Of Stock
10 Mhz Crystal Oscillator HC-49S HC-49S packaged crystals are common components used to provide timing and frequency stability in electronic circ..
0,64RON
Ex Tax:0,64RON
Add to Cart

WhatsApp Chat

Hi Guest! Please click one of our representatives Below To Chat On WhatsApp.