I have a hooked up a TE501 Ultrasonic Sensor to an Arduino and then connected to a PC via the USB port. Using the Arduino IDE Serial monitor, the sensor sends consistent and reasonably accurate readings (+/- 1%).
However when I then unplug the Arduino from the PC and plug it into the USB port on my RasPi 3, and run the same Arduino code, the results in the Arduino IDE serial monitor are consistently around 20% less than the actual distance.
Please can anyone shed any light on why the same code, same Arduino, same setup would generate hugely different results when plugged into a Raspberry Pi than when it's plugged into a PC ?
Thanks for any help.