Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use AS5147: Examples, Pinouts, and Specs

Image of AS5147
Cirkit Designer LogoDesign with AS5147 in Cirkit Designer

Introduction

The AS5147, manufactured by AMS, is a high-resolution magnetic rotary position sensor designed for precise angular position measurements. It employs contactless Hall effect technology to detect the position of a magnet placed above the sensor. With a 14-bit resolution and digital output, the AS5147 is ideal for applications requiring high accuracy and reliability.

Explore Projects Built with AS5147

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Satellite-Based Timing and Navigation System with SDR and Atomic Clock Synchronization
Image of GPS 시스템 측정 구성도_Confirm: A project utilizing AS5147 in a practical application
This circuit appears to be a complex system involving power supply management, GPS and timing synchronization, and data communication. It includes a SI-TEX G1 Satellite Compass for GPS data, an XHTF1021 Atomic Rubidium Clock for precise timing, and Ettus USRP B200 units for software-defined radio communication. Power is supplied through various SMPS units and distributed via terminal blocks and DC jacks. Data communication is facilitated by Beelink MINI S12 N95 computers, RS232 splitters, and a 1000BASE-T Media Converter for network connectivity. RF Directional Couplers are used to interface antennas with the USRP units, and the entire system is likely contained within cases for protection and organization.
Cirkit Designer LogoOpen Project in Cirkit Designer
Satellite Compass and Network-Integrated GPS Data Processing System
Image of GPS 시스템 측정 구성도_241016: A project utilizing AS5147 in a practical application
This circuit comprises a satellite compass, a mini PC, two GPS antennas, power supplies, a network switch, media converters, and an atomic rubidium clock. The satellite compass is powered by a triple output DC power supply and interfaces with an RS232 splitter for 1PPS signals. The mini PCs are connected to the USRP B200 devices via USB for data and power, and to media converters via Ethernet, which in turn connect to a network switch using fiber optic links. The antennas are connected to the USRP B200s through RF directional couplers, and the atomic clock provides a 1PPS input to the RS232 splitter.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino and ESP32-Based Smart Automation System with RFID Access Control
Image of Schematic Diagram: A project utilizing AS5147 in a practical application
This circuit is designed for an automated access control or security system, featuring microcontroller-based control of RFID readers, ultrasonic and IR sensors, servo motors, and solenoid locks. It includes power management with a 12V supply, step-down converters, and an automatic transfer switch for backup power, indicating a robust and possibly redundant power system.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered ESP32-S3 Controlled Servo System with gForceJoint UART
Image of Copy of Oymotion: A project utilizing AS5147 in a practical application
This circuit is a servo control system powered by a 4 x AAA battery pack, regulated by a step-down DC regulator. An ESP32-S3 microcontroller controls five servos and communicates with a gForceJoint UART sensor, enabling precise servo movements based on sensor inputs.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with AS5147

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of GPS 시스템 측정 구성도_Confirm: A project utilizing AS5147 in a practical application
Satellite-Based Timing and Navigation System with SDR and Atomic Clock Synchronization
This circuit appears to be a complex system involving power supply management, GPS and timing synchronization, and data communication. It includes a SI-TEX G1 Satellite Compass for GPS data, an XHTF1021 Atomic Rubidium Clock for precise timing, and Ettus USRP B200 units for software-defined radio communication. Power is supplied through various SMPS units and distributed via terminal blocks and DC jacks. Data communication is facilitated by Beelink MINI S12 N95 computers, RS232 splitters, and a 1000BASE-T Media Converter for network connectivity. RF Directional Couplers are used to interface antennas with the USRP units, and the entire system is likely contained within cases for protection and organization.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of GPS 시스템 측정 구성도_241016: A project utilizing AS5147 in a practical application
Satellite Compass and Network-Integrated GPS Data Processing System
This circuit comprises a satellite compass, a mini PC, two GPS antennas, power supplies, a network switch, media converters, and an atomic rubidium clock. The satellite compass is powered by a triple output DC power supply and interfaces with an RS232 splitter for 1PPS signals. The mini PCs are connected to the USRP B200 devices via USB for data and power, and to media converters via Ethernet, which in turn connect to a network switch using fiber optic links. The antennas are connected to the USRP B200s through RF directional couplers, and the atomic clock provides a 1PPS input to the RS232 splitter.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Schematic Diagram: A project utilizing AS5147 in a practical application
Arduino and ESP32-Based Smart Automation System with RFID Access Control
This circuit is designed for an automated access control or security system, featuring microcontroller-based control of RFID readers, ultrasonic and IR sensors, servo motors, and solenoid locks. It includes power management with a 12V supply, step-down converters, and an automatic transfer switch for backup power, indicating a robust and possibly redundant power system.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Copy of Oymotion: A project utilizing AS5147 in a practical application
Battery-Powered ESP32-S3 Controlled Servo System with gForceJoint UART
This circuit is a servo control system powered by a 4 x AAA battery pack, regulated by a step-down DC regulator. An ESP32-S3 microcontroller controls five servos and communicates with a gForceJoint UART sensor, enabling precise servo movements based on sensor inputs.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Robotics: Joint position sensing and motor control
  • Automotive: Steering angle detection and throttle position sensing
  • Industrial Automation: Rotary encoders and motor feedback systems
  • Consumer Electronics: Joystick and knob position sensing

