CN103248297A - Motor driving device based on AT89S52 singlechip - Google Patents

Motor driving device based on AT89S52 singlechip Download PDF

Info

Publication number
CN103248297A
CN103248297A CN2013101351087A CN201310135108A CN103248297A CN 103248297 A CN103248297 A CN 103248297A CN 2013101351087 A CN2013101351087 A CN 2013101351087A CN 201310135108 A CN201310135108 A CN 201310135108A CN 103248297 A CN103248297 A CN 103248297A
Authority
CN
China
Prior art keywords
module
motor
voltage
chip microcomputer
electrode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2013101351087A
Other languages
Chinese (zh)
Inventor
肖凯麟
邹水平
王振民
郑彩红
黄天成
陈光高
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
South China University of Technology SCUT
Original Assignee
South China University of Technology SCUT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by South China University of Technology SCUT filed Critical South China University of Technology SCUT
Priority to CN2013101351087A priority Critical patent/CN103248297A/en
Publication of CN103248297A publication Critical patent/CN103248297A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Control Of Electric Motors In General (AREA)
  • Control Of Direct Current Motors (AREA)

Abstract

The invention discloses a motor driving device based on an AT89S52 singlechip, which includes a motor control module, a motor, a power supply module, a voltage comparison module, electrodes and a stepless speed regulation module, wherein the singlechip, the motor control module and the motor are sequentially connected; the distance between the electrodes is controlled through the motor; the electrodes are connected with the voltage comparison module through a bleeder circuit; the voltage comparison module is used for comparing the preset target voltage with the voltage value obtained through dividing the voltage at the two ends of the current electrodes, and then inputting the result into the singlechip; the singlechip is used for outputting an instruction as per the input result to the motor control module so as to control the steering of the motor; the stepless speed regulation module is used for regulating the input voltage of the motor control module so as to regulate the rotating speed of the motor; and in the device, a feedback cycle is further built, so that the voltage can be kept within a certain range. The motor driving device has the advantages of simple structure, high switching speed and short delay time.

Description

