CN109557845A - A kind of parameter setter based on wireless telecommunications - Google Patents

A kind of parameter setter based on wireless telecommunications Download PDF

Info

Publication number
CN109557845A
CN109557845A CN201811371339.7A CN201811371339A CN109557845A CN 109557845 A CN109557845 A CN 109557845A CN 201811371339 A CN201811371339 A CN 201811371339A CN 109557845 A CN109557845 A CN 109557845A
Authority
CN
China
Prior art keywords
chip microcontroller
wireless telecommunications
bluetooth
bluetooth module
parameter setter
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
CN201811371339.7A
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.)
Anhui University
Original Assignee
Anhui 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 Anhui University filed Critical Anhui University
Priority to CN201811371339.7A priority Critical patent/CN109557845A/en
Publication of CN109557845A publication Critical patent/CN109557845A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0426Programming the control sequence

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of parameter setters based on wireless telecommunications, including single-chip microcontroller, 12864 liquid crystal displays, 4*4 matrix keyboard, HC-05 bluetooth module and the Bluetooth AP P for being mounted on mobile phone, the model STC89C52RC of the single-chip microcontroller, and the output end of the input terminal of the single-chip microcontroller and HC-05 bluetooth module is electrically connected, the input terminal of the output end of the single-chip microcontroller and 12864 liquid crystal displays is electrically connected, the single-chip microcontroller and the two-way electric connection of 4*4 matrix keyboard, the Bluetooth AP P and HC-05 bluetooth module pass through wireless connection.The operation interface of present invention APP on mobile phone carries out setup parameter, mobile phone sends the data to single-chip microcontroller by included Bluetooth function, single-chip microcontroller carries out parsing to data after receiving data and will be in processing result real-time display to 12864 liquid crystal displays, to realize the fast setting to parameter, efficient quick.

Description

