CN109189108A - A kind of miniature solar automatic tracking system based on MCU - Google Patents

A kind of miniature solar automatic tracking system based on MCU Download PDF

Info

Publication number
CN109189108A
CN109189108A CN201811351903.9A CN201811351903A CN109189108A CN 109189108 A CN109189108 A CN 109189108A CN 201811351903 A CN201811351903 A CN 201811351903A CN 109189108 A CN109189108 A CN 109189108A
Authority
CN
China
Prior art keywords
motor
resistance
mcu
operational amplifier
driving device
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
CN201811351903.9A
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.)
Northwestern Polytechnical University
Original Assignee
Northwestern Polytechnical University
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 Northwestern Polytechnical University filed Critical Northwestern Polytechnical University
Priority to CN201811351903.9A priority Critical patent/CN109189108A/en
Publication of CN109189108A publication Critical patent/CN109189108A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D3/00Control of position or direction
    • G05D3/12Control of position or direction using feedback
    • G05D3/20Control of position or direction using feedback using a digital comparing device

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Photovoltaic Devices (AREA)

Abstract

本发明提供了一种基于MCU的微型太阳能自动追踪系统,太阳能方位检测模块将由太阳能方位检测模块的电路中检测到的空间的光强数据传入A/D转换器及MCU模块,由MCU模块控制电机驱动电路,从而使电机及机械传动装置进行转动,直至太阳能方位检测模块朝向空间最大光强位置,本发明使用MCU实现系统的高精度、低功耗,和系统扩展的灵活性,使用基于桥式电压比较结构的太阳能追踪检测模式,灵敏度高、成本低;使用光敏二极管与运放的光照强度检测模式,实现了整个系统工作与睡眠双模式的切换,降低系统功耗。

The invention provides a miniature solar energy automatic tracking system based on MCU. The solar azimuth detection module transmits the light intensity data of the space detected in the circuit of the solar azimuth detection module into the A/D converter and the MCU module, which is controlled by the MCU module. The motor drive circuit makes the motor and mechanical transmission rotate until the solar azimuth detection module faces the maximum light intensity position in space. The present invention uses MCU to achieve high precision, low power consumption, and flexibility of system expansion. The solar tracking detection mode of the voltage comparison structure has high sensitivity and low cost; the light intensity detection mode using photosensitive diodes and operational amplifiers realizes the switching of the entire system between work and sleep modes, reducing system power consumption.

Description

