联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp

您当前位置:首页 >> C/C++编程C/C++编程

日期:2019-12-08 07:38

Final Project: Machinery Controller with Safety Feature (MCSF)

Goals:

1. To drive the machine according to the user input

2. To stop the machine when accidents are about to happen

Description:

Develop a program for your STM32L476VG microcontroller to control the stepper motor

according to user and sensor input. It should input password using keypad and run the

stepper motor if the password is correct. Moreover, ultrasonic sensor should always

check the distance between the machine and human. Error message should be generated

and be sent to PC using USART if the distance is too close about stopping the motor. You

should implement the program using C programming language.

General Overview:

Functionality:

To achieve what the system must do, the system must have the following features.

Project Diagram:

The overview of the project will look like this.

Hardware Components:

Input and Sensors:

? Keypad

? Ultrasonic Sensor

Actuators:

? Stepper Motor

Communication Devices:

? PC (via USART)

Extra:

? ULN2003APG driver to control the stepper motor

Hardware Diagram:

Example Hardware setup:

Sample Algorithm of code:

You can follow exactly same algorithm as shown in below flowchart. If you have a

different approach, then you can implement in your way as well.

Submission:

? Each group should present their work in week 14 (December 6, Friday)

? Presentation should include:

? Program overview

? Each member’s contribution

? Demonstration (video)

All presentation files and source code should be submitted on learn.inha.ac.kr before the

presentation


版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp