Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

DuePiccioni/Ultrasuoni

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

超声波测距控制器

存档说明: 这是一个已完成的存档项目,用于记录和参考。该项目已于2024年7月27日交付给客户并结束开发。


这是一个基于 ESP32-C3 的客户定制项目,主要功能是通过超声波传感器进行测距并控制继电器。

主要功能

  • 超声波测距,最大测量距离 400cm
  • LCD 显示界面(20x4)
  • 3 路继电器控制
  • WiFi 配置界面
  • 按键操作界面
  • EEPROM 保存设置

硬件要求

  • 主控: ESP32-C3 (Adafruit QT Py ESP32-C3)
  • 显示: 20x4 LCD 显示屏 (I2C,地址 0x27)
  • 传感器: HC-SR04 超声波测距模块
  • 按键: 模拟按键(5个)
  • 继电器: 3路继电器模块

接线说明

  • I2C:
    • SDA: GPIO9
    • SCL: GPIO8
  • 超声波:
    • TRIG: GPIO6
    • ECHO: GPIO7
  • 按键: GPIO1 (模拟输入)

使用说明

  1. 上电后设备会自动创建 WiFi 热点

    • SSID: ESP32-C3-AP
    • 密码: 12345678
    • IP: 192.168.1.1
  2. 通过网页可以配置:

    • 继电器启用状态
    • 触发阈值
    • 延时参数
  3. LCD 界面操作:

    • OK键: 确认/进入
    • UP/DOWN: 选择
    • ESC: 返回
    • Reset: 重置

开发环境

  • PlatformIO
  • Arduino 框架
  • ESP32 Arduino core

依赖库

  • ESP Async WebServer
  • LiquidCrystal_I2C

作者

黄威龙 @ Due Piccioni

许可

MIT License

Copyright (c) 2024 Due Piccioni

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors