If you’re replacing the AS5600, the AS5048A is a good pick with higher precision and SPI support, though you’ll need to update both software and PCB due to different packaging (TSSOP-14). The MA730 is another option, great for high-speed applications but only supports 3.3V supply, uses QFN package, and lacks analog output. Keep interface, voltage, and precision in mind when choosing.
AS5600 magnetic encoder, Arduino library
Discover the AS5600 magnetic encoder with versatile applications including Arduino and Raspberry Pi projects. Explore its features such as analog output, I2C address change, and high accuracy.
- Brands: ams OSRAM
- Download: -
- Price: inquiry
- In Stock: 11702
- Contact Gender: -
- Material: -
- Maximum Bundle Diameter: -
- Package: -

FREE delivery for orders over HK$250.00

Quick response, quick quotaton

Flash shipment,no worries after sales

Original channel,guarantee of the authentic products
AS5600 Position Sensors IoT Demo Kit
AS5600
AS5600 is a super handy magnetic rotary sensor—no physical contact needed, measuring angles from 0° to 360° precisely. It outputs via I²C or PWM, easy to connect with Arduino or STM32. You can set zero-position anywhere, making it ideal for DIY encoders, knobs, or motor position sensing projects.
AS5600 Pinout

| Pin Number | Pin Name | Type | Description |
|---|---|---|---|
| 1 | VDD | Power | Power supply input, operating voltage range 3.3V–5V |
| 2 | OUT | Output | PWM or analog output (depends on configuration) |
| 3 | GND | Ground | Ground connection |
| 4 | NC | No Connect | Reserved, can be left unconnected |
| 5 | SCL | Input | I²C clock line |
| 6 | SDA | Input/Output | I²C data line |
| 7 | DIR | Input | Direction control pin, high = forward, low = reverse |
| 8 | VSS | Ground | Ground (same as GND, typically tied together) |
When using the AS5600, place the magnet directly above the chip with a 2–3mm gap. Add a 100nF decoupling capacitor near VDD. For angle output, connect SCL/SDA for I²C or read directly from OUT for PWM/analog. Adjust rotation direction via the DIR pin. Leave NC pins unconnected.
AS5600 Equivalent Magnetic Encoder



| Parameter / Model | AS5600 | AS5048A | MA730 |
|---|---|---|---|
| Package | SOIC-8 | TSSOP-14 | QFN-14 |
| Interface Type | I²C / PWM / Analog | SPI | SPI / PWM |
| Resolution | 12-bit (4096 steps) | 14-bit (16384 steps) | 14-bit |
| Angle Range | 0–360° | 0–360° | 0–360° |
| Sensing Method | Contactless magnetic | Contactless magnetic | Contactless magnetic |
| Operating Voltage | 3.3V–5V | 3.3V / 5V | 3.3V |
| Automatic Zero Setting | Supported | Supported | Supported |
| Output Latency | Low | Moderate | Very Low |
| Application Suitability | General use, DIY friendly | More suitable for high-precision applications | More suitable for high-speed motor control |
AS5600 Angle Sensor Circuit Example

This AS5600 circuit is straightforward and effective. AMS1117 converts 5V to 3.3V for stable operation. Don’t forget pull-up resistors on SDA and SCL lines for reliable I²C communication. DIR pin grounded means no direction reversal by default. Place your magnet directly above the sensor, around 2-3mm away, ideal for DIY motor control, knobs, or robotic joints.
AS5600 Arduino Magnet Position Project
AS5600 with Arduino for angle sensing is straightforward—just place a magnet 2-3mm above the sensor and it instantly reads angles (0-360°). Connect VDD, GND, SDA, SCL, and Arduino gets the angle via I²C. Perfect for servo control, LED brightness adjustment, or knob interfaces. With zero contact, no wear, and high precision, it’s great for DIY robotics and interactive projects.
AS5600 I2C Wiring Guide
Connecting AS5600 via I²C is straightforward:
-
VDD to Arduino/ESP32 3.3V or 5V.
-
GND to ground.
-
SDA and SCL to the MCU’s I²C pins (A4 and A5 for Arduino UNO).
No extra pull-up resistors needed if using Arduino boards, but add 4.7kΩ resistors if needed. DIR can stay disconnected, and OUT pin only if PWM or analog is required. Place magnet 2-3mm above the sensor, keeping it centered.
AS5600 Motor Position Feedback
The AS5600 is great for motor position feedback in low-to-medium speed and accuracy scenarios, like servos or robot joints. Just fix a magnet on your motor shaft, place it 2-3mm above the sensor, and you’ll get a real-time angle output (0-360°) via I²C. It’s frictionless, durable, compact, and easily adjustable—perfectly replacing traditional pots or mechanical encoders.
More Like This
Also Add to Cart
Related Products
Please send RFQ , we will respond immediately.
Copyright © 2024 All Rights Reserved