Technical Specifications

The AS5147 offers robust performance and flexibility for a wide range of applications. Below are its key technical details:

Key Specifications

Parameter Value
Supply Voltage (VDD) 3.3V or 5V
Resolution 14-bit (16,384 positions per revolution)
Interface SPI, PWM, ABI (Incremental)
Maximum Speed 28,000 RPM
Operating Temperature -40°C to +150°C
Magnetic Field Strength 30 - 70 mT
Power Consumption 18 mA (typical)

Pin Configuration and Descriptions

The AS5147 is typically available in a TSSOP-14 package. Below is the pinout and description:

Pin Number Pin Name Description
1 VDD3V3 3.3V Power Supply
2 VDD5V 5V Power Supply
3 GND Ground
4 CSn Chip Select (Active Low) for SPI Communication
5 CLK SPI Clock Input
6 DO SPI Data Output
7 DI SPI Data Input
8 PWM Pulse Width Modulation Output
9 A Incremental Encoder Output (Channel A)
10 B Incremental Encoder Output (Channel B)
11 Index Incremental Encoder Index Pulse
12 PROG Programming Pin (for OTP configuration)
13 TEST Test Pin (leave unconnected in normal operation)
14 NC Not Connected

Usage Instructions

The AS5147 is straightforward to integrate into a circuit. Below are the steps and best practices for using the sensor:

Circuit Connection

  1. Power Supply: Connect the VDD3V3 or VDD5V pin to a 3.3V or 5V power source, respectively, and GND to ground.
  2. SPI Communication: Connect the CSn, CLK, DO, and DI pins to the corresponding SPI pins on your microcontroller.
  3. Magnet Placement: Place a diametrically magnetized magnet above the sensor, ensuring it is centered and within the recommended distance (1-3 mm).
  4. Output Options: Use the SPI interface for digital data, or connect the PWM, A, B, and Index pins for alternative output modes.

Arduino UNO Example Code

The AS5147 can be interfaced with an Arduino UNO using the SPI protocol. Below is an example code snippet:

#include <SPI.h>

// Define SPI pins for AS5147
const int CS_PIN = 10; // Chip Select pin

void setup() {
  Serial.begin(9600); // Initialize serial communication
  SPI.begin();        // Initialize SPI
  pinMode(CS_PIN, OUTPUT);
  digitalWrite(CS_PIN, HIGH); // Set CS pin to HIGH (inactive)
}

uint16_t readAS5147() {
  uint16_t angle = 0;

  digitalWrite(CS_PIN, LOW); // Activate the sensor
  delayMicroseconds(1);      // Small delay for stability

  // Send command to read angle (16-bit data)
  uint16_t command = 0xFFFF; // Example command for angle read
  angle = SPI.transfer16(command);

  digitalWrite(CS_PIN, HIGH); // Deactivate the sensor
  return angle;
}

void loop() {
  uint16_t angle = readAS5147(); // Read angle from AS5147
  Serial.print("Angle: ");
  Serial.println(angle);        // Print angle to serial monitor
  delay(100);                   // Delay for readability
}

Best Practices

  • Ensure the magnet is properly aligned and within the specified distance for accurate readings.
  • Use decoupling capacitors (e.g., 100 nF) near the power supply pins to reduce noise.
  • Avoid placing the sensor near strong external magnetic fields that could interfere with measurements.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output or Incorrect Readings:

    • Verify the power supply voltage and connections.
    • Ensure the magnet is properly aligned and within the recommended distance.
    • Check SPI connections and ensure the correct pin configuration.
  2. Noise in Output:

    • Add decoupling capacitors near the power supply pins.
    • Use shielded cables for SPI communication to reduce electromagnetic interference.
  3. Sensor Not Responding to SPI Commands:

    • Confirm the SPI clock speed is within the sensor's specifications.
    • Ensure the CSn pin is toggled correctly during communication.

FAQs

Q: Can the AS5147 be used with a 5V microcontroller?
A: Yes, the AS5147 supports both 3.3V and 5V power supplies, making it compatible with 5V microcontrollers like the Arduino UNO.

Q: What type of magnet should I use with the AS5147?
A: Use a diametrically magnetized magnet with a magnetic field strength of 30-70 mT.

Q: How do I switch between SPI and PWM output modes?
A: The output mode is configured via the sensor's internal registers. Refer to the AS5147 datasheet for detailed instructions on register configuration.

Q: What is the maximum distance between the magnet and the sensor?
A: The recommended distance is 1-3 mm for optimal performance.