Specific implementation functions
The system consists of STC89C52 single-chip microcomputer + single digital tube + LED indicator light + ULN2003 driver chip + DC-5V stepper motor.
Specific functions:
(1) Realize key control of stepper motor forward, reverse, acceleration, deceleration and stop;
(2) Two LEDs display forward and reverse rotation, and a 7-segment LED digital tube displays the current speed gear (9 gears in total);
(3) 4 red LEDs, indicating the motor speed.
design background
A stepper motor is an actuator that converts electrical pulse signals into angular displacement. The angular displacement of its rotor is proportional to the frequency of the input pulse, and a wide range of speed regulation can be achieved by changing the pulse frequency. At the same time, stepper motors are easy to interface with computers and other digital components, so they are used in various digital control systems.
The stepper motor selected in this design is a four-phase stepper motor, and the method used is to use a single-chip microcomputer to control the drive of the stepper motor. A stepper motor is an actuator that converts electrical pulses into angular displacement. When the stepper driver receives a pulse signal, it drives the stepper motor to rotate a fixed angle (called the "step angle") in the set direction, and its rotation runs step by step at a fixed angle. The angular displacement can be controlled by controlling the number of pulses to achieve the purpose of accurate positioning; at the same time, the speed and acceleration of the motor rotation can be controlled by controlling the pulse frequency to achieve the purpose of speed regulation. This graduation project adjusts the speed of the stepper motor by changing the pulse frequency, and displays its speed level through a digital tube. In addition, the forward and reverse rotation is realized by a single-chip microcomputer. The stepper motor can be used as a special motor for control. It is widely used in various open-loop controls by taking advantage of its characteristic of no accumulated error (accuracy of 100%).
The system designed in this paper has the advantages of easy operation, flexible control, clear display, low production cost and high cost performance.
hardware design
The hardware circuit consists of the following modules:
(1) Single-chip microcomputer minimum system. It is used to drive and control other modules to achieve the overall function. It uses the STC89C52 single-chip microcomputer as the core chip, supplemented by a reset circuit and a crystal oscillator circuit.
(2) Button module: Use buttons to control the forward, reverse, acceleration, deceleration, and stop of the stepper motor.
(3) Display module: A 7-segment LED digital tube displays the current speed gear (9 gears in total).
(4) Stepper motor module.
(5) Speed indication module and forward and reverse indication module.
software design
According to the design requirements of this article, on the basis of hardware circuit design, the specific functions that need to be implemented through software programming are:
(1) Drive each module to work, realize clear display of digital tube, and realize motor drive;
(2) Realize key control of stepper motor forward, reverse, acceleration, deceleration and stop;
(3) Two LEDs display forward and reverse rotation, and a 7-segment LED digital tube displays the current speed gear (9 gears in total);
(4) 4 red LEDs, indicating the motor speed.
Schematic
The schematic diagram of this system was designed using Altium Designer19, as shown in the figure.
program
This design uses KEIL5 software to implement program design, as shown in the figure.
Simulation Implementation
This design uses protues8.7 software to implement simulation design, as shown in the figure.
Previous article:30-Taxi meter based on 51 single chip microcomputer (Hall speed measurement)
Next article:28-Smart curtain design based on 51 single chip microcomputer
Recommended posts
- With an estimated total investment of 600 million yuan, Baidu's 5G Smart City intelligent driving project has landed in Chengdu. What do you think of this?
- AccordingtothenewsonApril8,atthe10thTIAAConferenceandthe2021AutonomousDrivingCommercialApplicationConference,Baidu's5GSmartCityIntelligentDrivingProjectwithatotalinvestmentof600millionyuanwasannouncedtobelaunch
- okhxyyo RF/Wirelessly
- Bear Pai Hongmeng Development Board Review - [Hardware Composition]
- Afewweeksago,IsawatrialactivityfortheHarmonyOSdevelopmentboard-BearPieontheforum.IhappenedtobequiteinterestedintheHarmonyOS,soIappliedforit.Tomysurprise,Iwasapproved. SoIhappilycommunicatedwiththeadm
- 未见 Programming Basics
- I heard there are gifts for watching videos?
- Wow,it’strue! Youjustneedtofollowmyprocessonce,andtherewillreallybegifts! Eventtime:FromnowuntilSeptember10,2020 Activityprocess: Clickheretoentertheeventpage,and
- EEWORLD社区 Integrated technical exchanges
- What are the methods to extend HDMI cable?
- HDMIcablesareusedtotransmithigh-definitionvideoandaudiosignals,butthelengthofHDMIcablesmaylimittheirusescenarios.IfyouneedtoextendanHDMIcable,thereareseveralcommonmethods: UsinganHDMIextensioncable: This
- SAMZHE山泽 Integrated technical exchanges
- 【National Technology N32G430】04 Configure the clock and run the lights
- 04Configuretheclockandrunthelights N32G430clocktree: Configuretheclockaccordingtotheclocktreeinformation: 1.Useexternalfastclock(8M),targetsystemclock128M; 2.ConfigurethePLLclocksourcetoHSE,multiplyby
- 秦天qintian0303 Domestic Chip Exchange
- Newbie Report Newbie Report
- NewbiereportNewbiereportPleasetakecareofme WelcomeWelcome,whatdirectionareyouin? Welcome,welcome,warmlywelcome.Wehopethatwecanlearnfromeachother,exchangeexperiencesandmakeprogresstogether. Welcome,Ihopethefo
- ss三生三世 Wireless Connectivity
- Popular Resources
- Popular amplifiers
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- Europe's three largest chip giants re-examine their supply chains
- Breaking through the intelligent competition, Changan Automobile opens the "God's perspective"
- The world's first fully digital chassis, looking forward to the debut of the U7 PHEV and EV versions
- Design of automotive LIN communication simulator based on Renesas MCU
- When will solid-state batteries become popular?
- Adding solid-state batteries, CATL wants to continue to be the "King of Ning"
- The agency predicts that my country's public electric vehicle charging piles will reach 3.6 million this year, accounting for nearly 70% of the world
- U.S. senators urge NHTSA to issue new vehicle safety rules
- Giants step up investment, accelerating the application of solid-state batteries
- Guangzhou Auto Show: End-to-end competition accelerates, autonomous driving fully impacts luxury...
- Design of a new switching power supply with multiple outputs and high voltage isolation for high power devices
- NeoPixel Array Simulator
- Infineon Technologies remains the second largest automotive electronics company with double-digit sales growth
- Forward Transformer Analysis
- Answer the questions and get a gift | Rochester Electronics will help you solve the problems of the entire semiconductor cycle
- How can VB and Panasonic PLC be online at the same time?
- C language (vd6.0) sleep function usage and delay usage
- Battery applications in medical monitoring and the changing environment
- This article may be useful for beginners
- Propagation of microwave and millimeter waves in battlefield smoke and dust