I have a LPR503AL gyro. It is supposed to output an analog signal, but if I use this test sketch I get no reading, that is the values doesn’t change at all when I move the gyro around.
Gyro Arduino
Gnd Gnd
3,3V 3,3V
X output A0
Y output A5
I have tested the analog inputs on the Arduino with a potmeter and they are working like they should (values between 0 and 670)
I haven’t connected the Vref on the gyro which I think is correct according to my google research. I can measure 1,25 volt on the pin which seems right according to the datasheet.
So my question: is the gyro dead or do I do something wrong?
Thanks for your answer MarkT
Unfortunately I get the same result on the 1X and 4X outputs - meaning the output is constant, actually it is 671 which indicate that the output voltage is constant 3,3V
Sounds like it's time for some basic tests.
Disconnect the unit from the arduino and apply a nominal 3 volt supply between Vdd and ground.
If you now measure the voltage between either of the x4 outputs and ground (using a digital multimeter) you should get a varying output when you twist/rotate the sensor module.
If the output remains solid at the Vdd level then it looks like you may indeed have a defective unit.
Basic test result:
The output from both x and y and 4xX and 4xY outputs are rock steady when I measure the output, it is 3,26V no matter how i rotate and twist.
So i guess its time to go shopping for a new board, I just wonder what went wrong I'm sure i didn't feed it 5V at any time.
Anyway thankyou for the help, and happy newyear