A kind of parameter setter based on wireless telecommunications
Technical field
The present invention relates to a kind of parameter setter, specially a kind of parameter setter based on wireless telecommunications.
Background technique
In controller design, needs to be programmed control logic chip unit and parameter is modified.It is compiled used at present Journey equipment provides for official, chip production manufacturer, and function and purposes are used only in research and development experimenter.Now with electronic Bicycle terminal client is for function and rides and feels diversified demand, based on controller need to accomplish timely online programmable and Parameter is modified to have met terminal client DIY, carries out parameter setting by wireless telecommunications, and the mode of traditional setup parameter is Wired connection is used, so that the parameters to controller are set, for being applicable in different use environments, but it is efficiently Property is to be improved with convenience.
Summary of the invention
The purpose of the present invention is to provide a kind of parameter setters based on wireless telecommunications, to solve in above-mentioned background technique The problem of proposition.
To achieve the above object, the invention provides the following technical scheme: a kind of parameter setter based on wireless telecommunications, packet Include single-chip microcontroller, 12864 liquid crystal displays, 4*4 matrix keyboard, HC-05 bluetooth module and the Bluetooth AP P for being mounted on mobile phone, institute The model STC89C52RC of single-chip microcontroller is stated, and the input terminal of the single-chip microcontroller and the output end of HC-05 bluetooth module electrically connect It connects, the input terminal of the output end of the single-chip microcontroller and 12864 liquid crystal displays is electrically connected, the single-chip microcontroller and 4*4 matrix key The two-way electric connection of disk, the Bluetooth AP P and HC-05 bluetooth module pass through wireless connection.
Preferably, the clock circuit of the single-chip microcontroller, the oscillating circuit of the clock circuit using internal oscillator mode, And crystal oscillator is 11.0592MHz.
Preferably, it is generated on the RESET pin of the single-chip microcontroller and keeps 24 oscillation pulse periods (2 clock cycle) Above high level inputs the positive pulse reset signal that pulsewidth is more than 2 clock cycle that is, on RESET pin.
Preferably, the parallel port mode that 12864 liquid crystal display uses, is selected by PSB pin, sets 1 as simultaneously Row, set 0 be it is serial, directlyed adopt the P0 of STC89C52RC 8 I/O ports drive.
Preferably, the HC-05 bluetooth module and single-chip microcontroller need interconnection, i.e. the TXD of bluetooth module connects single-chip microcontroller The RXD of RXDP30, bluetooth module meet the TXDP31 of single-chip microcontroller.
Preferably, the first row of the 4*4 matrix keyboard, which links together one end of each key, constitutes line, and first Column, which link together the other end of each key, constitutes alignment, therefore total 4 rows 4 arrange totally 8 lines, by this 8 lines and single-chip microcontroller 8 I/O ports connection.
Preferably, the 4*4 matrix keyboard is by the way of software for jitters elimination for preventing keyboard from shaking.
Compared with prior art, the beneficial effects of the present invention are:
1, by the way that the Bluetooth AP P on mobile phone to be connect with HC-05 bluetooth module, the operation interface on mobile phone is set the present invention Determine parameter, mobile phone sends the data to single-chip microcontroller by included Bluetooth function, and single-chip microcontroller carries out data after receiving data It parses and by processing result real-time display to 12864 liquid crystal displays, thus realize the fast setting to parameter, it is efficiently fast It is prompt.
2, by the present invention in that with 4*4 matrix keyboard, the use of I/O port in single-chip microcontroller can be effectively reduced, is used simultaneously The mode of software for jitters elimination after judging by key pressing, goes to judge key again for preventing keyboard from shaking after waiting a bit of time Whether it is pressed, if so, being really to be pressed, is otherwise then considered as shake, it is ensured that device integrally used.
Detailed description of the invention
Fig. 1 is a kind of parameter setter functional block diagram based on wireless telecommunications of the present invention;
Fig. 2 is a kind of systematic schematic diagram of the parameter setter based on wireless telecommunications of the present invention;
Fig. 3 is a kind of pinouts of the single-chip microcontroller of the parameter setter based on wireless telecommunications of the present invention;
Fig. 4 is a kind of line graph of parameter setter 12864 liquid crystal display and single-chip microcontroller based on wireless telecommunications of the present invention;
Fig. 5 is a kind of 4*4 matrix keyboard schematic diagram of the parameter setter based on wireless telecommunications of the present invention;
Fig. 6 is a kind of HC-05 bluetooth module schematic diagram of the parameter setter based on wireless telecommunications of the present invention.
In figure: 1- single-chip microcontroller;2-12864 liquid crystal display;3-4*4 matrix keyboard;4-HC-05 bluetooth module;5- bluetooth APP。
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Fig. 1-6 is please referred to, the present invention provides a kind of technical solution: a kind of parameter setter based on wireless telecommunications, including Single-chip microcontroller 1,12864 liquid crystal displays 2,4*4 matrix keyboard 3, HC-05 bluetooth module 4 and the Bluetooth AP P5 for being mounted on mobile phone, The model STC89C52RC of the single-chip microcontroller 1, and the output end of the input terminal of the single-chip microcontroller 1 and HC-05 bluetooth module 4 electricity Property connection, the input terminal electric connection of the output end of the single-chip microcontroller 1 and 12864 liquid crystal displays 2, the single-chip microcontroller 1 and 4*4 The two-way electric connection of matrix keyboard 3, the Bluetooth AP P5 and HC-05 bluetooth module 4 pass through wireless connection.
The clock circuit of the single-chip microcontroller 1, the oscillating circuit of the clock circuit is using internal oscillator mode, and crystal oscillator Mistake will be generated when effectively avoiding communication so as to accurately calculate the initial value of T1 timer for 11.0592MHz The phenomenon that difference simultaneously accumulates it, and then bit rate generates mistake, influences the net synchronization capability of serial communication.
It is generated on the RESET pin of the single-chip microcontroller 1 and keeps the height more than clock cycle of 24 oscillation pulse periods 2 Level inputs the positive pulse reset signal that pulsewidth is more than 2 clock cycle, according to the pin of single-chip microcontroller 1 that is, on RESET pin Position, it is effective to guarantee that single-chip microcontroller 1 active homing.
The parallel port mode that 12864 liquid crystal display 2 uses, is selected by PSB pin, set 1 be it is parallel, set 0 Then be it is serial, directlyed adopt the P0 of STC89C52RC 8 I/O ports driving, can show 4 rows 8 arrange amount to 32 Chinese characters, together When, 12864 included character libraries eliminate the operation using Zemo modulus.
The HC-05 bluetooth module 4 needs interconnection with single-chip microcontroller 1, i.e. the TXD of bluetooth module connects single-chip microcontroller 1 RXDP30, the RXD of bluetooth module meet the TXDP31 of single-chip microcontroller 1.
The first row of the 4*4 matrix keyboard 3, which links together one end of each key, constitutes line, and first row will be every The other end of a key, which links together, constitutes alignment, therefore total 4 rows 4 arrange totally 8 lines, by this 8 lines and 8 of single-chip microcontroller 1 I/O port connection when detection, is first classified as low level for first by detecting whether electrical level judging key is pressed, remaining is classified as high electricity Flat, once whether each row has low level to Polling immediately after, if detecting, certain a line has low level, can determine column Number, therefore obtaining is that the keys of which which column is pressed, so as to effectively reduce the use of I/O port.
The 4*4 matrix keyboard 3 is used to prevent keyboard from shaking by the way of software for jitters elimination, after judging by key pressing, It goes to judge whether key is pressed again after waiting a bit of time, if so, being really to be pressed, is otherwise then considered as shake.
Working principle: before the use, function sets are carried out for all parts, 4*4 matrix keyboard 3 carries out setting four Detection function, respectively jiance1 (), jiance2 (), jiance3 () and jiance4 (), respectively correspond detection the first row, Second row, the third line and fourth line, and only read_ is just jumped out after changing the value of Keybord_value by key pressing Keybord () function transfers to execute following sentence.
The written in code of HC-05 bluetooth module 4 has been related to register configuration and interrupt processing, before bluetooth, I Need to initialize serial ports, configuration TMOD enables timer 1 as bit rate generator and being total to work in mode 2, then TH1 and TL1 initial value is assigned, is 0xfd, then opening to interrupt allows, even TR1=1, reconfiguration SCON is 0x50, represents serial ports Work is finally exactly out interruption and allows for, including REN, EA and ES, be to calculate in this way about TH1=TL1=0xfd in mode 1 : it is that the flood rate of T1 is exactly its inverse that timer, which overflows the primary time, and the bit rate of mode one is, here SMOD=0, Therefore 2SMOD=1, it is obtained after known number is substituted into formula, solves X=253, corresponding hexadecimal is 0xfd, is being initialized After serial ports, receives character and handled by interrupt function.Once there is character to send, the interruption of the interruption default of serial ports will be triggered Serial number 4 will enter interrupt processing function.In the interrupt handling function, the character string received is stored in by I In Bluetooth_Data array, and setting reception character denotation position is 1, and such single-chip microcontroller 1 can basis in major cycle This flag bit is 1 parse to the character received.
In use, it is connect by Bluetooth AP P5 with HC-05 bluetooth module 4, the operation interface on mobile phone carries out Setup parameter, mobile phone send the data to single-chip microcontroller 1 by included Bluetooth function, and single-chip microcontroller 1 receives after data to data Carry out parsing and will be in processing result real-time display to 12864 liquid crystal displays 2.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.
It although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with A variety of variations, modification, replacement can be carried out to these embodiments without departing from the principles and spirit of the present invention by understanding And modification, the scope of the present invention is defined by the appended.

