THIS CODE WILL PROVIDE A DEMO USE OF THE HC-SR04 CONNECTED TO AN ARDUINO NANO (ATmega328p) THINGS YOU NEED FOR THIS DEMO: 1.) Install Arduino IDE 2.) Install CH340 Driver (Google how to install CH340 ...
There was an error while loading. Please reload this page. // Clear the trigPin digitalWrite(trigPin, LOW); delayMicroseconds(2); // Set the trigPin HIGH for 10 ...
Some of the best hacks are the ones which seem perfectly obvious in hindsight; a solution to the problem that’s so elegant, you wonder how it never occurred to you before. Of course we also love the ...
His hardware hack of the SR04 made this a software problem which he also managed to solve! [Clint] was working with the Arduino library, based on the Parallax PING, which uses a single pin for trigger ...