Hi,
I connected a JSN SR-04T UltraSound distance sensor, an Arduino R3, and a Bluetooth card to measure the height of my bike.
Testing the system with batteries, walking around and measuring height to tarmac/bitumen, all looked normal. But today I put the system on the bike. I strapped the UltraSound sensor to the engine protection crash cage.
I only tested at standstill with the engine running. Suddenly the normal readings were interrupted by mostly single very high readings. Sometimes several seconds of normal readings but often bursts of "random" high readings.
Maybe I could filter away some but inaccurate, high readings will be very bad for the project.
How do I get rid of these high error values.
I forgot to turn off the engine today and check. I assume the disturbance then disappears.
I removed the sensor from the bike and pointed it outwards. But disturbance still continued.
Bike engines do not emit much ultrasound, says Google.
The red graph (cm) is the height measurements. The height of the probe (47 cm about) is subtracted and it ought to show 0 like when I keep the system off the bike.
The x-scaling is number of loops. When Bluetooth printouts are running like this, loop time is about 40 mS.
The constant barrage of small spikes in the readings/red curve is also new. Before the system was put on the bike, the readings were really stable.
The long cable included with the Ultrasound sensor is coaxial. But the protocol is simple I believe and it just goes high as long as no return echo has been received, or similar.