Claims (7)

1. a kind of parameter setter based on wireless telecommunications, including single-chip microcontroller (1), 12864 liquid crystal displays (2), 4*4 matrix key Disk (3), HC-05 bluetooth module (4) and the Bluetooth AP P(5 for being mounted on mobile phone), it is characterised in that: the type of the single-chip microcontroller (1) It number is STC89C52RC, and the output end of the input terminal of the single-chip microcontroller (1) and HC-05 bluetooth module (4) is electrically connected, it is described The output end of single-chip microcontroller (1) and the input terminal of 12864 liquid crystal displays (2) are electrically connected, the single-chip microcontroller (1) and 4*4 matrix Keyboard (3) two-way electric connection, the Bluetooth AP P(5) with HC-05 bluetooth module (4) pass through wireless connection.
2. a kind of parameter setter based on wireless telecommunications according to claim 1, it is characterised in that: the single-chip microcontroller (1) clock circuit, the oscillating circuit of the clock circuit is using internal oscillator mode, and crystal oscillator is 11.0592MHz.
3. a kind of parameter setter based on wireless telecommunications according to claim 1, it is characterised in that: the single-chip microcontroller (1) high level that 24 oscillation pulse periods (2 clock cycle) or more is generated and kept on RESET pin, i.e., in RESET The positive pulse reset signal that pulsewidth is more than 2 clock cycle is inputted on pin.
4. a kind of parameter setter based on wireless telecommunications according to claim 1, it is characterised in that: 12864 liquid Crystal display screen (2) use parallel port mode, selected by PSB pin, set 1 be it is parallel, set 0 be it is serial, directly adopt 8 I/O ports driving of the P0 of STC89C52RC.
5. a kind of parameter setter based on wireless telecommunications according to claim 1, it is characterised in that: the HC-05 is blue Tooth module (4) and single-chip microcontroller (1) need interconnection, i.e. the TXD of bluetooth module meets the RXDP30 of single-chip microcontroller (1), bluetooth module RXD meets the TXDP31 of single-chip microcontroller (1).
6. a kind of parameter setter based on wireless telecommunications according to claim 1, it is characterised in that: the 4*4 matrix The first row of keyboard (3), which links together one end of each key, constitutes line, and first row connects the other end of each key It is connected together and constitutes alignment, therefore total 4 rows 4 arrange totally 8 lines, this 8 lines are connect with 8 I/O ports of single-chip microcontroller (1).
7. a kind of parameter setter based on wireless telecommunications according to claim 1, it is characterised in that: the 4*4 matrix Keyboard (3) is by the way of software for jitters elimination for preventing keyboard from shaking.
CN201811371339.7A 2018-11-18 2018-11-18 A kind of parameter setter based on wireless telecommunications Pending CN109557845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811371339.7A CN109557845A (en) 2018-11-18 2018-11-18 A kind of parameter setter based on wireless telecommunications

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811371339.7A CN109557845A (en) 2018-11-18 2018-11-18 A kind of parameter setter based on wireless telecommunications

