Summary of the invention
The present invention is directed to the problems referred to above that exist in the prior art, a kind of simple to operate, parameter setting circuit for DC brushless motor controller that precision is high be provided, adopt following technical scheme:
A kind of parameter setting circuit for DC brushless motor controller; Comprise controller and power supply; Said controller has power input, and said power input is electrically connected to the both positive and negative polarity of said power supply, and said power supply is that said controller provides voltage input signal and current input signal; Said controller comprises the supply voltage sample circuit that is electrically connected to said power input;
Said controller also comprises controller microprocessor, and said supply voltage sample circuit is input to said controller microprocessor after with the step-down of said supply voltage input signal, filtering; Said controller microprocessor also comprises parameter signalization input;
Said parameter setting circuit for DC brushless motor controller comprises also device is set that the said device that is provided with comprises device microprocessor and the button portion of being provided with; Said button portion has the push button signalling output, and said push button signalling output is electrically connected to the said push button signalling input that the device microprocessor is set, output key signal;
The said device microprocessor that is provided with has parameter signalization output, is electrically connected with the parameter signalization input of said controller microprocessor; The said device microprocessor that is provided with receives said push button signalling, and the output parameter signalization is controlled said controller microprocessor and carried out the parameter setting.
Further; Said button portion comprises that under-voltage value is provided with button; Said under-voltage value is provided with button and comprises first switch (K1) and first electric capacity (C1) that is connected in parallel; An end one branch road that said under-voltage value is provided with button is electrically connected to the said first push button signalling input that the device microprocessor is set through the 4th resistance (R4), and another branch road is electrically connected to through the 6th resistance (R6) the device Input voltage terminal is set, and said under-voltage value is provided with the other end ground connection of button.
Further, said controller also comprises the source current sample circuit that is electrically connected to said power input, and said source current sample circuit is input to said controller microprocessor after said source current input signal is amplified, changes.
Further; Said button portion comprises that also cut-off current is provided with button; Said cut-off current is provided with button and comprises second switch (K2) and second electric capacity (C2) that is connected in parallel; An end one branch road that said cut-off current is provided with button is electrically connected to the said second push button signalling input that the device microprocessor is set through the 8th resistance (R8), and another branch road is electrically connected to through the 7th resistance (R7) the device Input voltage terminal is set, and said cut-off current is provided with the other end ground connection of button.
Further; Said controller microprocessor comprises that also parameter is provided with the completion signal output part; Said parameter is provided with the completion signal output part and to the said device microprocessor output parameter that is provided with the completion signal is set; Said be provided with the device microprocessor receive said parameter be provided with accomplish signal after, by its index signal output output index signal;
The said device that is provided with comprises that also parameter is provided with the completion indicating circuit, and said parameter is provided with the completion indicating circuit and is electrically connected to the said index signal output that the device microprocessor is set, and receives said index signal.
Further; Said parameter is provided with the completion indicating circuit and comprises that under-voltage value is provided with the completion indicating circuit; Said under-voltage value is provided with the completion indicating circuit and has first diode (D1) and first resistance (R1) that is connected in series; One end of this series circuit is electrically connected to the device Input voltage terminal is set, and the other end is electrically connected to the said first index signal output that the device microprocessor is set.
Further; Said parameter is provided with the completion indicating circuit and comprises that also cut-off current is provided with the completion indicating circuit; Said cut-off current is provided with the completion indicating circuit and has second diode (D2) and second resistance (R2) that is connected in series; One end of this series circuit is electrically connected to the device Input voltage terminal is set, and the other end is electrically connected to the said second index signal output that the device microprocessor is set.
Further; Said controller also comprises the handle voltage sampling circuit that is electrically connected with said controller microprocessor; Said controller has the handle voltage input end; For said handle voltage sampling circuit provides the handle voltage input signal of simulation, said handle voltage sampling circuit with the filtering of said handle voltage input signal after, be input to said controller microprocessor;
Said parameter setting circuit for DC brushless motor controller also comprises the handle voltage input circuit; Said handle voltage input circuit comprises the 11 resistance (R11) and the 4th electric capacity (C4) that is connected in parallel; One end of this parallel circuits is electrically connected to the input of said handle voltage input circuit, other end ground connection through the tenth resistance (R10); Voltage signal between this parallel circuits and said the tenth resistance (R10) is the output of said handle voltage input circuit, is electrically connected with the handle voltage input end of said controller, for said controller provides the handle voltage input signal.
Further; Said button portion comprises that also the handle magnitude of voltage is provided with button; Said handle magnitude of voltage is provided with button and comprises the 3rd switch (K3) and the 3rd electric capacity (C3) that is connected in parallel; An end one branch road that said handle magnitude of voltage is provided with button is electrically connected to said the 3rd push button signalling input that the device microprocessor is set through the 9th resistance (R9), and another branch road is electrically connected to through the 5th resistance (R5) the device Input voltage terminal is set, and said handle magnitude of voltage is provided with the other end ground connection of button.
Further; Said parameter is provided with the completion indicating circuit and comprises that also the handle magnitude of voltage is provided with the completion indicating circuit; Has the 3rd diode (D3) and the 3rd resistance (R3) that are connected in series; One end of this series circuit is electrically connected to the device Input voltage terminal is set, and the other end is electrically connected to said the 3rd index signal output that the device microprocessor is set.
Compared with prior art; Parameter setting circuit for DC brushless motor controller provided by the invention is provided with device output parameter signalization through pressing the switch in the button portion, making; Controlling said controller stores the calibration value parameter; Can carry out the setting of under-voltage, current limliting and handle voltage calibration value to the Different control device successively, write data when being employed in burning program when having avoided the above-mentioned parameter calibration value is set in the prior art, because the difference of hardware environment; Make above-mentioned several parameter indexs can not satisfy the demand of different controllers simultaneously, need the artificial trouble that hardware is adjusted again.Parameter setting circuit provided by the invention can be provided with several important parameters such as under-voltage, current limliting and handle voltage accurately, and is very simple and practical.
Embodiment
Below in conjunction with accompanying drawing the present invention is described further.
Parameter setting circuit for DC brushless motor controller as shown in Figure 1, that the embodiment of the invention provides mainly comprises controller 1, device 2 is set, handle voltage input circuit 3 and power supply 4.The major function that the present invention realizes is in the electric bicycle line parameter setting of advancing of dispatching from the factory; When being provided with; Controller 1 obtains the artificial handle voltage that is provided with and battery operated voltage, current value from handle voltage input circuit 3 and power supply 4; It as calibration value, through being set, device 2 is realized the storage of 1 pair of above-mentioned calibration value of controller successively.In addition; After electric bicycle dispatches from the factory in motion; Controller 1 can also obtain the real time data of handle voltages and battery operated voltage, electric current from handle voltage input circuit 3 and power supply 4; And compare with the calibration value of storage in advance,, real time data just stops drive motors when reaching calibration value, can effectively prevent to damage battery and the speed of a motor vehicle is too fast.
As shown in Figure 2; In the present embodiment; Controller 1 has power input 11 and 12, is connected to the both positive and negative polarity of power supply 4, and said power supply 4 provides voltage input signal and current input signal for controller 1; Power supply 4 is the power supply of motor (not shown) simultaneously, and said power supply 4 is electric bike battery.Said controller comprises having known configurations supply voltage sample circuit and source current sample circuit (not shown); Said supply voltage sample circuit and source current sample circuit all are electrically connected to power input 11 and 12, receive said power source voltage input signal and current input signal.Said controller 1 also comprises controller microprocessor 14, said supply voltage sample circuit with the step-down of said power source voltage input signal, filtering after, be input to said controller microprocessor 14; Said source current sample circuit is input to said controller microprocessor 14 after the current input signal of said power supply is amplified, changes.Said controller microprocessor also comprises parameter signalization input.
Said controller also has handle voltage input end 13 and the handle voltage sampling circuit (not shown) with known configurations; Said handle voltage input end 13 provides the handle voltage input signal of simulation for said handle voltage sampling circuit; The handle voltage sampling circuit with the filtering of said handle voltage input signal after, be input to said controller microprocessor 14.
Said parameter setting circuit for DC brushless motor controller also comprises handle voltage input circuit 3; Comprise the 11 resistance R 11 and the 4th capacitor C 4 that are connected in parallel; One end of this parallel circuits is electrically connected to the input 31 of said handle voltage input circuit 3, other end ground connection through the tenth resistance R 10; Voltage signal between this parallel circuits and said the tenth resistance R 10 is the output of said handle voltage input circuit 3, is electrically connected with the handle voltage input end 13 of said controller 1, for said controller 1 provides the handle voltage input signal.In the present embodiment; When handle voltage calibration value is set; Input 31 external regulated power supplies of handle voltage input circuit 3, during the real time data of handle voltage, this input 31 is received on the handle voltage output line of electric bicycle when gathering electric bicycle and go.
Device 2 is set comprises device microprocessor 24 and the button portion 22 of being provided with, said button portion 22 has the push button signalling output, and said push button signalling output is electrically connected to the said push button signalling input that device microprocessor 24 is set, output key signal.Device microprocessor 24 is set has parameter signalization output 248, corresponding, controller microprocessor 14 has parameter signalization input 142, and both are electrically connected; The said device microprocessor 24 of being provided with receives said push button signalling, then through parameter signalization output 248 to controller microprocessor 14 output parameter signalizations, control said controller microprocessor 14 and carry out the parameter setting.
In the present embodiment; Said button portion 22 comprises three buttons; Be respectively that under-voltage value is provided with button 221, button 222 is set cut-off current and the handle magnitude of voltage is provided with button 223, be respectively applied for the calibration value of running parameters such as under-voltage value, cut-off current and handle magnitude of voltage are set.Above-mentioned three buttons have identical structure, and with under-voltage value button 221 being set is that example describes.Under-voltage value is provided with button 221 and comprises first K switch 1 and first capacitor C 1 that is connected in parallel; One end, one branch road of parallel circuits is electrically connected to the said first push button signalling input 241 that device microprocessor 24 is set through the 4th resistance R 4; Another branch road is electrically connected to through the 6th resistance R 6 device Input voltage terminal 21 is set, and said under-voltage value is provided with the other end ground connection of button 221.Same, said flow valuve is provided with button 222 and with the handle magnitude of voltage button 223 is set and is electrically connected to the said second push button signalling input 242 and the 3rd push button signalling input 243 that device microprocessor 24 is set respectively.In the present embodiment, the said Input voltage terminal 21 input+5V voltages that device 2 is set.
Said controller microprocessor 14 comprises that also parameter is provided with completion signal output part 141, and said parameter is provided with completion signal output part 141 and to device microprocessor 24 output parameters are set the completion signal is set; Device microprocessor 24 is set is provided with relevant parameters and is provided with and accomplishes signal input part 247, said parameter be provided with accomplish signal input part 247 receive said parameter be provided with accomplish signal after, by the index signal output output index signal that device microprocessor 24 is set.The said device 2 that is provided with comprises that also parameter is provided with indicating circuit 23, and said parameter is provided with indicating circuit 23 and is connected electrically in the index signal output that device microprocessor 24 is set, and receives the index signal of this output output.In the present embodiment; Said parameter is provided with indicating circuit 23 and comprises three indicating circuits; Be respectively under-voltage value and be provided with and accomplish indicating circuit 231, cut-off current and be provided with and accomplish indicating circuit 232 and handle magnitude of voltage and be provided with and accomplish indicating circuit 233, whether the calibration value that is respectively applied for running parameters such as indication aforesaid under-voltage value, cut-off current and handle magnitude of voltage is provided with completion.Above-mentioned three indicating circuits have identical structure, with under-voltage value completion indicating circuit 231 are set and describe.Under-voltage value is provided with completion indicating circuit 231 and comprises the first diode D1 and first resistance R 1 that is connected in series; One end of this series circuit is electrically connected to device Input voltage terminal 21 is set, and the other end is electrically connected to the said first index signal output 244 that device microprocessor 24 is set.Same, cut-off current is provided with to be accomplished indicating circuit 232 and handle magnitude of voltage and is provided with and accomplishes indicating circuit 233 and be electrically connected with the second index signal output 245, the 3rd index signal output 246 that device microprocessor 24 is set respectively.In the present embodiment, said diode is light-emitting diode (LED).
The effect that parameter is provided with indicating circuit 23 is; After controller microprocessor 14 is accomplished the storage of parametric calibration value; To device microprocessor 24 output parameters are set the completion signal is set; Device microprocessor 24 is set receives the back, control said LED and light, thereby operating personnel are known be provided with the completion of action by index signal output output index signal.
In the present embodiment, said controller microprocessor 14 with device microprocessor 24 preferred single-chip microcomputers are set.Number of keys in the said button portion 22, the quantity that indicating circuit in the indicating circuit 23 is set with parameter is corresponding, and is as the criterion with the number of parameters of actual needs setting, can be provided with one or morely, is set to three in the present embodiment.
The effect of parameter setting circuit for DC brushless motor controller provided by the invention is; Before electric bicycle dispatches from the factory; Through the said device 2 that is provided with, set gradually the calibration value of the running parameters such as under-voltage value, cut-off current and handle magnitude of voltage of power supply, and calibration value is saved in the controller in 1.When being provided with; K switch 1, K2 and the K3 in each button in the portion 22 that push button respectively gives device microprocessor 24 to be set a triggering signal is provided, and device microprocessor 24 is set communicates by letter with controller microprocessor 14 through serial ports; The corresponding calibration value of " notice " controller 1 storage; After controller 1 was accomplished storage, " notice " was provided with device microprocessor 24 and goes to indicate corresponding parameters that diode in the indicating circuit 23 is set to light or glimmer, promptly accomplished the relevant parameters setting again.When the user rides electric bicycle; Do not use device 2 is set; Only controller 1, handle voltage input circuit 3 and power supply 4 work, controller 1 is gathered the parameter values such as operating voltage, electric current and handle magnitude of voltage of power supply 4 in real time, and compares with each calibration value; When the real-time parameter value reaches calibration value, just stop drive motors, can effectively prevent to damage battery and the speed of a motor vehicle is too fast.
Through embodiment, further describe each parameter setting up procedure of parameter setting circuit for DC brushless motor controller provided by the invention below.
Under-voltage calibration value at first being set, regulating power supply 4, make controller 1 be operated in under-voltage condition, for example is the power supply of 48V for operating voltage, and this under-voltage calibration value can be set to 41.5V ± 1V, preferred 41.5V; Press under-voltage value first K switch 1 in the button 221 is set; Make the 6th resistance R 6 ground connection; Through the 4th resistance R 4, through the first push button signalling input 241 to device microprocessor 24 inputs one low level signal is set; Device microprocessor 24 is set through parameter signalization output 248 output parameter signalizations, controls the under-voltage value parameter of 14 pairs of Set For Currents of said controller microprocessor and store, this stored parameter is under-voltage calibration value; After storage is accomplished; Controller microprocessor 14 is provided with through parameter and accomplishes signal output part 141; To device microprocessor 24 output parameters are set the completion signal is set, after device microprocessor 24 is set receives, by the first index signal output, 244 output low levels; Under-voltage value is provided with the LEDD1 that accomplishes in the indicating circuit 231 lights (or flicker), under-voltage calibration value is provided with completion.
Next the current limliting calibration value is set, regulates power supply 4, make its normal power supply (is 48V as voltage is set); Regulate electric bicycle handle (not shown); Controller 1 control motor is rotated under a fixed load, and its operating current is increased, after the current value that shows on the power supply 4 is for the current limliting calibration value of regulation (like 20A); Press cut-off current the second switch K2 in the button 222 is set; Make the 7th resistance R 7 ground connection, through the 8th resistance R 8, through the second push button signalling input 242 to device microprocessor 24 inputs one low level signal is set, device microprocessor 24 is set through parameter signalization output 248 output parameter signalizations; Control the cut-off current parameter of 14 pairs of Set For Currents of said controller microprocessor and store, this stored parameter is the current limliting calibration value; After storage is accomplished; Controller microprocessor 14 is provided with through parameter and accomplishes signal output part 141; To device microprocessor 24 output parameters are set the completion signal is set, after device microprocessor 24 is set receives, by the second index signal output, 245 output low levels; Cut-off current is provided with the LEDD2 that accomplishes in the indicating circuit 232 lights (or flicker), the current limliting calibration value is provided with completion.
Handle voltage calibration value is set at last, and this moment is the input 31 external regulated power supplies of handle voltage input circuit 3, with the voltage-regulation of regulated power supply to a certain magnitude of voltage; Be preferably+5V; After resistance R 10, R11 dividing potential drop and capacitor C 4 filtering, obtain handle voltage calibration value, like 3.75V.This process is a driving phenomenon that is virtually reality like reality, and when promptly the handle ground wire broke off, handle voltage can rise, and when rising to above 3.75V, controller is promptly realized the driving protection, breaks off the driving to motor, prevents accident.Then; Press the handle magnitude of voltage the 3rd K switch 3 in the button 223 is set; Make the 5th resistance R 5 ground connection, through the 9th resistance R 9, through the 3rd push button signalling input 243 to device microprocessor 24 inputs one low level signal is set, device microprocessor 24 is set through parameter signalization output 248 output parameter signalizations; Control the handle magnitude of voltage parameter of 14 pairs of Set For Currents of said controller microprocessor and store, this stored parameter is handle voltage calibration value; After storage is accomplished; Controller microprocessor 14 is provided with through parameter and accomplishes signal output part 141; To device microprocessor 24 output parameters are set the completion signal is set, after device microprocessor 24 is set receives, by its 3rd index signal output 246 output low levels; The handle magnitude of voltage is provided with the LED D3 that accomplishes in the indicating circuit 233 lights (or flicker), handle voltage calibration value is provided with completion.
Thus, under-voltage, current limliting and handle voltage calibration value are provided with completion.In above-mentioned setting up procedure; Switch in the portion that pushes button 22 is disclosed in the present embodiment, to the mode that device microprocessor 24 inputs one low level signal is set; And then make and device microprocessor 24 is set through the output parameter signalization, control the calibration value of controller microprocessor 14 storage Set For Currents; But be not limited thereto; Push button switch in the portion 22 also can be a high level signal to what 24 inputs of device microprocessor were set, and this depends primarily on the level state of last time when pressing switch; As long as have actuation of keys to take place, promptly can realize control to the calibration value storage.In addition, present embodiment provides, and order is set is to set gradually under-voltage, current limliting and handle voltage calibration value, but is not limited thereto, and one of them calibration value can be set, or carry out the setting of above-mentioned calibration value with random order.
When electric bicycle went, it is inoperative that device 2 is set, only controller 1, handle voltage input circuit 3 and power supply 4 work, and the input 31 of handle voltage input circuit 3 is electrically connected on the handle voltage output line of electric bicycle at this moment.Controller 1 is gathered the parameter values such as voltage, electric current and handle magnitude of voltage of power supply 4 in real time, and compares with each calibration value, when the real-time parameter value reaches calibration value, just stops drive motors, can effectively prevent to damage battery and the speed of a motor vehicle is too fast.
Compared with prior art; The present invention has the following advantages: through pressing the switch in the button portion; Make device output parameter signalization is set, control said controller the calibration value parameter is stored, can carry out the setting of under-voltage, current limliting and handle voltage calibration value successively the Different control device; Write data when being employed in burning program when having avoided the above-mentioned parameter calibration value is set in the prior art; Because the difference of hardware environment makes above-mentioned several parameter indexs can not satisfy the demand of different controllers simultaneously, needs the artificial trouble that hardware is adjusted again.Parameter setting circuit provided by the invention can be provided with several important parameters such as under-voltage, current limliting and handle voltage accurately, and is very simple and practical.