In this part of the tutorial we will use the HC-sr04 ultrasonic sensor to detect distance. If the distance is below 20xm we send the character "d" from detected. If not we send "n" for nothing. In the App we detect the received character and depending of its value we change a label color and text to green adn "DETECTED" or red and "NOTHING". So let's atart.
by: ELECTRONOOBS on 2026-05-06
Leave a comment
Please login in order to comment.