Summary of the invention
The deficiency that purpose of the present invention has line traffic control to exist in order to overcome existing supersonic motor provides a kind of supersonic motor remote controller.This remote controller can be controlled many supersonic motor forwards, counter-rotating and stalls and possess simultaneously the characteristics such as volume is small and exquisite, low in energy consumption.
The present invention is by the following technical solutions:
a kind of supersonic motor remote controller, , comprise electric power management circuit, keyboard circuit, liquid crystal chip, usb circuit, the voltage conversion circuit, radio frequency chip, main control chip, the keyboard circuit output pin is connected with the main control chip input pin, main control chip is connected with radio frequency chip with usb circuit respectively and is connected, the main control chip output pin is connected with voltage conversion circuit input pin with the electric power management circuit input pin respectively, voltage conversion circuit output pin is connected with the liquid crystal chip input pin with the electric power management circuit output pin and is connected, electric power management circuit is connected connection with the voltage conversion circuit.
Further, described main control chip is MSP430F2232.
Further, described radio frequency chip is CC2500.
Further, the wireless module of radio frequency chip CC2500 is LSRF2400A12.
Further, described electric power management circuit comprises that triode, MOSFET-P, voltage transform chip, and triode is connected chip and is connected with MOSFET-P respectively with voltage.
Further, described voltage conversion chip is SP6641BEK-5.0.
Further, adopt No. 5 batteries of two joints to the power supply of supersonic motor remote controller, No. 5 batteries of described two joints are mainly powered to main control chip as primary power source, then pass through electric power management circuit to the 5V power devices.
Further, seven buttons are arranged in described keyboard circuit, be respectively mode key, address key, upwarding key, down Arrow, operation key, stop acknowledgement key and initial key.
Beneficial effect of the present invention: the present invention utilizes main control chip to come supervisory keyboard, liquid crystal display and wireless receiving and dispatching, close friend on liquid crystal shows its content and sends this order to the supersonic motor controller by wireless module according to the key assignments that reads, and finally completes the control to supersonic motor.Thereby the layout advantages of simple of hardware makes the volume of whole remote controller small and exquisite, low in energy consumption.The present invention finally can accomplish successfully to set up wireless network and also accurately control the motion of supersonic motor.Overcome in the situation that some inconveniences or the employing wired mode that do not allow to connect up are controlled comparatively hard problem of supersonic motor, enlarged the application of supersonic motor.
Embodiment:
Below in conjunction with accompanying drawing, the present invention is done further and explain.
Main element in each schematic diagram of the present invention is:
MCU(MSP430F2232) main control chip
LCD(YJ-802A) liquid crystal chip
LSDRF2400A12(CC2500) radio frequency chip
U1(SP6641BEK-5.0) voltage transforms chip
Q1 metal half field effect transistor MOSFET-P
The Q2 triode
The S1 address key
The S2 mode key
The S3 upwarding key
S4 stops acknowledgement key
The S5 down Arrow
S6 moves key
The S7 initial key
The USB USB interface
As shown in Figure 1, supersonic motor mainly comprises electric power management circuit, keyboard circuit, liquid crystal chip, usb circuit, voltage conversion circuit, radio frequency chip, main control chip.Main control chip is MSP430F2232, and radio frequency chip is CC2500.
As shown in Figure 2, seven LCD LCD display output pin of main control chip of the present invention, its pin 38,37,36,35,34,33,32 connect respectively seven LCD liquid crystal display input pins of voltage conversion circuit.The pin 1,7 of main control chip connects respectively the pin 2 and 3 of usb circuit.The output pin 28 of main control chip connects the input pin of electric power management circuit.The pin 11 of main control chip connects the chip selection signal of radio frequency chip.The pin signal 12,13 of main control chip, 14 connects three road signals of radio frequency chip SPI interface.The input pin 9 of main control chip, 10 connects the output pin 6,7 of radio frequency chip.Seven keyboard input pins 23 of main control chip, 22,21,20,19,18,17 connect seven output pins of keyboard circuit.
The operating voltage of main control chip is different with the operating voltage of liquid crystal chip, in order to make the liquid crystal operating state more stable, has added the voltage conversion circuit between the two.As shown in Figure 3, three of the voltage conversion circuit output pins 15,16,17 connect respectively three input pins 6,5,4 of liquid crystal chip.Four road signals 18,19,20,21 of voltage conversion circuit connect the high four figures number of it is believed that of liquid crystal chip successively.
As shown in Figure 4, the output pin of electric power management circuit connects the power supply input pin of liquid crystal chip and the power supply input pin of voltage conversion circuit, the 5V voltage when liquid crystal chip work is provided.Electric power management circuit is is mainly connected and composed by resistance, electric capacity and the inductance of triode Q2, MOSFET-PQ1, voltage conversion chip SP6641BEK-5.0 and some other necessity.Power supply of the present invention is the battery supply supply system that No. 5 batteries of two joints form.Two batteries are mainly powered to main control chip as primary power source, and then through the power devices of electric power management circuit to 5V.Electric power management circuit is mainly 5V with the voltage transitions of pin of main control chip 28 outputs.Main control chip is controlled the state of liquid crystal by the output of controlling this pin.This element of SP6641BEK-5.0 is used for realizing that the voltage with 3V is converted into the 5V that liquid crystal requires; Q2 conducting when pin 28 is high level, thus make the Q1 conducting, finally light liquid crystal through SP6641BEK-5.0.When pin 28 not conducting of Q2 when being low level, liquid crystal is dark.Therefore, design the low-power consumption that state that electric power management circuit independently can make main control chip control better liquid crystal chip is conducive to whole supersonic motor remote controller.
As shown in Figure 5, liquid crystal chip of the present invention adopts the YJ-802A of Hangzhou foresight photoelectricity company, can show two row, 8 characters of every row.Liquid crystal chip is mainly completed the Presentation Function for information, as according to the button situation, and the address of display-object supersonic motor and motor pattern etc.The user can know according to the information content that shows the state of equipment.
As shown in Figure 6, one have seven buttons in keyboard circuit of the present invention.Consist of supervisory keyboard by S1, S2, S3, S4, S5, S6, S7.These seven buttons are respectively mode key, address key, upwarding key, down Arrow, operation key, stop acknowledgement key and initial key.Start enters address choice by address key after entering main menu, then selects by upwarding key or down Arrow, by confirming by stopping acknowledgement key, gets back to again main menu after having confirmed at last.Enter the model selection menu by mode key under main menu, then select by upwarding key or down Arrow, by confirming by stopping acknowledgement key, get back to again main menu after having confirmed at last.After the address and pattern of selected supersonic motor, press the operation key, the target supersonic motor will move according to the pattern of setting.If in the process of operation, the user presses and stops acknowledgement key, the target supersonic motor will stop at once.The function of the initial key here is mainly to complete the coupling of new building network logical address and physical address and the initial setting up of pattern.
As shown in Figure 7, USB interface of the present invention comprises four pins 1,2,3,4, pin 4 ground connection wherein, and pin 1 connects the battery supply positive pole, and pin 2 connects the pin 1 of main control chips, and pin 3 connects the pin 7 of main control chips.Adopt USB interface to facilitate writing and debugging of program.
The present invention selects LSDRF2400A12 as the wireless module of radio frequency chip CC2500.This module is not with MCU and PCB antenna, and volume is comparatively small and exquisite.The SPI synchronous serial communication port of this module is connected with main control chip, completes between the two communication by it.Also have in addition two multi-functional pins 6 also to be connected with main control chip with 7.
Major function of the present invention is exactly to order to the supersonic motor controller accordingly according to the key assignments wireless module transmission of button, and the supersonic motor controller is done corresponding control or also issues the corresponding command response of remote controller by the wireless module of himself supersonic motor according to different orders.In addition, the supersonic motor that remote controller is also tackled in network is identified and distributes every address that supersonic motor is different, also wants simultaneously the information of supersonic motor in storage networking.
As shown in Figure 8, the supersonic motor terminal comprises wireless module LSDRF2400A12, main control chip DSP, controlled device supersonic motor.Realize the above basic function of remote controller, at first will make between remote controller and supersonic motor that we will control and set up a wireless network.As shown in Figure 9, wherein AP has represented the remote controller of Centroid effect, and ED represents the supersonic motor terminal.
At first, during the establishment of beginning grid, AP from 1(address, address 0 for broadcast address) begin to inquire whether it is to distribute the address to send the Linked order, if receive that Linked-ACK shows that this address is unavailable, then Asking About The Address 2; If do not receive Linked-ACK in certain hour, illustrate that this address can distribute.Whether have unallocated address ED, as receive that Link-ACK shows existence if next sending the Link command queries, this moment, we can distribute to this ED with address 1, then distributed address 2 until there is no the ED of unallocated address in network.
It is all the ED of unallocated address that supersonic motor controller terminal has just begun.It is in accepting state, after receiving the Linked order, carries out the detection of channel after random delay; The wireless module function choosing-item is set, and whether channel is idle at this moment to observe.Send Link-ACK as the free time, wait for receiving the address that remote controller sends over.Show as channel busy that existing ED has set up with AP prior to it and be connected, continue to wait for Linked order next time.After ED is assigned to the address, just sends Linked-ACK immediately and tell AP that this address takies after receiving the Linked order.
As shown in figure 10, after remote controller is completed whole initial work, just enter the scanning of keyboard.Do not enter low power consumpting state if there is no button close liquid crystal display while main control chip within the regular hour.Again enter keyboard scan as running into interruption during this, otherwise keep low power consumpting state always.After in case button being detected, just enter button routine analyzer update displayed simultaneously, main control chip will be ordered accordingly and be write wireless module and send buffer memory and sent by wireless module if this button operation need to send data, enter keyboard scan after being sent.If this button operation is to the address or the selection of pattern just need not to send data, handle button operation and just directly begin to detect button next time.