Was helping kids today. they have a lego NXT (not EV) US sensor in one of the ports of the legacy module. There are two that support the US, and they have one of them.
Unlike their lego experience the US distance readings are unreliably messy. With a reasonable number of erroneous 0 and 255 distance returns. Once they "if-statement" those out and ignore them, they detect a reasonable number of fairly wrong values. Like 12 cm when the robot is really 30 cm away.
They've just started doing some basic histograms of the return data, but in watching this I have to say
1. These worked WAY better and more reliably when doing FLL with the lego kits
2. The returns are so all over the place that even simple things like averaging or other tricks to make the data less bad are only somewhat helpful. It really looks like outright dropped bits and communications failures happening and a reasonably high rate.
yes, they have tried more than one US sensor and more than one wire.
While it's been a good learning exercise for coding for a "noisy" sensor, I have to wonder if this is "normal" and I should add it to the really long list of difficult-to-the-point-of-wrong things about our new hardware this year.
Any advice or observations?
- Z
Unlike their lego experience the US distance readings are unreliably messy. With a reasonable number of erroneous 0 and 255 distance returns. Once they "if-statement" those out and ignore them, they detect a reasonable number of fairly wrong values. Like 12 cm when the robot is really 30 cm away.
They've just started doing some basic histograms of the return data, but in watching this I have to say
1. These worked WAY better and more reliably when doing FLL with the lego kits
2. The returns are so all over the place that even simple things like averaging or other tricks to make the data less bad are only somewhat helpful. It really looks like outright dropped bits and communications failures happening and a reasonably high rate.
yes, they have tried more than one US sensor and more than one wire.
While it's been a good learning exercise for coding for a "noisy" sensor, I have to wonder if this is "normal" and I should add it to the really long list of difficult-to-the-point-of-wrong things about our new hardware this year.
Any advice or observations?
- Z
Comment