A kind of miniature solar automatic tracking system based on MCU
Technical field
The present invention relates to electronic circuit technology field, especially a kind of miniature solar automatic tracking system.
Background technique
Solar energy exists everywhere as one of new energy, and the annual solar radiant energy reached on earth surface is approximately equivalent to 130000000000000 tons of mark coals are the maximum green regenerative energy sources of total amount that can be developed in the world now.Comprehensive domestic and foreign policies, Energy restructuring and economic situation, solar energy industry have extensive development space.
The utilization of solar energy is usually to be used to generate electricity, therefore the utilization efficiency for improving solar energy is very important development side To.Due to by round the clock, season, the natural conditions such as geographic latitude and height above sea level are limited and the weather such as fine, negative, cloud, rain The influence of factor, the solar irradiance being subject on fixed solar panels be both it is intermittent and extremely unstable, this gives the sun The effective use of energy increases difficulty.For example: near the tropic of cancer, when summer weather is sunny, solar noon sun is radiated strong Degree is maximum, the solar energy averagely about 1000W received on perpendicular to 1 square metre of area of sun light direction;If day and night by whole year It is average, then there was only about 200W.And substantially there was only half in winter, at the cloudy day general only about 20%, solar illuminating intensity is lower. Existing solar energy collecting technology majority converts solar energy using fixed solar panel, and solar energy conversion efficiency is by day Gas, time can all vary widely, and solar energy conversion efficiency is not high, and unstable drawback is urgently to be resolved.For the fixed sun The Solar use mode of energy plate, it is necessary to guarantee to obtain required energy by increasing to collect with conversion equipment area, therefore Required space is big, and system cost is also higher.
Summary of the invention
For overcome the deficiencies in the prior art, the present invention provide a kind of miniature simple MCU of structure it is controllable it is automatic too Positive energy tracing system.The purpose of the present invention is systems to automatically track sunlight by adjusting the orientation of solar receiving panel The photoelectric conversion efficiency and space utilization rate of solar receiving panel are improved in most intense light source direction, avoid largely using fixed Solar panel, can reduce the cost of entire solar power system, while realizing the high-precision of system control using MCU Degree, the low-power consumption of system increase the flexibility of system extension.
The technical solution adopted by the present invention to solve the technical problems is:
A kind of miniature solar automatic tracking system based on MCU, including MCU module, A/D converter, solar energy orientation Detection module, intensity of illumination detection module, motor-drive circuit and motor and mechanical driving device, solar energy orientation detection mould Block is physically connected to motor and mechanical driving device, and motor and mechanical driving device are that the Twin-shaft machinery of Belt Driven by Double Motor is driven dress It sets, solar energy orientation detection module will be passed to by the light intensity data in the space detected in the circuit of solar energy orientation detection module A/D converter and MCU module control motor-drive circuit by MCU module, so that motor and mechanical driving device be made to be turned It is dynamic, until solar energy orientation detection module is towards space largest light intensity position, meanwhile, intensity of illumination detection module judges Real-Time Optical According to situation, by testing result judged after be input in the form of low and high level at the interruptive port of MCU, the judgement For real-time lighting intensity size and the intensity of illumination threshold value of setting are compared, when intensity of illumination be higher than given threshold, then export High level, when intensity of illumination be lower than given threshold, then low level is exported, to make entire solar-tracking system in operating mode When switching between sleep pattern, i.e. intensity of illumination are higher than given threshold, whole system is operating mode;Intensity of illumination is lower than When given threshold, whole system is suspend mode, to reduce whole system power consumption.
The motor uses two motors and corresponding mechanical device respectively in azimuth and height to mechanical driving device The motor-drive circuit of the mechanical device that angle both direction is rotated, driving motor and mechanical driving device is divided into two-way, and one Road is motor-drive circuit 1, is in addition all the way motor-drive circuit 2, wherein motor-drive circuit 1 drives mechanical driving device The variation of deflection, motor-drive circuit 2 are used to drive the variation of the height of mechanical driving device;Azimuth and elevation angle two The motor rotation axis in direction is connected with corresponding mechanical shaft respectively, while entire motor and mechanical driving device include a bottom Entire motor is fixed with mechanical driving device for seat, pedestal, in the fixed solar energy in the top of motor and mechanical driving device Orientation detection module, solar energy orientation detection module and MCU module acquire the Orientation differences of solar energy in real time, and locate to obtain current The azimuth information of solar energy, angle and height to mechanical driving device control.
The MCU module uses microcontroller chip STC89C52, realizes the automatic control to whole system.
The A/D converter uses the chip TLC1543 with serial communication interface.
The solar energy orientation detection module is a bridge voltage comparison circuit, and bridge voltage comparison circuit includes four fortune The electric bridge that amplifier OP1, OP2, OP3, OP4 and photo resistance R1, R2, R3, R4 and resistance R5~R10 are constituted is calculated, in height It is utilized respectively sensing element of two photo resistance as position of sun when angle and Bearings tracking, four photo resistance R1, R2, R3, R4 are spaced one from partition, and two partitions are intersected with 90 degree of angles to be placed, and R1, R2, R3, R4 are individually positioned in baffle interval Four regions in, and with partition crosspoint central symmetry placement, bridge voltage comparison circuit is by two groups of electric bridges and four Operational amplifier composition, first group of electric bridge are put by two photo resistance R1 and R2, two reference resistance R5, R6 and two operation Big device OP1 and OP2 composition, the negative terminal of diode D1 connect photo resistance R1 and R2 to GND, and R1 connects fortune with the common node of R2 The dividing point of the anode of calculation amplifier OP1 and the negative terminal of operational amplifier OP2, resistance R5 and resistance R6 are separately connected amplifier The negative terminal of OP1 negative terminal and operational amplifier OP3, provides the reference voltage of operational amplifier, and the resistance value of photo resistance R1 and R2 become Change respectively compared with the resistance value of R5 and R6, comparison result is exported by operational amplifier OP1 and OP2.
Second group of electric bridge is by two photo resistance R3 and R4, two reference resistance R7, R8 and two operational amplifier The negative terminal of OP3 and OP4 composition, diode D1 connects photo resistance R3 and R4 to GND, and R3 connects operation with the common node of R4 and puts The dividing point of the anode of big device OP3 and the negative terminal of operational amplifier OP4, resistance R5 and resistance R6 after series resistance R7 by connecting The anode of operational amplifier OP2 is connected to provide reference voltage, the dividing point of resistance R5 and resistance R6 pass through after series resistance R8 The anode of operational amplifier OP4 is connected to provide reference voltage, the change in resistance of photo resistance R3 and R4 are respectively with R5's and R6 Resistance value compares, and exports comparison result by operational amplifier OP3 and OP4.
Specific connection type are as follows: the anode of diode D1 connects power supply VCC, and the negative terminal of diode D1 is sequentially connected photosensitive electricity R1 and R2 to GND is hindered, the dividing point for constituting the R1 and R2 of partial-pressure structure connects the anode and operation amplifier of operational amplifier OP1 The negative terminal of device OP2;Likewise, the negative terminal of diode D1 also connects photo resistance R3 and R4 to G ND, partial-pressure structure is constituted, point Pressure point connects the anode of operational amplifier OP3 and the negative terminal of operational amplifier OP4, and diode D1 negative terminal connects resistance R5 and R6 Tie point to GND, resistance R5 and R6 provides benchmark comparison voltage, resistance for four operational amplifiers OP1, OP2, OP3, OP4 The dividing point of R5 and resistance R6 are separately connected the negative terminal of amplifier OP1 negative terminal and operational amplifier OP3, and resistance R5 and resistance R6 Dividing point by being connected to the anode of operational amplifier OP2 after series resistance R7, the dividing point of resistance R5 and resistance R6 pass through The anode of operational amplifier OP4 is connected after series resistance R8;The output end of operational amplifier OP1 and operational amplifier OP2's is defeated The indirect resistance R9 of outlet;The indirect resistance R10 of the output end of the output end and operational amplifier OP4 of operational amplifier OP3; The four tunnels output of four operational amplifiers OP1, OP2, OP3, OP4 respectively constitute the four tunnels output letter of solar energy orientation detection module Number SIGNAL OUTPUT1, SIGNAL OUTPUT2, SIGNAL OUTPUT3 and SIGNAL OUTPUT4, photo resistance R1 and R2 Tie point connect the non-inverting input terminal of operational amplifier OP1 and the inverting input terminal of OP2, the tie point of photo resistance R3 and R4 connect The non-inverting input terminal of operational amplifier OP3 and the inverting input terminal of OP4, when the solar panels and sunlight of solar tracking system When line is vertical, the sensitive volume of four photo resistance is equal, the output voltage at photo resistance end and the output voltage at reference resistance end Identical, two groups of electric bridges are in equilibrium state, and four operational amplifier output levels are equal, when the position of the sun changes, Since tracking system is no longer directly toward the position of the sun, partition can block a part of light emission and enter some transistor, electric bridge due to Photosensitive resistance value it is different without rebalancing, in circuit respectively each two photo resistance of controlling party parallactic angle and elevation angle due to resistance The difference of value causes the same phase in voltage comparator with inverting input terminal there are pressure difference, and the amplifier of open loop application compares as voltage Device, to be output to motor after result is handled by MCU, can reach control motor according to the positive negative output low and high level of pressure difference The purpose accordingly rotated.
The intensity of illumination detection module is made of a photodiode, operational amplifier and three reference resistances, Photodiode and three reference resistances constitute an electric bridges, and when daytime, the photodiode resistance value of reversal connection is less than reference resistance, Therefore through operational amplifier relatively after export high level, system should be in working condition at this time for judgement, and system does not have interrupt requests, MCU Program in processor continues to run;When night, the photodiode resistance value of reversal connection is higher than reference resistance, therefore through operational amplifier After export low level, system should be sleep state at this time for judgement, and when one of input pin of MCU, INT0 is used to examine External interrupt is surveyed, when detecting low level, i.e. INT0=0 issues interrupt requests to single-chip microcontroller, after single-chip microcontroller is connected to interrupt requests External interrupt 0 is activated, into 0 processing routine of external interrupt, hence into wait state.
The motor-drive circuit is H-bridge drive circuit, by four triodes and motor form H bridge structure, carries out electricity The rotation of motor is realized in machine driving by the triode on conducting H bridge on diagonal line, just by two ports of input Negative level controls the triode ON of different location, meanwhile, the forward and reverse of motor can be by flowing through the current direction of motor It determines, different pairs of triode, which is connected, can determine to flow through the current direction of motor, to control the main story or reversion of motor.? In this system, due to there are two motors, thus it is corresponding, each motor respectively corresponds to a H-bridge drive circuit.
The beneficial effects of the present invention are:
(1) present invention realizes the high-precision of system, the flexibility of low-power consumption and system extension using MCU.
(2) present invention uses the solar-tracking detection pattern based on bridge voltage comparative structure, high sensitivity, cost It is low.
(3) present invention use photodiode and amplifier intensity of illumination detection pattern, realize whole system work with The switching for double mode of sleeping reduces system power dissipation.
Detailed description of the invention
Fig. 1 is the structural block diagram of the miniature solar automatic tracking system the present invention is based on MCU;
Fig. 2 is motor and mechanical driving device structural schematic diagram of the present invention;
Fig. 3 is the circuit diagram of solar energy orientation detection module of the present invention;
Fig. 4 is the photo resistance arrangement mode figure of solar energy orientation detection module of the present invention;
Fig. 5 is A/D acquisition of the present invention and MCU processing circuit schematic diagram;Wherein, the crystal oscillating circuit of 1-MCU.2-MCU is multiple Position circuit, 3-A/D analog-digital converter, 4-MCU;
Fig. 6 is intensity of illumination detection circuit schematic diagram in the present invention.
Fig. 7 is motor-drive circuit schematic diagram in the present invention.
Specific embodiment
Present invention will be further explained below with reference to the attached drawings and examples.
Automatic sun energy tracing system of the invention includes MCU module, A/D converter, solar energy orientation detection module, light According to intensity detection module, motor-drive circuit and motor and mechanical driving device, as shown in Figure 1, solar energy orientation detection mould Block is physically connected to motor and mechanical driving device, and motor and mechanical driving device are that the Twin-shaft machinery of Belt Driven by Double Motor is driven dress It sets, solar energy orientation detection module will be passed to by the light intensity data in the space detected in the circuit of solar energy orientation detection module A/D converter and MCU module control motor-drive circuit by MCU module, so that motor and mechanical driving device be made to be turned It is dynamic, until solar energy orientation detection module is towards space largest light intensity position, meanwhile, intensity of illumination detection module judges Real-Time Optical According to situation, by testing result judged after be input in the form of low and high level at the interruptive port of MCU, the judgement For real-time lighting intensity size and the intensity of illumination threshold value of setting are compared, when intensity of illumination be higher than given threshold, then export High level, when intensity of illumination be lower than given threshold, then low level is exported, to make entire solar-tracking system in operating mode When switching between sleep pattern, i.e. intensity of illumination are higher than given threshold, whole system is operating mode;Intensity of illumination is lower than When given threshold, whole system is suspend mode, to reduce whole system power consumption.
The motor uses two motors and corresponding mechanical device respectively in azimuth and height to mechanical driving device The motor-drive circuit of the mechanical device that angle both direction is rotated, driving motor and mechanical driving device is divided into two-way, and one Road is motor-drive circuit 1, is in addition all the way motor-drive circuit 2, wherein motor-drive circuit 1 drives mechanical driving device The variation of deflection, motor-drive circuit 2 are used to drive the variation of the height of mechanical driving device;Azimuth and elevation angle two The motor rotation axis in direction is connected with corresponding mechanical shaft respectively, while entire motor and mechanical driving device include a bottom Entire motor is fixed with mechanical driving device for seat, pedestal, in the fixed solar energy in the top of motor and mechanical driving device Orientation detection module, solar energy orientation detection module and MCU module acquire the Orientation differences of solar energy in real time, and locate to obtain current The azimuth information of solar energy, angle and height to mechanical driving device control.
The MCU module uses microcontroller chip STC89C52, this module realizes the automatic control to whole system.
The A/D converter uses the chip TLC1543 with serial communication interface.
The solar energy orientation detection module is a bridge voltage comparison circuit, and bridge voltage comparison circuit includes LM324 The electric bridge that chip and photo resistance R1, R2, R3, R4 and resistance R5~R10 are constituted, wherein LM324 chip includes four operations Amplifier OP1, OP2, OP3, OP4 are utilized respectively two photo resistance in elevation angle and Bearings tracking as position of sun Sensing element, four photo resistance R1, R2, R3, R4 are spaced one from partition, according to position in Fig. 4 place two partitions with 90 degree of angles, which intersect, to be placed, and R1, R2, R3, R4 are individually positioned in four regions of baffle interval, and in partition crosspoint The heart is symmetrically placed.Bridge voltage comparison circuit is made of two groups of electric bridges and four operational amplifiers, and first group of electric bridge is by two Photo resistance R1 and R2, two reference resistance R5, R6 and two operational amplifier OP1 and OP2 composition, the negative terminal of diode D1 Photo resistance R1 and R2 to GND is connected, R1 connects the anode and operational amplifier of operational amplifier OP1 with the common node of R2 The dividing point of the negative terminal of OP2, resistance R5 and resistance R6 are separately connected the negative terminal of amplifier OP1 negative terminal and operational amplifier OP3, provide The reference voltage of operational amplifier, the change in resistance of photo resistance R1 and R2 compared with the resistance value of R5 and R6, pass through operation respectively Amplifier OP1 and OP2 export comparison result.
Second group of electric bridge is by two photo resistance R3 and R4, two reference resistance R7, R8 and two operational amplifier The negative terminal of OP3 and OP4 composition, diode D1 connects photo resistance R3 and R4 to GND, and R3 connects operation with the common node of R4 and puts The dividing point of the anode of big device OP3 and the negative terminal of operational amplifier OP4, resistance R5 and resistance R6 after series resistance R7 by connecting The anode of operational amplifier OP2 is connected to provide reference voltage, the dividing point of resistance R5 and resistance R6 pass through after series resistance R8 The anode of operational amplifier OP4 is connected to provide reference voltage, the change in resistance of photo resistance R3 and R4 are respectively with R5's and R6 Resistance value compares, and exports comparison result by operational amplifier OP3 and OP4.
Specific connection type is that the anode of diode D1 connects power supply VCC, and the negative terminal of diode D1 is sequentially connected photosensitive electricity R1 and R2 to GND is hindered, the dividing point for constituting the R1 and R2 of partial-pressure structure connects the anode and operation amplifier of operational amplifier OP1 The negative terminal of device OP2;Likewise, the negative terminal of diode D1 also connects photo resistance R3 and R4 to G ND, partial-pressure structure is constituted, point Pressure point connects the anode of operational amplifier OP3 and the negative terminal of operational amplifier OP4, and diode D1 negative terminal connects resistance R5 and R6 Tie point to GND, resistance R5 and R6 provides benchmark comparison voltage, resistance for four operational amplifiers OP1, OP2, OP3, OP4 The dividing point of R5 and resistance R6 are separately connected the negative terminal of amplifier OP1 negative terminal and operational amplifier OP3, and resistance R5 and resistance R6 Dividing point by being connected to the anode of operational amplifier OP2 after series resistance R7, the dividing point of resistance R5 and resistance R6 pass through The anode of operational amplifier OP4 is connected after series resistance R8;The output end of operational amplifier OP1 and operational amplifier OP2's is defeated The indirect resistance R9 of outlet;The indirect resistance R10 of the output end of the output end and operational amplifier OP4 of operational amplifier OP3; The four tunnels output of four operational amplifiers OP1, OP2, OP3, OP4 respectively constitute the four tunnels output letter of solar energy orientation detection module Number SIGNAL OUTPUT1, SIGNAL OUTPUT2,
The tie point of SIGNAL OUTPUT3 and SIGNAL OUTPUT4, photo resistance R1 and R2 meet operational amplifier OP1 Non-inverting input terminal and OP2 inverting input terminal, the tie point of photo resistance R3 and R4 connects the homophase input of operational amplifier OP3 The inverting input terminal at end and OP4, when the solar panels of solar tracking system are vertical with sunray, four photo resistance Sensitive volume is equal, and the output voltage at photo resistance end is identical as the output voltage at reference resistance end, and two groups of electric bridges are in equilibrium-like State, four operational amplifier output levels are equal, when the position of the sun changes, since tracking system is no longer directly toward The position of the sun, partition can block a part of light emission and enter some transistor, and electric bridge is different without rebalancing due to photosensitive resistance value, Each two photo resistance of controlling party parallactic angle and elevation angle are caused in voltage comparator due to the difference of resistance value respectively in circuit Same phase and inverting input terminal there are pressure differences, the amplifier of open loop application can be according to the positive negative output height of pressure difference as voltage comparator Low level achievees the purpose that controlling motor is accordingly rotated to be output to motor after result is handled by MCU.
The intensity of illumination detection module is made of a photodiode, operational amplifier and three reference resistances, Photodiode and three reference resistances constitute an electric bridges, and when daytime, the photodiode resistance value of reversal connection is less than reference resistance, Therefore through operational amplifier relatively after export high level, system should be in working condition at this time for judgement, and system does not have interrupt requests, MCU Program in processor continues to run;When night, the photodiode resistance value of reversal connection is higher than reference resistance, therefore through operational amplifier After export low level, system should be sleep state at this time for judgement, and when one of input pin of MCU, INT0 is used to examine External interrupt is surveyed, when detecting low level, i.e. INT0=0 issues interrupt requests to single-chip microcontroller, after single-chip microcontroller is connected to interrupt requests External interrupt 0 is activated, into 0 processing routine of external interrupt, hence into wait state.
The motor-drive circuit is H-bridge drive circuit, by four triodes and motor form H bridge structure, carries out electricity The rotation of motor is realized in machine driving by the triode on conducting H bridge on diagonal line, just by two ports of input Negative level controls the triode ON of different location, meanwhile, the forward and reverse of motor can be by flowing through the current direction of motor It determines, different pairs of triode, which is connected, can determine to flow through the current direction of motor, to control the main story or reversion of motor.? In this system, due to there are two motors, thus it is corresponding, each motor respectively corresponds to a H-bridge drive circuit.
Referring to Fig. 2, motor of the present invention and mechanical driving device are one and use two motors 3,4 and corresponding mechanical device Carry out the mechanical device at azimuth and the rotation of elevation angle both direction.The motor rotation axis in each direction connects with corresponding mechanical shaft It connects, while there are a pedestals 2, and device is fixed for entire mechanical driving device.An orientation inspection is fixed at the top of device Module 1 is surveyed, the module and MCU acquire in real time and handle the light intensity of current spatial and direction and the operating to following mechanical device It is controlled.
Referring to Fig. 3, solar energy orientation detection module of the present invention by LM324 four operational amplifiers (OP1-OP4), two pairs Photo resistance (R1-R4) and multiple reference resistance (R5-R10) constitute bridge voltage comparison circuit realize.As shown in figure 4, its In two couples of 1 (R of photo resistance1-R4) separated to carry out light position judgement by a cross partition 2, space maximum light is judged respectively The elevation angle and horizontal angle of strong position.Meanwhile the photo resistance of horizontal angle and elevation angle walking direction respectively corresponds two Single operational amplifier in LM324.When the orientation of the tracking system face sun, the sensitive volume of four photo resistance is equal, this When each electric bridge be in equilibrium state.Pressure difference is not present in amplifier positive-negative input end.It exports when the position of the sun changes, due to Tracking system is not correctly towards the position of the sun, and partition can block a part of light emission and enter some transistor, and electric bridge is due to light Quick resistance value it is different without rebalancing, in circuit respectively each two photo resistance of controlling party parallactic angle and elevation angle due to resistance value Difference cause same phase in voltage comparator with inverting input terminal there are pressure differences, the amplifier of open loop application is as voltage comparator Can according to the positive negative output low and high level of pressure difference, to be output to motor after result is handled by MCU, reach control motor into The purpose that row accordingly rotates.
A/D converter 3 described in Fig. 5, TLC1543 be 20 foot DIP dress 10 bit switch capacitor of CMOS gradually A/D approaches mould Number converter, wherein A0~A10 (1~9,11,12 foot) is 11 analog input ends, and REF+ (14 foot) and REF- (13 foot) are base Quasi- voltage positive and negative terminal, CS (15 foot) are chip select terminal, and ADDRESS (17 foot) is serial data input, and DATAOUT is A/D conversion Terminate 3 state serial output terminals, the serial-port communication of it and microprocessor or periphery, when CLOCK data input/output provides synchronous Clock, system clock in piece by generating.In this example, four tunnel analog signals of solar energy orientation detection circuit output connect respectively The A0-A3 foot of TLC1543, the address in this four channels are 0000B, 0001B, 0010B, 0011B.In the output of TLC1543, CLK is connected with the P1.0 of STC89C52, and ADDR is connected with P1.1, and DATAOUT is connected with P1.2, and CS is connected with P1.3.Two bases Quasi- voltage pin REF+ and REF- connects 5V power supply and ground respectively.
Referring to Fig. 5, the input terminal of the MCU chip 4STC89C52 and the part pin connection type of A/D conversion chip 3 With reference to above-mentioned introduction.In addition, STC89C52 chip needs external crystal oscillating circuit 1 and reset circuit 2.Crystal oscillating circuit 1 is connected to MCU core The XTAL1 (19 foot) and XTAL2 (18 foot) of piece 4, reset circuit 2 are connected to the RET (9 foot) of chip 4.The Vcc (40 of STC89C52 Foot) with Vss (20 foot) be feeder ear, connect respectively 5V power supply and ground.Pass through DATAOUT pin input serial data in A/D chip Afterwards, MCU chip 4 divides four roads from I/O mouthfuls of output treated signals, and output pin is P2.0-P2.3 (21-24 foot).Output Signal is accordingly rotated by driving circuit driving motor, to achieve the effect that real-time tracking largest light intensity orientation.
Referring to Fig. 6, the intensity of illumination detection circuit is by photodiode D1, single operational amplifier and conventional, electric-resistance (R1-R3) composition.Meanwhile the INT0 (12 foot) of detection circuit output termination MCU chip, apply light-sensitive element real-time to reach Environmental light intensity is judged, to make system in the purpose of work and sleep pattern switching.Photodiode D1With three reference resistances R1-R3Constitute an electric bridge, when daytime, the photodiode D of reversal connection1Resistance value is less than reference resistance R1, therefore through operational amplifier ratio After export high level, system should be in working condition at this time for judgement, and system does not have interrupt requests, and program continues to run;When night, The photodiode D of reversal connection1Resistance value is higher than reference resistance R1, therefore through operational amplifier relatively after export low level, judgement is at this time System should be sleep state, and when INT0 detects low level, i.e. INT0=0 issues interrupt requests to single-chip microcontroller, and single-chip microcontroller is connected to External interrupt 0 is activated after interrupt requests, into 0 processing routine of external interrupt, hence into wait state.
Referring to Fig. 7, two motor-drive circuits of described this system are that (Fig. 7 is one of electricity to H-bridge drive circuit structure Road schematic diagram).Primary structure is four triode Q1-Q4The full-bridge circuit of (and its driving circuit) and motor form.Due to The output electric current of the I/O pin of MCU is too small, is unable to drive motor normal work, it is necessary to use motor-drive circuit.Driving electricity The main operational principle on road are as follows: the rotation that motor is realized by the triode on diagonal line on conducting H bridge changes conducting Triode can be achieved the goal by the change of the positive negative level of two ports of input.Meanwhile the forward and reverse of motor It can determine that different pairs of triode, which is connected, can determine how electric current flows through motor by flowing through the current direction of motor.Such as circuit Middle Q1With Q4When conducting, motor obtains electric current from left to right;And Q2With Q3When conducting, the electric current that motor passes through is then opposite.
A kind of miniature solar automatic tracking system based on MCU of the invention has control precision height, solar energy conversion High-efficient, system cost is low.Simultaneity factor has the characteristics that operating mode and sleep pattern double mode automatically switch, and can drop Low system power dissipation.

