MaxSonar EZ1 Reading Fluctuations

Hi all!

I'm using a MaxSonar EZ1 for range sensing triggering via the RX output pin (and usnig PW for data). I hooked it up and it does provide me with readings. However, I noticed a high degree of fluctuation in the data. The readings would be 51 for about 5-10 seconds, then 0 for 5 seconds, then 8 for another five seconds, and then maybe return to the 50's range for a couple more seconds and so on. This is rather strange because instead of being just noise that one can filter out, the "weird" data actually continue for quite some time. Would anyone have any clue of what is going on? Two possibilities I can think of are:

1. Insufficient battery power
- I'm currently using a typical 9V battery like what you use for garage gates. This gets drained out pretty fast when I have both the IR and the sonar sensors up and running.

2. Bad soldering/crimping work on the wires

A couple of things to note...

- when I only use the IR sensor, the readings are pretty consistent.
- the readings "lag" a lot. I'm setting the software to update every 40ms and query the sensors at that frequency. however, sometimes the readings wouldn't update for a couple seconds. Any clue why this is the case?

I really appreciate any help on this. This has gotten me scratching my head, so thanks a ton in advance!

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Activity