CubeMars AS5048A 14-Bit SPI Magnetic Encoder Module for BLDC Motors
Shipping from China within 5–10 working days
- During check out, you can choose direct shipping from China, or let us import the order to our EU/US office first and ship it to you locally.
- Import customs clearance and VAT are fully handled by us.
Need a larger quantity?
Need bulk pricing?
Get a formal quotation with lead time and volume pricing.
For universities, companies, distributors, and project orders.
CubeMars AS5048A 14-Bit SPI Magnetic Encoder Module for BLDC Motors
The CubeMars AS5048A magnetic encoder module provides contactless, single-turn absolute angle sensing for BLDC motor feedback, robotic joints and embedded motion-control projects. Its AS5048A sensor measures a rotating magnet through a full 360°, supplying position information without a sliding electrical contact.
The 14-bit SPI output represents 16,384 positions per revolution, while a separate 12-bit PWM output offers another way to read the angle. A programmable zero position helps align the electrical reading with a mechanism's reference position. The module is a feedback sensor, not a motor driver: a compatible controller must read and use its position data.
Use it when developing BLDC position feedback, gimbal axes, robotic joint sensing or compact rotary mechanisms. The package contains the encoder module, a connection cable and a magnet. Check the actual board markings and controller interface before wiring; the AS5048A is the SPI version, not the I2C AS5048B.
Features
- Absolute rotary measurement - Reports position within one complete revolution rather than requiring the host to reconstruct that angle from incremental pulses.
- 14-bit SPI position data - Provides 16,384 angular codes for controller-side position processing.
- Separate PWM feedback - The sensor also provides a 12-bit angle signal through its PWM output; this is not a 14-bit PWM or quadrature A/B interface.
- Contactless magnetic sensing - Uses a rotating two-pole magnet instead of a sliding contact at the measurement point.
- Programmable reference position - Set the angle zero through SPI when aligning feedback with the mechanism.
- Accessible signal pads - The pictured PCB identifies CSN, CLK, MOSI, MISO, PWM, +5V and GND connections.
- Controller integration - Suitable for position-feedback development when the host implements the AS5048A communication protocol and compatible electrical levels.
- Magnetic diagnostic information - Sensor registers support checking magnetic-field and internal calculation status during setup.
- Module, cable and magnet - Includes the three listed physical items for building a custom encoder installation.
Specifications
Module and Connections
| Parameter | Value |
|---|---|
| Module / sensor | CubeMars encoder module / AS5048A |
| Measurement type | Contactless, on-axis, single-turn absolute rotary position |
| PCB signal markings | CSN, CLK, MOSI, MISO and PWM |
| PCB power markings | +5V and GND |
AS5048A Sensor IC
The following are sensor-chip reference values, not separate ratings for the complete PCB, cable or magnet. System sampling, delay, noise and non-linearity values follow the datasheet's 5 V, -40 to +150°C conditions unless a different condition is shown.
| Parameter | Value |
|---|---|
| Angular range | 360° |
| SPI angle resolution | 14 bit; 16,384 positions/revolution |
| Nominal angular code step | 0.0219°/LSB; resolution, not absolute accuracy |
| Serial interface | SPI slave; 16-bit communication frames |
| SPI clock capability | Up to 10 MHz, corresponding to the 100 ns minimum clock period |
| PWM angle format | 12-bit angle information |
| PWM frequency | 0.907 kHz min / 1 kHz typ / 1.102 kHz max |
| Output sampling rate | 10.2 kHz min / 11.25 kHz typ / 12.4 kHz max |
| System propagation delay | 90.7 µs min / 100 µs typ / 110.2 µs max |
| Startup time | 10 ms max |
| 5 V IC supply configuration | 4.5-5.5 V at VDD5V, using the internal LDO |
| 3.3 V IC supply configuration | 3.0-3.6 V, with VDD3V connected to VDD5V as specified in the datasheet; requires the correct circuit configuration |
| Sensor supply current | 15 mA max |
| Magnetic input field | 30 mT min / 50 mT typ / 70 mT max |
| Sensor output noise | 0.06° max RMS; 2.73 LSB at 14 bit |
| Non-linearity, optimum magnet placement at 25°C | ±0.8° max |
| Non-linearity, optimum placement over full temperature range | ±1° max |
| Non-linearity with magnet displacement and temperature | ±1.2° max at -40 to +150°C; N35H magnet, 8 mm diameter × 3 mm height, 500 µm displacement in x and y, 2 mm z-distance |
| IC ambient temperature, 5 V operation | -40 to +150°C |
| IC ambient temperature, 3.3 V operation | -40 to +125°C |
| Digital input thresholds | High: at least 0.7 × VDDCORE; low: at most 0.3 × VDDCORE |
| Digital output levels | High: at least VDDCORE - 0.5 V; low: at most GND + 0.4 V |
| Output current / capacitive load | 4 mA max / 50 pF max |
| Zero-position setting | SPI-programmable; permanent OTP programming is one-time and irreversible |
Resolution and accuracy are different: a smaller angular code step does not guarantee the same measurement error. Magnet alignment, field strength, mounting and the complete mechanical system affect the result. Likewise, the IC's 3.3 V configuration and temperature limits do not by themselves qualify this module, its cable or its magnet for those conditions.
Product Comparison
AS5048A and AS5048B belong to the same sensor family but use different serial interfaces. This comparison concerns sensor types, not alternative package contents for this SKU.
| Parameter | CubeMars AS5048A | AS5048B Sensor IC |
|---|---|---|
| Serial interface | SPI | I2C |
| Absolute sensing range | 360° | 360° |
| Serial angle resolution | 14 bit | 14 bit |
| Additional angle output | PWM | PWM |
| Zero-position programming | SPI commands | I2C commands |
| Host integration | AS5048A SPI transaction handling | AS5048B I2C transaction handling |
Choose the interface required by the controller and firmware. AS5048A is not an I2C device, and the two versions should not be treated as interchangeable modules merely because their angle resolution matches.
Integration Notes
Power and logic: follow the actual module's +5V/GND markings and check the controller's input and output levels. The chip's internal 3.3 V core means a 5 V supply is not proof of 5 V signal-level compatibility. Do not treat the IC's alternative supply circuit as an automatically supported module setting.
SPI communication: connect chip select, clock, controller-to-sensor data and sensor-to-controller data according to the board markings. Implement the datasheet's frame format, parity, response timing and error handling. The SPI clock limit, sensor sampling rate and PWM frequency describe different parts of the signal path.
Magnet installation: place a diametrically magnetized, two-pole magnet concentrically above or below the sensing center. Select the gap from the magnet geometry and usable field range, then check the reading through a full revolution. Do not use a generic gap specification from a different encoder board as a guaranteed value for this installation.
Calibration and motion control: verify direction, mechanical zero, angle wraparound and feedback timing before enabling a powered mechanism. Permanent OTP zero programming cannot be undone. The encoder supplies position information; the external motor driver and control software remain responsible for closed-loop actuation.
Applications
BLDC Motor Position Feedback
Read the rotor's mechanical angle in a custom motor-control project and pass it to compatible controller firmware. Confirm the encoder-to-rotor relationship and the controller's feedback requirements before using the measurement for commutation or position control.
Robotic Joint Position Sensing
Measure a rotary axis in an articulated mechanism. Mounting on the motor shaft or the output side of a reduction stage measures different motion, so select the location according to the feedback needed by the robot.
Gimbal and Rotary Platform Development
Develop angle feedback for a gimbal axis, turntable or compact positioning platform. Use the mechanical reference and full-turn readings to evaluate alignment and direction rather than assuming the module is a drop-in replacement for every existing gimbal encoder.
Industrial Automation Prototypes
Add rotary position measurement to laboratory fixtures and embedded automation assemblies. Evaluate mounting repeatability and the electrical environment alongside the controller's software, particularly when motor power wiring and sensor connections share an enclosure.
Service-Robotics and Fitness-Equipment Research
Explore position sensing in research mechanisms such as articulated linkages and motion-training prototypes. The feedback module is one component of the system; it does not establish medical certification or a safety-rated motion-control function.
Embedded Encoder Evaluation
Use a microcontroller test bench to compare SPI reads with PWM angle decoding, inspect magnetic diagnostics and observe angle wraparound. This supports firmware development before the sensor is fitted to a larger motion system.
Reference Documents
Sensor Datasheet and Interface Reference
Packing List
| SKU | Item | Quantity |
|---|---|---|
CubeMars-AS5048A
|
AS5048A encoder module | 1 |
| Connection cable | 1 | |
| Magnet | 1 |
FAQ
What is this CubeMars AS5048A module used for?
It provides single-turn absolute rotary position feedback for BLDC motor, robotic joint and embedded motion-control development. A separate controller reads the encoder and controls the mechanism.
Does 14-bit resolution mean 0.0219-degree accuracy?
No. That value describes the nominal angular code step. Measurement error depends on sensor non-linearity, magnet placement and the assembled system; resolution is not an accuracy guarantee.
Does AS5048A use SPI or I2C?
AS5048A uses SPI. AS5048B is the I2C member of the family. Use AS5048A-specific communication code for this module.
Is the PWM angle output also 14-bit?
No. The SPI angle data is 14-bit, while the datasheet specifies a 12-bit PWM angle format. Decode the complete PWM format rather than treating every high pulse as angle data alone.
Can I power the module directly from 3.3 V?
The pictured module has +5V power pads. Although the AS5048A IC supports a separate 3.3 V circuit configuration, that does not confirm this board is configured for it. Verify the module circuit before using a different supply arrangement.
What magnet arrangement is required?
The sensor is intended for an on-axis, diametrically magnetized two-pole magnet. Center it on the sensing area and verify the magnetic field and angle readings after mounting. Suitable spacing depends on the actual magnet and assembly.
Does it keep track of multiple revolutions?
It measures the absolute angle within one revolution. If a project requires a multi-turn position, the host must implement an appropriate turn-tracking and retention strategy; the single-turn reading alone does not provide that function.
Can the electrical zero position be changed?
The sensor supports zero-position settings through SPI. Permanent OTP programming is one-time and irreversible, so verify the reference and follow the datasheet procedure before committing a permanent setting.
Is the whole module rated for operation at 150 degrees Celsius?
The listed temperature limits are AS5048A IC ratings with supply-mode conditions. They do not confirm the same rating for the complete board, connection cable or supplied magnet.
What is included in the package?
One AS5048A encoder module, one connection cable and one magnet.