Claims (7)

1. a kind of miniature solar automatic tracking system based on MCU, it is characterised in that:
The miniature solar automatic tracking system based on MCU, including MCU module, A/D converter, the inspection of solar energy orientation Survey module, intensity of illumination detection module, motor-drive circuit and motor and mechanical driving device, solar energy orientation detection module It is physically connected to motor and mechanical driving device, motor and mechanical driving device are that the Twin-shaft machinery of Belt Driven by Double Motor is driven dress It sets, solar energy orientation detection module will be passed to by the light intensity data in the space detected in the circuit of solar energy orientation detection module A/D converter and MCU module control motor-drive circuit by MCU module, so that motor and mechanical driving device be made to be turned It is dynamic, until solar energy orientation detection module is towards space largest light intensity position, meanwhile, intensity of illumination detection module judges Real-Time Optical According to situation, by testing result judged after be input in the form of low and high level at the interruptive port of MCU, the judgement For real-time lighting intensity size and the intensity of illumination threshold value of setting are compared, when intensity of illumination be higher than given threshold, then export High level, when intensity of illumination be lower than given threshold, then low level is exported, to make entire solar-tracking system in operating mode When switching between sleep pattern, i.e. intensity of illumination are higher than given threshold, whole system is operating mode;Intensity of illumination is lower than When given threshold, whole system is suspend mode, to reduce whole system power consumption.
2. a kind of miniature solar automatic tracking system based on MCU according to claim 1, it is characterised in that: described Motor and mechanical driving device using two motors and corresponding mechanical device respectively azimuth and elevation angle both direction into The motor-drive circuit of the mechanical device of row rotation, driving motor and mechanical driving device is divided into two-way, is all the way motor driven In addition circuit 1 is motor-drive circuit 2 all the way, wherein motor-drive circuit 1 drives the change of the deflection of mechanical driving device Change, motor-drive circuit 2 is used to drive the variation of the height of mechanical driving device;The motor of azimuth and elevation angle both direction Rotation axis is connected with corresponding mechanical shaft respectively, while entire motor and mechanical driving device include a pedestal, and pedestal is to whole A motor is fixed with mechanical driving device, in the fixed solar energy orientation detection mould in the top of motor and mechanical driving device Block, solar energy orientation detection module and MCU module acquire the Orientation differences of solar energy in real time, and locate to obtain the side of current solar energy Position information, angle and height to mechanical driving device control.
3. a kind of miniature solar automatic tracking system based on MCU according to claim 1, it is characterised in that: described MCU module uses microcontroller chip STC89C52, realizes the automatic control to whole system.
4. a kind of miniature solar automatic tracking system based on MCU according to claim 1, it is characterised in that: described A/D converter uses the chip TLC1543 with serial communication interface.
5. a kind of miniature solar automatic tracking system based on MCU according to claim 1, it is characterised in that: described Solar energy orientation detection module be a bridge voltage comparison circuit, bridge voltage comparison circuit include four operational amplifier OP1, The electric bridge that OP2, OP3, OP4 and photo resistance R1, R2, R3, R4 and resistance R5~R10 are constituted, elevation angle and azimuth with Sensing element of two photo resistance as position of sun, four photo resistance R1, R2, R3, R4 partitions are utilized respectively when track It is spaced one from, two partitions are intersected with 90 degree of angles to be placed, and R1, R2, R3, R4 are individually positioned in four regions of baffle interval It is interior, and with the placement of partition crosspoint central symmetry, bridge voltage comparison circuit is by two groups of electric bridges and four operational amplifiers Composition, first group of electric bridge by two photo resistance R1 and R2, two reference resistances R5, R6 and two operational amplifier OP1 and The negative terminal of OP2 composition, diode D1 connects photo resistance R1 and R2 to GND, and R1 connects operational amplifier with the common node of R2 The dividing point of the anode of OP1 and the negative terminal of operational amplifier OP2, resistance R5 and resistance R6 be separately connected amplifier OP1 negative terminal and The negative terminal of operational amplifier OP3, provides the reference voltage of operational amplifier, the change in resistance of photo resistance R1 and R2 respectively with R5 Compare with the resistance value of R6, comparison result is exported by operational amplifier OP1 and OP2;Second group of electric bridge is by two photo resistance R3 And R4, two reference resistance R7, the negative terminal connection of R8 and two operational amplifier OP3 and OP4 composition, diode D1 are photosensitive The common node of resistance R3 and R4 to GND, R3 and R4 connect the anode of operational amplifier OP3 and bearing for operational amplifier OP4 The dividing point of end, resistance R5 and resistance R6 are by being connected to the anode of operational amplifier OP2 after series resistance R7 to provide reference The dividing point of voltage, resistance R5 and resistance R6 connect the anode of operational amplifier OP4 after passing through series resistance R8 to provide reference Voltage, the change in resistance of photo resistance R3 and R4 are defeated by operational amplifier OP3 and OP4 respectively compared with the resistance value of R5 and R6 Comparison result out.
6. a kind of miniature solar automatic tracking system based on MCU according to claim 1, it is characterised in that: described Intensity of illumination detection module is by a photodiode, operational amplifier and three reference resistances compositions, photodiode with Three reference resistances constitute an electric bridges, and when daytime, the photodiode resistance value of reversal connection is less than reference resistance, therefore through operation amplifier High level is exported after device, system should be in working condition at this time for judgement, and system does not have interrupt requests, the journey in MCU processor Sequence continues to run;When night, the photodiode resistance value of reversal connection is higher than reference resistance, thus through operational amplifier relatively after export it is low Level, system should be sleep state at this time for judgement, and when one of input pin of MCU, INT0 is used to detect external interrupt, examine When measuring low level, i.e. INT0=0 issues interrupt requests to single-chip microcontroller, and external interrupt 0 is swashed after single-chip microcontroller is connected to interrupt requests It is living, into 0 processing routine of external interrupt, hence into wait state.
7. a kind of miniature solar automatic tracking system based on MCU according to claim 1, it is characterised in that: described Motor-drive circuit is H-bridge drive circuit, by four triodes and motor form H bridge structure, motor driven is carried out, by leading Lead to the triode on H bridge on diagonal line to realize the rotation of motor, is controlled not by the positive negative level of two ports of input With the triode ON of position, meanwhile, the forward and reverse of motor can determine that conducting is different by flowing through the current direction of motor Pair triode can determine to flow through the current direction of motor, to control the main story or reversion of motor, in the present system, due to There are two motors, thus it is corresponding, and each motor respectively corresponds to a H-bridge drive circuit.
CN201811351903.9A 2018-11-14 2018-11-14 A kind of miniature solar automatic tracking system based on MCU Pending CN109189108A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811351903.9A CN109189108A (en) 2018-11-14 2018-11-14 A kind of miniature solar automatic tracking system based on MCU

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811351903.9A CN109189108A (en) 2018-11-14 2018-11-14 A kind of miniature solar automatic tracking system based on MCU

