Coder Social home page Coder Social logo

c51_wifi_gyroscope_ultrasonic's Introduction

基于51单片机带WIFI和陀螺仪的超声波测距

该项目暂停开发并不进行维护,感兴趣的可以参考功能还不完整

硬件

STC15W核心板(具体型号是IAP15W4K58S4)(IAP本身就是仿真器)

购买链接

WIFI模块(ESP-01或者ESP-01S使用其中一种就可以)

  • ESP-01

购买链接

接线图(其中两个电阻选择200欧左右的)

  • ESP-01S

购买链接

接线图(和ESP-01区别就是RTS和CH_PD可以悬空)

WIFI模块供电

  • 方案1:使用STC15W核心板供电(3.3V输出)

  • 方案2:单独使用稳压模块(AMS1117-3.3)

购买链接 注意:是3.3V的不要买错了

陀螺仪模块

购买链接注意:是购买MPU6050 三维角度加速度陀螺仪传感器 6DOF三轴 (1个)型号

超声波模块(HC-SR04或者HC-SR05)(HC-SR05只是多了一个开关量输出其他和04一样)

购买链接

硬件连接图

配置ESP-01/ESP-01S模块波特率(出厂默认115200)

  • 连接ESP模块到TTL-USB模块(注意:ESP-01S可以不需要把RTS和CH_PD接到3.3V上)

购买链接

TTL模块->ESP模块 
  3V3 -> VCC
  GND -> GND
  RXD -> TXD
  TXD -> RXD
  3V3 -> CH_PD
  3V3 -> RST

  • 使用串口工具tools\串口调试工具\sscom5.13.1.exe发送指令(要输入回车表示命令结束)
AT+UART=9600,8,1,0,0

1.选择USB-TTL对应串口 2.选择波特率115200 3.打开串口 4.勾上回车加换行 5.输入AT+UART=9600,8,1,0,0 6.点击发送

  • 设置成功还回OK如下
[20:43:25.256]发→◇AT+UART=9600,8,1,0,0
□
[20:43:25.262]收←◆AT+UART=9600,8,1,0,0

OK

c51_wifi_gyroscope_ultrasonic's People

Contributors

sszllzss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar Maker1999 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.