Motor driver based on the AT89S52 single-chip microcomputer
Technical field
The present invention relates to the motor driver research field, particularly a kind of motor driver based on the AT89S52 single-chip microcomputer, this device can realize that the stepless stepless speed control of motor and reaction are very sensitive.
Background technology
At present motor driver on the market has design complexity, low-response, shortcoming that energy consumption is high usually, simultaneously in the motor rotation process, can not make a response rapidly and corresponding actions according to the change of concrete operating voltage amplitude, can not realize stepless speed regulation.
In addition, some motor driver only is according to the signal value of host computer motor to be controlled, and does not set up a feedback mechanism, so the voltage fluctuation amplitude is bigger in the machine operation process, has influenced the useful life of motor, and operation is stable inadequately.
Therefore, provide a kind of stable operating voltage and can realize that the motor driver of the stepless speed regulation of motor has great application value.
Summary of the invention
Main purpose of the present invention is to overcome the shortcoming of prior art with not enough, a kind of motor driver based on the AT89S52 single-chip microcomputer is provided, this device can be adjusted motor rotation according to operating voltage, operating voltage is maintained in the certain scope of reference voltage, simultaneously, can also realize stepless stepless speed control to motor.
Purpose of the present invention realizes by following technical scheme: based on the motor driver of AT89S52 single-chip microcomputer, comprise motor control module, motor and power module, power module provides power supply for each module in the device, single-chip microcomputer, motor control module, motor links to each other successively, device also comprises voltage comparison module and electrode, distance between electrodes is controlled by motor, electrode links to each other with voltage comparison module by bleeder circuit, voltage comparison module compares for the magnitude of voltage that the voltage with predefined target voltage and current electrode two ends obtains after dividing potential drop, then the result is input to single-chip microcomputer, gives turning to of motor control module and then control motor by single-chip microcomputer according to the input results output order.Wherein target voltage refers on circuit by the predefined voltage of potentiometer, can require to set different target voltage values according to different user, because the operation principle of voltage comparison module is: deciding the output voltage of comparator according to the ratio of target voltage and the current voltage that collects is high level or low level, therefore judge simply, be swift in response.
Preferably, described device comprises that also the result that this module will be gathered sends on the charactron display module and shows for the collection of simulant signal module of gathering current motor voltage signal, and simultaneously, the result that this module will be gathered feeds back to single-chip microcomputer.Show it is in order to detect electric moter voltage at any time, to prevent overtension, burning out motor with charactron.Setting up feedback simultaneously can make electric moter voltage maintain in the certain scope of reference voltage.
Preferably, described device comprises that also for the stepless speed regulation module that the input voltage of motor control module is regulated, the stepless speed regulation module comprises a potentiometer, carries out speed governing by regulating this potentiometer.Adopt this structure can make the speed governing of motor more level and smooth, realize stepless speed regulation.
Further, described power module is a constant pressure source, be used for the alternating voltage of 220V is changed into the two-way direct voltage output of 12V and 5V, this road that is output as 5V is used for keeping the running of each module electronic devices and components, this road that is output as 12V is input to the stepless speed regulation module, and the stepless speed regulation module outputs to motor control module after it is gone to the voltage of 0~9V.
Preferably, described electrode is graphite electrode, the direct current of the external 220V in electrode two ends, and electrode one end ground connection, another termination bleeder circuit, bleeder circuit are used for the graphite electrode both end voltage is down in the 5V.
Preferably, described device comprises that also this module links to each other with single-chip microcomputer for control motor positive and inverse, anxious manual control module of stopping.This manual control module is set can increase the flexibility of device.
The present invention compared with prior art has following advantage and beneficial effect:
1, the present invention adopts voltage comparator to carry out Electric Machine Control, makes simple in structurely, and it is fast to take into account switch speed simultaneously, the advantage that time of delay is little.Be particularly suitable for requiring the motor continuous operation, and require the sensitive occasion of feedback ratio, such as turning, and the operating modes such as hole that need to realize automatically the processing certain depth.Target voltage can arrange different feedback voltages in different occasions according to different operating modes, realizes the quick feedback to operating mode.
2, the present invention has adopted a stepless speed regulation module, can realize voltage from output continuously between 0~9V, thereby can realize the stepless speed regulation that motor rotates.
3, the present invention carries out real-time collection by the collection of simulant signal module to the motor both end voltage, and the result is sent to single-chip microcomputer, forms a feedback circulation, makes operating voltage maintain in certain scope.
Description of drawings
Fig. 1 is the electrical schematic diagram of apparatus of the present invention;
Fig. 2 is the system module figure of apparatus of the present invention;
Fig. 3 is stepless speed regulation module circuit diagram among the present invention;
Fig. 4 is automatic control flow chart figure among the present invention;
Fig. 5 is manual control flow chart among the present invention;
Fig. 6 is motor simulation signals collecting and flow path switch figure among the present invention.
Embodiment
The present invention is described in further detail below in conjunction with embodiment and accompanying drawing, but embodiments of the present invention are not limited thereto.
Embodiment 1
As shown in Figure 2, present embodiment comprises with lower module based on the motor driver of AT89S52 single-chip microcomputer: single-chip microcomputer, power module, motor control module, motor, voltage comparison module, the stepless speed regulation module, the collection of simulant signal module, the charactron display module, manual control module and electrode, wherein power module provides power supply for each module in the device, single-chip microcomputer, motor control module, motor links to each other successively, distance between electrodes is controlled by motor, electrode links to each other with voltage comparison module by bleeder circuit, electrode is graphite electrode in the present embodiment, what the electrode two ends were imported is the direct current of 220V, be down in the 5V through voltage behind the bleeder circuit, voltage comparison module is used for current running voltage after partial and predefined target voltage are compared, result after will comparing then sends to single-chip microcomputer, and single-chip microcomputer is controlled turning to of motor according to this signal by motor control module.What voltage comparison module adopted in the present embodiment is the LM311 voltage comparator.Motor control module drives chip as master chip by L298N.
The collection of simulant signal module is used for gathering current motor voltage signal, the result who gathers is sent on the charactron display module show that simultaneously, the result that this module will be gathered feeds back to single-chip microcomputer.The collection of simulant signal module is that main body is carried out signals collecting work by the ADC0804 chip in the present embodiment.The charactron display module is total to the anode charactron by four and forms.
Power module described in the present embodiment is a constant pressure source, be used for the alternating voltage of 220V is changed into the two-way direct voltage output of 12V and 5V, this road that is output as 5V is used for keeping the running of each module electronic devices and components, this road that is output as 12V is input to the stepless speed regulation module, and the stepless speed regulation module outputs to motor control module after it is gone to the voltage of 0~9V.
Manual control module is used for control motor positive and inverse, anxious stop etc., and this module links to each other with single-chip microcomputer.
The concrete corresponding electrical schematic diagram of present embodiment as shown in Figure 1.Wherein the P0 mouth is that the section that connects charactron is selected signal, and the position choosing with charactron links together and the P2 mouth is through a part after the expansion, and another part and button matrix link together.The function of button is as follows:
Table 1 button and its function contrast
Expansion P2 button that mouth connects Push button function Expansion P2 mouth button Push button function
SW1(P2.0) Just changeing control SW5(P2.4) The LM311 comparator is opened control
SW2(P2.1) Counter-rotating control SW6(P2.5) The LM311 comparator closes control
SW3(P2.2) Control left by motor SW7(P2.6) Suddenly stop control
SW4(P2.3) Motor closes control ? ?
The P1 mouth is as the address bus of ADC0804, and low 3 pins of P3 mouth are as the control bus of ADC0804.And P3.0~P3.2 of P3 is as the control bus of L298N, and P3.3 is as the output of LM311 receiving terminal as a result, and P3.4 is as its control mouthful.
And the stepless speed regulation module is as the input of the Vs voltage of L298N, its concrete circuit structure as shown in Figure 3, comprise controllable silicon, rectification circuit, filter circuit, voltage stabilizing circuit, wherein by changing the resistance of potentiometer R8, can realize that the input voltage with 12V converts the voltage of 0~9V to, then it be outputed to the voltage input end of L298N.Because this voltage provides voltage to motor, so, can realize the adjusting to motor speed by changing the operating voltage that this magnitude of voltage changes motor.
Be example to be applied to graphite electrode, concrete execution mode is as follows:
At first, the voltage that graphite electrode two terminations are certain, the direct current of 220V for example, an end ground connection wherein, another termination bleeder circuit, bleeder circuit drops to voltage in the 5V, then voltage after partial is input to the in-phase end of LM311 voltage comparator, and the end of oppisite phase of voltage comparator connects a controlled bleeder circuit, this controlled bleeder circuit is used for being divided into the voltage of 0 required~5V of default target voltage values by the 5V voltage of power module output, size is specifically regulated by potentiometer, then below flow process such as Fig. 4, if SW3 and SW5 are pressed this moment, be that P2.2 and P2.4 are low level, that voltage comparator will compare the voltage swing of in-phase end and end of oppisite phase, and the result is input to the P3.3 pin of single-chip microcomputer by the Output pin, and single-chip microcomputer detects P3.3 pin level to be changed and determine whether changing turning to of motor.If be high level, illustrate that namely in-phase end voltage is higher than end of oppisite phase, motor still just changes, and two graphite electrodes are close.Otherwise, the motor counter-rotating.
If do not want to realize automatic control to motor positive and inverse by LM311, the button matrix on can use device is realized manual control.With reference to Fig. 5, again in conjunction with top push button function table, pressing on the basis of SW3, if only press SW1, namely P2.0 is low level, and that single-chip microcomputer will be controlled motor by L298N just to be changeed, and if only press SW2, namely P2.1 is low level, and motor will reverse.
The process that analog signal is gathered and changed as shown in Figure 6, the voltage of the direct current machine of collection of simulant signal modules A DC0804 is gathered, wait for through time-delay after a while, the AD EOC, analog signal conversion becomes digital signal, then signal is presented on the charactron, simultaneously, at set intervals, ADC0804 samples to the voltage of direct current machine automatically again.
Above-described embodiment is preferred implementation of the present invention; but embodiments of the present invention are not restricted to the described embodiments; other any do not deviate from change, the modification done under spiritual essence of the present invention and the principle, substitutes, combination, simplify; all should be the substitute mode of equivalence, be included within protection scope of the present invention.

