Defective: Optical Odometry Tracking Sensor

We bought 4 of these and one of them seems to be defective. I tested it from 1cm height on wood and foam(ftc) tile. I also tested this defective OTOS with the same code as another OTOS which works great. I tried switching the ports as well but it didn’t seem to change anything. I think it was working before but then has gotten progressively worse over the course of a week and maybe 2 hours of total on time so it never works correctly now.
It seems to have 2-3 states and all off them are with it not working properly. The first state is where the position remains constant at low values around (0.3,0), the x value 0.3 might be negate or flip to 0 sometimes. The angle is updating and correct for this state. The second state is where the position is updating but seems to be off by 1/2 to 1/3 of the correct distance, the acceleration is also fluctuating rapidly between around -1000 to 1000 and the angle doesn’t change at all, stuck at 0.001. The third state is where the x position value starts at 125 and everything else seems to be similar to the second state.

Hi there, apologies for the delay!

Hmm, that sounds like very odd behavior! Just want to confirm, if you swap that sensor with one of the known-good ones (without modification to the code, wiring, mounting, etc.), then it works fine? If so, definitely seems like a bad sensor! In that case, please fill out our RMA form and link to this thread. And if you send it back, then I can play around with it myself to hopefully debug the root problem.

Hope this helps!

Yeah, we swapped out the OTOS with a good one by just plugging the quick connecter into it and it works. It was the same code and battery charge so it is a problem with the OTOS. We submitted an RMA and will ship it soon.

Understood, thank you!