Description
What it is
The KY-003 module is a magnetic field sensor based on the A3144 chip that uses the Hall effect principle to detect the presence and intensity of the magnetic field. This device is ideal for Arduino projects and other microcontroller systems.
Features
- Hall Effect Magnetic Field Sensor A3144
- Ideally suited for magnetic measurements in electronics and robotics projects
What it is for
This sensor can be used for various purposes, including creating a magnetic alarm that turns on an LED when a magnetic material is brought near. It is compatible with Arduino and other microcontrollers.
Tutorial: How to Use KY-003 Magnetic Field Sensor Module
This sensor helps you detect the magnetic field around you, ideal for electronics and robotics projects. Useful for beginners and intermediates.
What you need
- KY-003 Module
- Arduino
- Connection Cable
- 1 kΩ Resistor
Steps
- 1. Connect the KY-003 module to pin 2 of Arduino.
- 2. Connect a 1 kΩ resistor between the VCC pin of the module and the 5V pin of Arduino.
- 3. Connect the GND pin of the module to the GND pin of Arduino.
- 4. Load the provided Arduino code.
- 5. Run the code and observe the values printed on Serial Monitor.
- 6. Try bringing a magnetic material close to the sensor.
- 7. Adapt the code to use the detected values.
- 8. Check the datasheet for further details
Example code
```void setup() { Serial.begin(9600);}void loop() { int reading = digitalRead(2); Serial.println(reading); delay(1000);}
Mini project
Create a magnetic alarm that turns on an LED when a magnetic material is brought near.
Common mistakes
- Connecting the sensor directly to the 5V of Arduino without a resistor can damage it.
- Do not use analog pins for digital sensors.
- Make sure the resistor is correct (1 kΩ).
- The sensor does not detect all magnetic materials.
Recommended accessories
- LED
- 220Ω resistor
- 3V battery
- Arduino Nano
Frequently asked questions
The sensor does not detect anything?
Check the correct connection and magnetic material.
Can I use another resistor?
Check the datasheet for alternative specifications.
Does the sensor work with Arduino Uno?
Yes, it works with Arduino Uno.







Reviews
There are no reviews yet.