Claims (6)

1. based on the motor driver of AT89S52 single-chip microcomputer, comprise motor control module, motor and power module, power module provides power supply for each module in the device, single-chip microcomputer, motor control module, motor links to each other successively, it is characterized in that, device also comprises voltage comparison module and electrode, distance between electrodes is controlled by motor, electrode links to each other with voltage comparison module by bleeder circuit, voltage comparison module compares for the magnitude of voltage that the voltage with predefined target voltage and current electrode two ends obtains after dividing potential drop, then the result is input to single-chip microcomputer, gives turning to of motor control module and then control motor by single-chip microcomputer according to the input results output order.
2. the motor driver based on the AT89S52 single-chip microcomputer according to claim 1, it is characterized in that, described device also comprises for the collection of simulant signal module of gathering current motor voltage signal, the result that this module will be gathered sends on the charactron display module and shows, simultaneously, this module result that will gather feeds back to single-chip microcomputer.
3. the motor driver based on the AT89S52 single-chip microcomputer according to claim 1, it is characterized in that, described device also comprises for the stepless speed regulation module that the input voltage of motor control module is regulated, the stepless speed regulation module comprises a potentiometer, carries out speed governing by regulating this potentiometer.
4. the motor driver based on the AT89S52 single-chip microcomputer according to claim 3, it is characterized in that, described power module is a constant pressure source, be used for the alternating voltage of 220V is changed into the two-way direct voltage output of 12V and 5V, this road that is output as 5V is used for keeping the running of each module electronic devices and components, this road that is output as 12V is input to the stepless speed regulation module, and the stepless speed regulation module outputs to motor control module after it is gone to the voltage of 0~9V.
5. the motor driver based on the AT89S52 single-chip microcomputer according to claim 1, it is characterized in that, described electrode is graphite electrode, the direct current of the external 220V in electrode two ends, electrode one end ground connection, another termination bleeder circuit, bleeder circuit are used for the graphite electrode both end voltage is down in the 5V.
6. the motor driver based on the AT89S52 single-chip microcomputer according to claim 1 is characterized in that, described device comprises that also this module links to each other with single-chip microcomputer for control motor positive and inverse, anxious manual control module of stopping.
CN2013101351087A 2013-04-17 2013-04-17 Motor driving device based on AT89S52 singlechip Pending CN103248297A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013101351087A CN103248297A (en) 2013-04-17 2013-04-17 Motor driving device based on AT89S52 singlechip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013101351087A CN103248297A (en) 2013-04-17 2013-04-17 Motor driving device based on AT89S52 singlechip

