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...
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...
上一篇把 ESP32 连上 WiFi 和蓝牙之后,接下来想接点传感器玩玩。先从最常见的温度传感器 DS18B20 开始,它的优点是数字输出、一根总线可以挂多个设备、精度也还不错。 1. 所需材料 ESP32 开发板一块 DS18B20 温度传感器模块(或裸传感器) 4.7kΩ 电阻一个(上拉用) 杜...
Today I bought a kit of gear for learning embedded development, ready to pick up something new. First, out of pure interest — I’ve grown tired of just...
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 ...
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...
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...
Today I bought a kit of gear for learning embedded development, ready to pick up something new. First, out of pure interest — I’ve grown tired of just...