Publications (1)

Publication Number Publication Date
CN109557845A true CN109557845A (en) 2019-04-02

Family

ID=65866452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811371339.7A Pending CN109557845A (en) 2018-11-18 2018-11-18 A kind of parameter setter based on wireless telecommunications

Country Status (1)

Country Link
CN (1) CN109557845A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE202015100049U1 (en) * 2015-01-08 2015-02-23 Kit Ping Jacky Kwok An electronic clock with Bluetooth time correction function
CN104617826A (en) * 2014-12-10 2015-05-13 黑龙江真美广播通讯器材有限公司 USS protocol based multi-motor synchronous and variable frequency type speed regulating control system
CN204360319U (en) * 2015-01-08 2015-05-27 安徽建筑大学 A kind of key-press input display system
CN204925670U (en) * 2015-09-06 2015-12-30 马鞍山市安工大工业技术研究院有限公司 Intelligence household electrical appliances control system based on singlechip and bluetooth of mobile phone communication
CN206249740U (en) * 2016-11-14 2017-06-13 湖北师范大学 A kind of development board for single chip computer teaching based on wireless communication technique
CN107121582A (en) * 2017-05-22 2017-09-01 安徽师范大学 One kind coordinates bluetooth module movement oscillograph based on smart mobile phone APP
CN107346609A (en) * 2017-08-26 2017-11-14 郑州大学 A kind of cell phone intelligent sensing identification traffic signal system based on Bluetooth technology
CN207625577U (en) * 2017-09-25 2018-07-17 广州大学 Radio transmission control system based on bluetooth
CN208076972U (en) * 2018-04-10 2018-11-09 西安科技大学 A kind of SCM Based step signal generator

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104617826A (en) * 2014-12-10 2015-05-13 黑龙江真美广播通讯器材有限公司 USS protocol based multi-motor synchronous and variable frequency type speed regulating control system
DE202015100049U1 (en) * 2015-01-08 2015-02-23 Kit Ping Jacky Kwok An electronic clock with Bluetooth time correction function
CN204360319U (en) * 2015-01-08 2015-05-27 安徽建筑大学 A kind of key-press input display system
CN204925670U (en) * 2015-09-06 2015-12-30 马鞍山市安工大工业技术研究院有限公司 Intelligence household electrical appliances control system based on singlechip and bluetooth of mobile phone communication
CN206249740U (en) * 2016-11-14 2017-06-13 湖北师范大学 A kind of development board for single chip computer teaching based on wireless communication technique
CN107121582A (en) * 2017-05-22 2017-09-01 安徽师范大学 One kind coordinates bluetooth module movement oscillograph based on smart mobile phone APP
CN107346609A (en) * 2017-08-26 2017-11-14 郑州大学 A kind of cell phone intelligent sensing identification traffic signal system based on Bluetooth technology
CN207625577U (en) * 2017-09-25 2018-07-17 广州大学 Radio transmission control system based on bluetooth
CN208076972U (en) * 2018-04-10 2018-11-09 西安科技大学 A kind of SCM Based step signal generator

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄忠明;林丽;黄凤良;: "LED屏信息在线修改系统设计", 液晶与显示, no. 09, pages 721 - 725 *