Publications (1)

Publication Number Publication Date
CN103248297A true CN103248297A (en) 2013-08-14

Family

ID=48927560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013101351087A Pending CN103248297A (en) 2013-04-17 2013-04-17 Motor driving device based on AT89S52 singlechip

Country Status (1)

Country Link
CN (1) CN103248297A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103499943A (en) * 2013-10-21 2014-01-08 济南微控科技发展有限公司 Micro-controlled automatic control device
CN106681205A (en) * 2016-12-15 2017-05-17 电子科技大学 Measuring meter for controlling forward and reverse rotation of integrated motor
CN107632633A (en) * 2017-06-29 2018-01-26 深圳前海慧联科技发展有限公司 A kind of adaptive range rotating speed modulate circuit and Opsonizing method
CN109917284A (en) * 2019-01-31 2019-06-21 贵州凯峰科技有限责任公司 A kind of miniature cocurrent electromotor positive and negative rotation circuit digital detecting system and its test method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003243151A (en) * 2002-02-13 2003-08-29 Toshiba Ceramics Co Ltd Arc fusion device
CN202228402U (en) * 2011-09-21 2012-05-23 江苏物联网研究发展中心 Variable frequency controller of household electric fan
CN202407035U (en) * 2011-12-13 2012-09-05 卧龙电气集团股份有限公司 Air door opening degree control device for bulk curer controller
CN203219232U (en) * 2013-04-17 2013-09-25 华南理工大学 Motor driver based on AT89S52 one-chip microcomputer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003243151A (en) * 2002-02-13 2003-08-29 Toshiba Ceramics Co Ltd Arc fusion device
CN202228402U (en) * 2011-09-21 2012-05-23 江苏物联网研究发展中心 Variable frequency controller of household electric fan
CN202407035U (en) * 2011-12-13 2012-09-05 卧龙电气集团股份有限公司 Air door opening degree control device for bulk curer controller
CN203219232U (en) * 2013-04-17 2013-09-25 华南理工大学 Motor driver based on AT89S52 one-chip microcomputer

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
潘清明等: "防雨、防暴晒、夜晚能自动收缩的智能晾衣架设计", 《机电产品开发与创新》, vol. 20, no. 6, 30 November 2007 (2007-11-30) *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103499943A (en) * 2013-10-21 2014-01-08 济南微控科技发展有限公司 Micro-controlled automatic control device
CN106681205A (en) * 2016-12-15 2017-05-17 电子科技大学 Measuring meter for controlling forward and reverse rotation of integrated motor
CN107632633A (en) * 2017-06-29 2018-01-26 深圳前海慧联科技发展有限公司 A kind of adaptive range rotating speed modulate circuit and Opsonizing method
CN109917284A (en) * 2019-01-31 2019-06-21 贵州凯峰科技有限责任公司 A kind of miniature cocurrent electromotor positive and negative rotation circuit digital detecting system and its test method

