HI,
great library!
This may be more of a note than a bug ...
When using HC-SR04 with Arduino UNO r4 minima
and
the example code UltrasonicSimple.ino
The sensor returns zero when echo is connected to Pin 13.
Moving ECHO to other pins solves the issue.
I think this is related to this aspect of the r4 minima,
arduino/ArduinoCore-renesas#57
Which indicates that on the r4 minima ( and maybe wifi? too, not tested) that pin 13 is set to output during reset.
I believe the way you instantiate the object the pins settings happen and then setup overrides ??? -- but I am guessing and could be way off base.
Once ECHO is moved away from pin 13 sensor appears to work as it does with an UNO R3.
HI,
great library!
This may be more of a note than a bug ...
When using HC-SR04 with Arduino UNO r4 minima
and
the example code UltrasonicSimple.ino
The sensor returns zero when echo is connected to Pin 13.
Moving ECHO to other pins solves the issue.
I think this is related to this aspect of the r4 minima,
arduino/ArduinoCore-renesas#57
Which indicates that on the r4 minima ( and maybe wifi? too, not tested) that pin 13 is set to output during reset.
I believe the way you instantiate the object the pins settings happen and then setup overrides ??? -- but I am guessing and could be way off base.
Once ECHO is moved away from pin 13 sensor appears to work as it does with an UNO R3.