Home › Forums › Mayfly Data Logger › Wiring Ultrasonic sensor w/ temp compensator › Reply To: Wiring Ultrasonic sensor w/ temp compensator
I just wired up a temp compensation on MB7389, and after I dumped everything and re-cloned the modular library master branch (managed through GitHub Desktop) after the re-clone it worked for me.
This example sketch that Sara recommended above also seems to work ok (in pin 5).
The sonar test from the modular library master branch (in pin 11) returns a distance and indicates “good result found” and the response matches the distance I’m measuring.
The single sensor example from the modular library master branch (in pin 11) oscillates between returning a good distance and one that is 6 meters further than reality.
After commenting out several of the extra sensors, I was also able to run it on the multisensor print sketch.
I have attached a photo of my wiring. @srgdamiano, great work on the modular library!