Similar Documents

Publication Publication Date Title
CN103248297A (en) Motor driving device based on AT89S52 singlechip
CN206498347U (en) A kind of DC motor speed-regulating circuit
CN105163426A (en) Programming setting circuit used for setting output parameters of LED driving power supply
CN204493248U (en) Rotation speed of fan bucking-out system
CN203219232U (en) Motor driver based on AT89S52 one-chip microcomputer
CN109966001A (en) A kind of electric toothbrush
CN106160166B (en) A kind of solar charging circuit
CN101656506A (en) Motor driving system
CN208739048U (en) Drive integrated circult for AC fan motor continuous variable speed
CN106246985A (en) A kind of electric proportional-regulation valve controlled based on pwm signal
CN207882252U (en) A kind of water quality information harvester based on NB-IOT technologies
CN205647317U (en) Automatic motor control circuit of response sunshine intensity
CN203911828U (en) Drive board control circuit
CN215566805U (en) PMW driving device for fan speed regulation
CN204948410U (en) A kind of LED lamp based on supply lines transmission of control signals
CN203554347U (en) Angle wave based motor direct-current speed control device and circuit diagram thereof
CN204335073U (en) A kind of multi-functional OLED driving power
CN209494509U (en) A kind of foldable multifunctional ladder
CN201878008U (en) Driving circuit with adjustable power supply for ecological room
CN206759110U (en) A kind of portable power source
CN217459446U (en) Cell electrical stimulation device
CN204228926U (en) A kind of intelligent vehicle running motor and steering wheel pick-up unit
CN110706564A (en) DC motor mechanical characteristic and control strategy experimental device and working method
CN210933446U (en) Control system of intelligence body-building
CN208888674U (en) A kind of heating apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130814