This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRV5057-Q1: Device not working, constant 5V output

Part Number: DRV5057-Q1

Tool/software:

Hi, I am trying to get measurements from a DRV5057-A4EDBZRQ1 sensor. It should output a PWM signal but instead, I am getting a constant signal of 5V.

I made the circuit as described in the datasheet. One decoupling capacitor (0.01uF) near the sensor 5V and GND, and one pull-up resistor (1.2k) between output and 5V.

I also tried different things, like changing the resistor and capacitor values, removing them, etc. But nothing seems to work. Could someone give me a suggestion? Thank you!

Best regards,

Martin

  • Martin,

    Welcome to E2E and thanks for reaching out with your question.  It is unusual that you should see a constant 5V on the output.  Assuming that your pull-up voltage and Vcc are the same, you should see some PWM toggling with no input magnetic field present.

    Can you test the sensor without a connection to the GPIO pin of the controller?  In the absence of any loading we can eliminate the possibility that the GPIO pin is not in a Hi-Z input state.  While the sensor should be able to sink 20mA, if the GPIO pin has a stronger drive strength we might be overwhelming the output stage of the sensor. It would be good to check this using an oscilloscope if you haven't already.  You might be able to see the output trying to toggle the PWM and not successfully pulling the output low.

    Thanks,

    Scott

  • Hi Scott, thank you for your prompt reply. I was already able to solve this issue. The sensor is now working correctly, thank you!