Publications (1)

Publication Number Publication Date
CN109189108A true CN109189108A (en) 2019-01-11

Family

ID=64939070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811351903.9A Pending CN109189108A (en) 2018-11-14 2018-11-14 A kind of miniature solar automatic tracking system based on MCU

Country Status (1)

Country Link
CN (1) CN109189108A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110375676A (en) * 2019-06-18 2019-10-25 浙江科技学院 A kind of photodetector for double-shaft solar tracing system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009294739A (en) * 2008-06-03 2009-12-17 Foundation For Promotion Of Japanese Aerospace Technology Sunlight tracking device
CN102314177A (en) * 2010-07-06 2012-01-11 上海阳远新能源科技有限公司 Automatic solar tracking system and method
CN103176479A (en) * 2011-12-20 2013-06-26 北京市计科能源新技术开发公司 Control method of intelligent solar photovoltaic power generation tracking system
JP2014522624A (en) * 2012-03-27 2014-09-04 江蘇振発新能源科技発展有限公司 A new solar power self-tracking system
CN104156004A (en) * 2014-08-04 2014-11-19 高崧 Small-sized solar automatic tracking and intelligent power supply device
CN204573874U (en) * 2015-04-20 2015-08-19 北华大学 Small-sized household sunshine green illumination device
CN106774456A (en) * 2017-03-06 2017-05-31 西北工业大学 A kind of solar energy tracking device and control method
CN206557616U (en) * 2017-03-15 2017-10-13 山东信友电器有限公司 A kind of photovoltaic autotracking power generation monitoring system of Internet of Things framework
CN107256036A (en) * 2017-06-20 2017-10-17 上海电力学院 A kind of solar-tracking control system and method for photo-thermal power generation
CN107943113A (en) * 2017-11-24 2018-04-20 山东科技大学 A kind of folding solar automatic tracking device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009294739A (en) * 2008-06-03 2009-12-17 Foundation For Promotion Of Japanese Aerospace Technology Sunlight tracking device
CN102314177A (en) * 2010-07-06 2012-01-11 上海阳远新能源科技有限公司 Automatic solar tracking system and method
CN103176479A (en) * 2011-12-20 2013-06-26 北京市计科能源新技术开发公司 Control method of intelligent solar photovoltaic power generation tracking system
JP2014522624A (en) * 2012-03-27 2014-09-04 江蘇振発新能源科技発展有限公司 A new solar power self-tracking system
CN104156004A (en) * 2014-08-04 2014-11-19 高崧 Small-sized solar automatic tracking and intelligent power supply device
CN204573874U (en) * 2015-04-20 2015-08-19 北华大学 Small-sized household sunshine green illumination device
CN106774456A (en) * 2017-03-06 2017-05-31 西北工业大学 A kind of solar energy tracking device and control method
CN206557616U (en) * 2017-03-15 2017-10-13 山东信友电器有限公司 A kind of photovoltaic autotracking power generation monitoring system of Internet of Things framework
CN107256036A (en) * 2017-06-20 2017-10-17 上海电力学院 A kind of solar-tracking control system and method for photo-thermal power generation
CN107943113A (en) * 2017-11-24 2018-04-20 山东科技大学 A kind of folding solar automatic tracking device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
颜鲁薪: "《光伏发电技术及应用》", 30 April 2015, 西北工业大学出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110375676A (en) * 2019-06-18 2019-10-25 浙江科技学院 A kind of photodetector for double-shaft solar tracing system

