- Thu Mar 25, 2021 2:33 pm
#224356
I am trying to use the HC-SR04 Ultrasonic sensor to measure distance through a very basic program of just sending the trig pulse and receiving the echo pulse. The circuit and the code work perfectly fine with the Redboard, however when I move it over to the Redboard Artemis the code does not work. Rather than printing the distance, it just prints 0 inches over and over. Does anyone have any ideas of why this sensor would not work with the Artemis or how to fix it? As I said, using the exact same code and wiring works on the Redboard.