Similar Documents

Publication Publication Date Title
CN101213535B (en) Dynamic i2c slave device address decoder
CN103345885B (en) The collocation method of casing trace configurations method and device and spliced display screen
CN204463260U (en) A kind of based on Bluetooth technology controlled in wireless electronic password lock
CN102768819B (en) OLED (organic light emitting diode) real-time display driving control system and control method thereof
CN102279827A (en) Multifunctional communication transit box
CN102324210A (en) Apparatus and method via single IC package pins control LED and touch sensing element
CN103868421B (en) A kind of method showing electric detonator positional information on main control system screen
CN102143606A (en) Wireless sensor network gateway for farmland information acquisition
CN101217422B (en) A method to test the performance of net mouth
CN107479940A (en) A kind of method and device for realizing Internet of Things module
CN105355165A (en) Display screen drive circuit, television set and display device
CN109557845A (en) A kind of parameter setter based on wireless telecommunications
CN102866873A (en) Method for detecting state of seat with computer
CN103226531B (en) A kind of dual-port peripheral configuration interface circuit
CN2904109Y (en) Pocket 51 series single chip machine simulator
CN105207810A (en) Control method and system of switch, and switch having system
CN106354611A (en) Monitoring device of terminal network state
CN208836429U (en) Circuit and equipment
CN102622963B (en) Simple and universal full-hardware control system of display screen
CN211578118U (en) Real standard platform of embedded singlechip teaching of cloud micro-control
CN201616911U (en) Statistics indicating device for network flow in wireless data card
CN211742102U (en) Communication circuit with display keyboard and host terminal
Foster Xbee cookbook issue 1.4 for series 1 (freescale) with 802.15. 4 firmware
CN103324101A (en) Profinet-based control panel with expanded input and output
CN105321220A (en) Small-range bluetooth terminal counter and counting method thereof

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

Application publication date: 20190402

WD01 Invention patent application deemed withdrawn after publication