Similar Documents

Publication Publication Date Title
CN103926937B (en) A kind of high-efficiency solar method for automatic tracking and device
CN116505855A (en) A dual-axis automatic tracking photovoltaic power generation device and automatic tracking control method
CN105892502A (en) Solar automatic tracking method and system
CN201886356U (en) Automatic solar follow-up mechanism based on singlechip
CN204349881U (en) Solar energy power generating controller
CN109189108A (en) A kind of miniature solar automatic tracking system based on MCU
CN202394124U (en) Solar tracking sensor
CN103105157B (en) Sunlight irradiation position coordinate monitor
CN2760463Y (en) Sunlight tracking sensor
CN201788415U (en) Solar angular tracking device and solar energy device
CN204536919U (en) For day of photovoltaic system to pick-up unit
CN209132643U (en) A kind of street lamp photovoltaic tracking device
CN104142408A (en) Photoelectric type wind direction and wind speed measuring device
CN106444869A (en) Disc type solar tracking control system
CN107329497B (en) Solar tracking implementation technology based on photosensitive resistance element
CN201219246Y (en) Solar Intermittent Tracking Control System
CN202372860U (en) Solar cell panel sampling and tracking sensing device
CN211956230U (en) Light following control system
CN205827249U (en) A kind of solar automatic tracking system
CN205679782U (en) A kind of weather information detecting system powered based on solar energy tracking
CN208044409U (en) A solar automatic light tracking device
CN108508919A (en) A kind of solar energy automatic vertical follow-up mechanism
CN210402107U (en) Sun tracking type indoor lighting system
CN209895193U (en) An intelligent light-directing system for solar panels
CN203068404U (en) Automatic tracking wind-solar hybrid streetlight device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190111