This circuit will introduce the HCSR04 Ultrasonic Sensor to our electronics toolkit. Unlike the Servo, the HCSR04 doesn't require a library to be included manually, nor does it use objects or methods. We will use a function to calculate the distance in this sketch such that our loop function isn't too long or complicated (it's also good practice to modulate any simple, repetitive tasks).
The full guide: [ Ссылка ]
Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:
Sparkfun Inventors Kit /catalog/product/view/sku/KIT-14265
Arduino [ Ссылка ]
Sparkfun [ Ссылка ]
Adafruit [ Ссылка ]
Pololu [ Ссылка ]
DFRobot [ Ссылка ]
![](https://i.ytimg.com/vi/P3vtXBDZJ1k/maxresdefault.jpg)