Giter Site home page Giter Site logo

little-project's Introduction

认识实习项目

我知道我把所有的 radar 都拼成了 ladar ,不用再提醒我了

题目:基于 STM32 的简易激光雷达

功能

  • 控制舵机进行周期性 180° 旋转
  • 将激光测距器搭载在舵机上,对左右 90° 的物体进行测距
  • 测距结果结合测距时发送给舵机的 PWM 波占空比(换算成角度)保存在单片机内部
  • 将结果发送给一台 1.3 寸 OLED 显示器,以图像的形式展示扫描结果
  • 连接红外模块,可用红外遥控器进行遥控

所用电子模块型号

大致成本

19.5 + 5.8 + 68.0 + 21.5 = 114.8 元

引脚分配

  • USART1-PA9(TX)、PA10(RX):接测距模块RXTX
  • USART2-PA2(TX)、PA3(RX):接红外模块RXTX,注意VCC需连5V
  • IIC1-PB6(SCL)、PB7(SDA):接OLED的SCLSDA
  • TIM10CH1-PB8(PWM):接舵机的信号线

遥控器设置

  • 串口设置:波特率9600,数据位8,校验位None,停止位One
  • 重置:按“0”,00 FF 19
  • 停止:按“*”,00 FF 16
  • 继续:按“#”,00 FF 0D

参考资料

舵机占空比
传感器引脚
舵机引脚 OLED

little-project's People

Contributors

zsychina avatar

Stargazers

Redlight 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.