Connecting an HC-SR04 Ultrasonic Ranging Module and Buzzer Alarm to the ESP32
Recently I connected an HC-SR04 ultrasonic ranging module to an ESP32, plus an active buzzer, and ran a small “alarm when the distance drops below 10 ...
祝君万事如意心想事成!
Recently I connected an HC-SR04 ultrasonic ranging module to an ESP32, plus an active buzzer, and ran a small “alarm when the distance drops below 10 ...
最近用 ESP32 接了一个 HC-SR04 超声波测距模块,再加一个有源蜂鸣器,做了一个”距离小于 10 cm 就报警”的小实验。记录下接线、代码和踩过的坑。 实验目标 用 ESP32 读取 HC-SR04 超声波模块测得的距离。 当距离小于 10 cm 时,蜂鸣器每 3 秒响一次,每次响 200...
Recently I wanted to put the dust-collecting ESP32 at home to use, so I hooked up an HC-SR04 ultrasonic ranging module for some simple distance detect...
最近想把家里吃灰的 ESP32 利用起来,顺手接了一个 HC-SR04 超声波测距模块,用来做一些简单的距离检测。整个过程比想象中顺利,记录一下接线、代码和踩过的一个小坑。 HC-SR04 模块简介HC-SR04 是最常见的超声波测距模块之一,价格几块钱,测距范围约 2cm ~ 400cm,精度在 ...
After getting the ESP32 connected to WiFi and Bluetooth in the previous post, next I want to hook up some sensors to play with. Let’s start with the m...
Recently I connected an HC-SR04 ultrasonic ranging module to an ESP32, plus an active buzzer, and ran a small “alarm when the distance drops below 10 ...
Recently I connected an HC-SR04 ultrasonic ranging module to an ESP32, plus an active buzzer, and ran a small “alarm when the distance drops below 10 ...
Recently I wanted to put the dust-collecting ESP32 at home to use, so I hooked up an HC-SR04 ultrasonic ranging module for some simple distance detect...
Recently I wanted to put the dust-collecting ESP32 at home to use, so I hooked up an HC-SR04 ultrasonic ranging module for some simple distance detect...
After getting the ESP32 connected to WiFi and Bluetooth in the previous post, next I want to hook up some sensors to play with. Let’s start with the m...