# ODrive 3.6 56V no beep or motor movement at calibration with AS5048A encoder

**URL:** <https://discourse.odriverobotics.com/t/odrive-3-6-56v-no-beep-or-motor-movement-at-calibration-with-as5048a-encoder/5372>\
**Category:** Support\
**Created:** [September 1, 2020, 2:11am UTC](https://discourse.odriverobotics.com/t/odrive-3-6-56v-no-beep-or-motor-movement-at-calibration-with-as5048a-encoder/5372 "2020-09-01T02:11:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodrive](https://discourse.odriverobotics.com/letter_avatar_proxy/v4/letter/r/a183cd/32.png) [@rodrive](https://discourse.odriverobotics.com/u/rodrive)\
**Post date:** [September 1, 2020, 2:11am UTC](https://discourse.odriverobotics.com/t/odrive-3-6-56v-no-beep-or-motor-movement-at-calibration-with-as5048a-encoder/5372/1 "2020-09-01T02:11:54Z")

</div>

Hi,  
I bought recently 3 ODrive v3.6 56V that I flashed with firmware version rc-v0.5.1 for AS5048A support.

Configured the AS5048A encoders as specified here: [https://github.com/madcowswe/ODrive/blob/rc-v0.5.1/docs/encoders.md](https://github.com/madcowswe/ODrive/blob/rc-v0.5.1/docs/encoders.md)

The encoders are connected for SPI/AMS protocol like this.

 ![image](https://discourse.odriverobotics.com/uploads/default/original/2X/8/8ce65e38b5821325fc36ff839d4ae48247da129b.png)

When I run requested\_state = AXIS\_STATE\_FULL\_CALIBRATION\_SEQUENCE nothing happen. No beep, no motor movement. dump\_errors(odrv0) gives no error.

If I do not configure the encoders and I run requested\_state = AXIS\_STATE\_MOTOR\_CALIBRATION the beep happens and the motors are calibrated. After that I save the configuration and reboot the ODrive. I connect the encoder, configure it, save the configuration and reboot. At set requested\_state = AXIS\_STATE\_ENCODER\_OFFSET\_CALIBRATION nothing happens again. No errors shown with dump\_errors(odrv0).

Can somebody help me to understand what happens.

Thank you!

---

<div class="post-metadata">

**Author:** ![rodrive](https://discourse.odriverobotics.com/letter_avatar_proxy/v4/letter/r/a183cd/32.png) [@rodrive](https://discourse.odriverobotics.com/u/rodrive)\
**Post date:** [September 2, 2020, 1:03am UTC](https://discourse.odriverobotics.com/t/odrive-3-6-56v-no-beep-or-motor-movement-at-calibration-with-as5048a-encoder/5372/2 "2020-09-02T01:03:04Z")

</div>

The sensors are in good order. Verified with Arduino Uno and [https://github.com/eborghi10/AS5048A/](https://github.com/eborghi10/AS5048A/)

Apparently there is a problem in the rc-v0.5.1 firmware: [https://github.com/madcowswe/ODrive/issues/478](https://github.com/madcowswe/ODrive/issues/478)

---

<div class="post-metadata">

**Author:** ![PJohnson](https://discourse.odriverobotics.com/user_avatar/discourse.odriverobotics.com/pjohnson/32/3571_2.png) [@PJohnson](https://discourse.odriverobotics.com/u/PJohnson)\
**Post date:** [September 3, 2020, 1:35am UTC](https://discourse.odriverobotics.com/t/odrive-3-6-56v-no-beep-or-motor-movement-at-calibration-with-as5048a-encoder/5372/3 "2020-09-03T01:35:54Z")

</div>

@Wetmelon found the bug! Here’s a link: [https://github.com/madcowswe/ODrive/issues/478#issuecomment-686168864](https://github.com/madcowswe/ODrive/issues/478#issuecomment-686168864).

We will release a binary for rc-v0.5.1 with the hotfix soon. In the meantime, you can compile the firmware from source to see if this fixes your issues. The encoder documentation page will also be updated.

In brief - the SPI peripheral is shared between the motor driver IC’s and external devices. During motor driver initialization, the GPIO for the encoder CS line is in an unknown state. If it goes low, the AS504X may try to transmit data and cause a bus collision. This fix initializes the GPIO for your CS line before the motor driver IC’s are initialized.

---

<div class="post-metadata">

**Author:** ![rodrive](https://discourse.odriverobotics.com/letter_avatar_proxy/v4/letter/r/a183cd/32.png) [@rodrive](https://discourse.odriverobotics.com/u/rodrive)\
**Post date:** [September 3, 2020, 12:18pm UTC](https://discourse.odriverobotics.com/t/odrive-3-6-56v-no-beep-or-motor-movement-at-calibration-with-as5048a-encoder/5372/4 "2020-09-03T12:18:47Z")

</div>

Thank you! I’ll try that today.

---

<div class="post-metadata">

**Author:** ![rodrive](https://discourse.odriverobotics.com/letter_avatar_proxy/v4/letter/r/a183cd/32.png) [@rodrive](https://discourse.odriverobotics.com/u/rodrive)\
**Post date:** [September 4, 2020, 1:57am UTC](https://discourse.odriverobotics.com/t/odrive-3-6-56v-no-beep-or-motor-movement-at-calibration-with-as5048a-encoder/5372/5 "2020-09-04T01:57:56Z")

</div>

I flashed the ODrive with the latest version of devel firmware that includes the hotfix. I had almost the same behavior. No shadow\_count value change but had ERROR\_ENCODER\_FAILED. The encoder is in 3.3V operation mode.  
After that I added a 22uF/63V electrolytic capacitor from VDD3V terminal to ground. All good now!  
shadow\_count value changes when moving the motor and no more errors.

This is the encoder that I use. From Aliexpress. Maybe not the best quality?  
 ![image](https://discourse.odriverobotics.com/uploads/default/original/2X/0/00c88505302d8f811174bf5ec94e8ff4fb64e3d5.jpeg)

---

<div class="post-metadata">

**Author:** ![PJohnson](https://discourse.odriverobotics.com/user_avatar/discourse.odriverobotics.com/pjohnson/32/3571_2.png) [@PJohnson](https://discourse.odriverobotics.com/u/PJohnson)\
**Post date:** [September 4, 2020, 8:59pm UTC](https://discourse.odriverobotics.com/t/odrive-3-6-56v-no-beep-or-motor-movement-at-calibration-with-as5048a-encoder/5372/6 "2020-09-04T20:59:54Z")

</div>

It’s hard to say if the IC itself is the issue, but if it works, it works! Good thinking with additional bus capacitance.

---

<div class="post-metadata">

**Author:** ![rodrive](https://discourse.odriverobotics.com/letter_avatar_proxy/v4/letter/r/a183cd/32.png) [@rodrive](https://discourse.odriverobotics.com/u/rodrive)\
**Post date:** [September 6, 2020, 2:43am UTC](https://discourse.odriverobotics.com/t/odrive-3-6-56v-no-beep-or-motor-movement-at-calibration-with-as5048a-encoder/5372/7 "2020-09-06T02:43:20Z")

</div>

I finally bought some AS5048A from Mouser.

---

<div class="post-metadata">

**Author:** ![Paulo\_Schmitt](https://discourse.odriverobotics.com/user_avatar/discourse.odriverobotics.com/paulo_schmitt/32/3544_2.png) [@Paulo\_Schmitt](https://discourse.odriverobotics.com/u/Paulo_Schmitt)\
**Post date:** [December 22, 2020, 12:28pm UTC](https://discourse.odriverobotics.com/t/odrive-3-6-56v-no-beep-or-motor-movement-at-calibration-with-as5048a-encoder/5372/8 "2020-12-22T12:28:08Z")

</div>

I bought the same AS5048A from aliexpress and the had same issue. Can you share a picture or an schematic of your solution? I’m not sure where to add the capacitor.

---

<div class="post-metadata">

**Author:** ![rodrive](https://discourse.odriverobotics.com/letter_avatar_proxy/v4/letter/r/a183cd/32.png) [@rodrive](https://discourse.odriverobotics.com/u/rodrive)\
**Post date:** [December 23, 2020, 2:20pm UTC](https://discourse.odriverobotics.com/t/odrive-3-6-56v-no-beep-or-motor-movement-at-calibration-with-as5048a-encoder/5372/9 "2020-12-23T14:20:40Z")

</div>

[https://media.digikey.com/pdf/Data%20Sheets/Austriamicrosystems%20PDFs/AS5048A,B.pdf](https://media.digikey.com/pdf/Data%20Sheets/Austriamicrosystems%20PDFs/AS5048A,B.pdf)

"The magnet’s center axis should be aligned within a displacement radius Rd of 0.25 mm (larger magnets allow more displacement e.g. 0.5 mm) from the defined center of the IC. The magnet may be placed below or above the device. The distance should be chosen such that the magnetic field on the die surface is within the specified limits The typical distance “z” between the magnet and the package surface is 0.5mm to 2.5mm, provided the use of the recommended magnet material and dimensions (6mm x 3mm). Larger distances are possible, as long as the required magnetic field strength stays within the defined limits. "

These strict requirements made me abandon this encoder and use AMT encoders.

My setup was as follows:

 ![image](https://discourse.odriverobotics.com/uploads/default/original/2X/c/c2e59c4b66b58d698fd09b0466b181819a098012.jpeg)

![image](https://discourse.odriverobotics.com/uploads/default/original/2X/f/f05c9759ce9abd31fb808fd3da6e6a93089bcd12.png)
