Summary of the invention
The object of the invention is for solve lack at present classroom teaching for the problem of not listening to the alarm set of saying student carefully, a kind of classroom seat acousto-optic and vibration information alarm set are provided.
Classroom seat acousto-optic and vibration information alarm set, it comprises host computer and N slave computer, N is less than 256 positive integer, a host computer and N slave computer passes through communicating wireless signals, host computer comprises: PC, host computer wireless communication module, host computer power module of voltage regulation and interface circuit, PC is communicated with host computer wireless communication module by interface circuit, the output terminal of host computer power module of voltage regulation is communicated with the input end of power supply of interface circuit and the input end of the power supply of host computer wireless communication module simultaneously, slave computer comprises: single-chip minimum system, slave computer power module of voltage regulation, vibration warning circuit, illumination warning circuit, sound warning circuit, node address arranges circuit, slave computer wireless communication module, single-chip microcomputer downloader and display screen, the output terminal while of slave computer power module of voltage regulation and the power input of single-chip minimum system, the power input of vibration warning circuit, the power input of illumination warning circuit, the power input of sound warning circuit, node address arranges the power input of circuit, the power input of slave computer wireless communication module, the power input of single-chip microcomputer downloader and the power input of display screen are communicated with, the exchanges data end of slave computer wireless communication module is communicated by letter with host computer wireless communication module by wireless signal, the data output end of slave computer wireless communication module is communicated with the input end of the upper signal of single-chip minimum system, the output terminal of the display of single-chip minimum system is communicated with the input end of the display of display screen, the input end that the sound warning of single-chip minimum system starts the output terminal of control signal and the startup control signal of sound warning circuit is communicated with, the input end that the vibration warning of single-chip minimum system starts the output terminal of control signal and the startup control signal of vibration warning circuit is communicated with, the input end that the illumination warning of single-chip minimum system starts the output terminal of control signal and the startup control signal of illumination warning circuit is communicated with, the input end that node address arranges the output terminal of circuit and the node address signalization of single-chip minimum system is communicated with,
It also comprises host computer interface software and Single Chip Microcomputer (SCM) program, and host computer interface software is stored in the storer of PC, and Single Chip Microcomputer (SCM) program is stored in the storer of single-chip minimum system;
Host computer interface software comprises that concrete steps are: step one by one, by calling forms and control display interface figure; Step 1 two, calls serial ports control and sets up and being connected of serial ports; Step 1 three, judges whether seat button is pressed, and is, performs step one or four; No, perform step one or three; Step 1 four, determines the 1st coordinate at seat; The step First Five-Year Plan, determine the 2nd coordinate at seat; Step 1 six, sends seat coordinate; Step 1 seven, judges whether to continue, and is to perform step one or three; No, finish;
Single Chip Microcomputer (SCM) program comprises that concrete steps are: step 2 one, single-chip microcomputer initialization; Step 2 two, wireless communication module initialization; Step 2 three, has judged whether wireless transmission base bit data, is, performs step two or four, no, performs step two or three; Step 2 four, gives the corresponding I/O terminal output of sound high level; Step 2 five, gives the corresponding I/O terminal output of vibration high level; Step 2 six, gives luminous corresponding I/O terminal output high level; Step 2 seven, judges whether to continue, and is to perform step two or three; No, finish.
In the wrist of the present invention by each the seat student in classroom, a slave computer is set, each is not noticed to the student who pays attention to the class sends separately prompting message.Make the teacher can be when teaching, in the situation that not interrupting teaching content, manual operation host computer completes the prompting message sending for certain student, has guaranteed the continuity of teachers' instruction content and ageing, thereby has improved classroom teaching efficiency and effect.Host computer of the present invention without with slave computer line, the next function is arranged according to classroom flexible in size.
Embodiment
Embodiment one: in conjunction with Fig. 1, Fig. 2, Fig. 3, Figure 13 and Figure 14 illustrate present embodiment, classroom seat acousto-optic and vibration information alarm set described in present embodiment, it comprises host computer 1 and N slave computer 2, N is less than 256 positive integer, host computer 1 passes through communicating wireless signals with N slave computer 2, host computer 1 comprises: PC 1-1, host computer wireless communication module 1-2, host computer power module of voltage regulation 1-3 and interface circuit 1-4, PC 1-1 is communicated with host computer wireless communication module 1-2 by interface circuit 1-4, the output terminal of host computer power module of voltage regulation 1-3 is communicated with the input end of power supply of interface circuit 1-4 and the input end of the power supply of host computer wireless communication module 1-2 simultaneously, slave computer 2 comprises: single-chip minimum system 2-1, slave computer power module of voltage regulation 2-2, vibration warning circuit 2-3, illumination warning circuit 2-4, sound warning circuit 2-5, node address arranges circuit 2-6, slave computer wireless communication module 2-7, single-chip microcomputer downloader 2-8 and display screen 2-9, the output terminal while of slave computer power module of voltage regulation 2-2 and the power input of single-chip minimum system 2-1, the power input of vibration warning circuit 2-3, the power input of illumination warning circuit 2-4, the power input of sound warning circuit 2-5, node address arranges the power input of circuit 2-6, the power input of slave computer wireless communication module 2-7, the power input of single-chip microcomputer downloader 2-8 and the power input of display screen 2-9 are communicated with, the exchanges data end of slave computer wireless communication module 2-7 is communicated by letter with host computer wireless communication module 1-2 by wireless signal, the data output end of slave computer wireless communication module 2-7 is communicated with the input end of the upper signal of single-chip minimum system 2-1, the output terminal of the display of single-chip minimum system 2-1 is communicated with the input end of the display of display screen 2-9, the output terminal that the sound warning of single-chip minimum system 2-1 starts control signal is communicated with the input end of the startup control signal of sound warning circuit 2-5, the output terminal that the vibration warning of single-chip minimum system 2-1 starts control signal is communicated with the input end of the startup control signal of vibration warning circuit 2-3, the output terminal that the illumination warning of single-chip minimum system 2-1 starts control signal is communicated with the input end of the startup control signal of illumination warning circuit 2-4, the input end that node address arranges the output terminal of circuit 2-6 and the node address signalization of single-chip minimum system 2-1 is communicated with,
It also comprises host computer interface software and Single Chip Microcomputer (SCM) program, and host computer interface software is stored in the storer of PC 1-1, and Single Chip Microcomputer (SCM) program is stored in the storer of single-chip minimum system 2-1;
Host computer interface software comprises that concrete steps are: step one by one, by calling forms and control display interface figure; Step 1 two, calls serial ports control and sets up and being connected of serial ports; Step 1 three, judges whether seat button is pressed, and is, performs step one or four; No, perform step one or three; Step 1 four, determines the 1st coordinate at seat; The step First Five-Year Plan, determine the 2nd coordinate at seat; Step 1 six, sends seat coordinate; Step 1 seven, judges whether to continue, and is to perform step one or three; No, finish;
Single Chip Microcomputer (SCM) program comprises that concrete steps are: step 2 one, single-chip microcomputer initialization; Step 2 two, wireless communication module initialization; Step 2 three, has judged whether wireless transmission base bit data, is, performs step two or four, no, performs step two or three; Step 2 four, gives the corresponding I/O terminal output of sound high level; Step 2 five, gives the corresponding I/O terminal output of vibration high level; Step 2 six, gives luminous corresponding I/O terminal output high level; Step 2 seven, judges whether to continue, and is to perform step two or three; No, finish.
Embodiment two: in conjunction with Fig. 3, present embodiment is described, present embodiment is the further restriction to classroom seat acousto-optic and vibration information alarm set described in embodiment one, single-chip minimum system 2-1 adopts ATmega16 to realize.
In slave computer 2 hardware design, single-chip minimum system 2-1 is used ATmega16 single-chip microcomputer.Hardware design adopts opening Design theory, has reserved extensive interface, convenient improving from now on and modernization improvement.
ATmega16 is 8 CMOS microcontrollers of low-power consumption of AVR RISC (reduced instruction set computer) structure based on strengthening.Have advanced instruction set and single clock cycle instruction time, data throughput is large.Chip has abundant instruction set and 32 general purpose working registers simultaneously, has than CISC (sophisticated vocabulary) microcontroller maximum and reaches the data throughput of 10 times.AVR adopts Harvard structure to have independently data bus and program bus, has realized the operation of instruction sheet clock period.
Feature is as follows: have the system programmable Flash of 16K, the SRAM of 1K byte, the EEPROM of 512 bytes.32 universaling I/O port lines, 32 general purpose working registers and jtag interface, detail programming in supporting pieces.There is 10,8 tunnel to there is optional difference input and programmable-gain ADC, 3 timer/comparers (T/C) with comparison pattern, serial USART able to programme, programmable watchdog timer, 1 SPI serial port.Chip adopts high-density nonvolatile memory technology to produce, and in sheet, ISP Flash can adopt ISP serial line interface or programmable device to programme.By 8 RISCCPU and Flash are integrated together, make ATmega16 become a powerful single-chip microcomputer, for many embedded Control application provide flexibly solution cheaply.
ATmega16 minimum system comprises: reset circuit, downloader interface and I/O expansion interface.
In conjunction with Fig. 4 explanation, in design, PA2~PA7 pin is as the pre-expansion interface of sensor, and convenient system schema later improves.
In conjunction with Figure 13, described Single Chip Microcomputer (SCM) program design and construction is described: ATmega16 single-chip microcomputer is slave computer main control chip, its programming realizes with C language, and translation and compiling environment is ICCAVR, by ISP interface downloading wire, the Hex file of program compiler is downloaded in single-chip microcomputer.
After slave computer device power, system initialization, circulation execution parameter gathers and shows, and UART asynchronous serial communication, in waiting for host computer query State, when producing interruption, is passed to host computer by parameter.In program process, mainly comprise system initialization, parameter acquisition, data processing, data transmit-receive.
Embodiment three: present embodiment is described in conjunction with Fig. 3, present embodiment is the further restriction to classroom seat acousto-optic and vibration information alarm set described in embodiment one, slave computer 2 is arranged in each seat student's wrist, and slave computer power module of voltage regulation 2-2 adopts 5V stabilized voltage supply to realize.
The hardware components of whole slave computer 2 adopts 5V Power supply, turns direct current 12V power transformer receive on 5V mu balanced circuit by alternating current 220V.Therefore in mu balanced circuit, use 7805 integrated regulators, maximum output current 1.5A.The required peripheral cell of power supply that forms voltage stabilizing with 7805 three-terminal voltage-stabilizing IC is few, and inner also have overcurrent, overheated and adjust the holding circuit of pipe, and it is reliable, convenient to use, and low price.
In conjunction with Fig. 5, illustrate that circuit theory diagrams are as follows: circuit comprises that 12V--5V voltage stabilizing part and mimic channel, digital circuit power source isolated part design.Front portion J1 connects 12V power supply, and analog digital Power supply below partly connects altogether, between two parts power supply, by inductance, connects, and prevents digital-to-analogue interference.
Embodiment four: present embodiment is described in conjunction with Fig. 3 and Fig. 7, present embodiment is the further restriction to classroom seat acousto-optic and vibration information alarm set described in embodiment one, vibration warning circuit 2-3 comprises direct current motor M, triode, bullion and resistance, the base stage of triode is communicated with the output terminal that the vibration warning of single-chip minimum system 2-1 starts control signal by resistance, motor M is connected between the emitter and power output end of triode, bullion is fixed in the rotating shaft of motor M, the collector connection circuit ground wire of triode, triode adopts 8550 triodes.
Direct current motor armature is driven by 8550 triodes.Motor drives a coaxial bullion while rotating, produce vibration.
Embodiment five: present embodiment is described in conjunction with Fig. 8, present embodiment is the further restriction to classroom seat acousto-optic and vibration information alarm set described in embodiment one, illumination warning circuit 2-4 comprises light emitting diode, triode and resistance, the base stage of triode is communicated with the output terminal that the illumination warning of single-chip minimum system 2-1 starts control signal by resistance, the anode of light emitting diode is communicated with power output end, the negative electrode of light emitting diode is communicated with the emitter of triode, the collector connection circuit ground wire of triode, triode adopts 8550 triodes.
Light emitting diode is driven by 8550 triodes.
Embodiment six: present embodiment is described in conjunction with Fig. 6, present embodiment is the further restriction to classroom seat acousto-optic and vibration information alarm set described in embodiment one, sound warning circuit 2-5 comprises hummer, triode Q1 and resistance, the base stage of triode Q1 is communicated with the output terminal that the sound warning of single-chip minimum system 2-1 starts control signal by resistance, hummer is connected between the emitter and power supply of triode Q1, the collector connection circuit ground wire of triode Q1, triode Q1 adopts 8550 triodes.
Warning is realized by buzzer circuit, and when detected parameters exceeds when bound is set, slave computer sends warning, by buzzing, points out people around.Hummer is driven by 8550 triodes, and the base stage of 8550 triodes connects the PA0 pin of single-chip minimum system 2-1 by resistance.
Embodiment seven: present embodiment is described in conjunction with Fig. 9, present embodiment is the further restriction to classroom seat acousto-optic and vibration information alarm set described in embodiment one, node address arranges circuit 2-6 and adopts eight toggle switchs to realize, and the output terminal of eight toggle switchs arranges input end with the address of single-chip minimum system 2-1 and is communicated with.
In N slave computer 2, each slave computer 2 has unique address in when communication, so just can contention-free when each slave computer 2 is communicated by letter with host computer 1, each battery limits are separated.Node address setting realizes by hardware, PORTC port by eight toggle switchs and single-chip minimum system 2-1 is connected, the other end is ground connection all, corresponding successively from low level to a high position, like this by toggle switch data being set and corresponding software programming just can realize the detection of node address.Preliminary examination port C input, register is set to high level, drags down then negate when toggle switch is closed like this.
Embodiment eight: present embodiment is described in conjunction with Figure 10, present embodiment is the further restriction to classroom seat acousto-optic and vibration information alarm set described in embodiment one, and slave computer wireless communication module 2-7 adopts XL02-232AP1 wireless module.
XL02-232AP1 is the radio receiving transmitting module of UART interface half-duplex transmission mode, and frequency of operation is at 428.8~435.1MHz, (default frequency 433.92MHz).Meet European ETSI (EN300-200-1 and EN301-439-3), meet wireless control requirement, without demand frequency occupancy permit.
Embodiment nine: present embodiment is the further restriction to classroom seat acousto-optic and vibration information alarm set described in embodiment one, host computer wireless communication module 1-2 adopts XL02-232AP1 wireless module.
Embodiment ten: in conjunction with Figure 11, present embodiment is described, present embodiment is the further restriction to classroom seat acousto-optic and vibration information alarm set described in embodiment one, interface circuit 1-4 adopts RS232C interface.
Wireless module interface in host computer adopts RS232C standard.Two kinds of situations in hardware design, have been considered: host computer 1 only has USB interface and host computer to carry RS232 serial ports.
According to both of these case, designed two kinds of hardware modules with host computer interface: a kind of is the PC (notebook) that only has USB interface, hardware design is that USB turns serial port module and is connected and is then connected with radio receiving transmitting module with RS232 signaling conversion circuit; The 2nd, host computer carries RS232 interface, and the external hardware design of host computer is that RS232 signaling conversion circuit is connected with radio receiving transmitting module.Host computer peripheral hardware equipment is directly connected with PC, and stube cable length is very short, can ignore other environmental parameter impacts.
RS-232 is the interface standard of the serial data communication formulated together with the companies such as BELL of U.S.'s electronic industries alliance (EIA).Be telecommunication connection data terminal device DTE and data communications equipment appointment at first.Because RS-232 communication compatibility is relatively good, therefore become gradually extensive accepted standard in PC communication interface.
Because RS232 standard has only stipulated to adopt a pair of physical connector, but to the physical characteristics of connector itself without any definition, therefore, there are DB-25, DB-15, the various types of connectors of DB-9, the definition of its pin is also different.In view of DB-9 type connector uses morely, and current computing machine is only equipped with this model serial line interface, and DB9 pin used is these three of 2 (RXD), 3 (TXD), 5 (GND).Therefore all RS232 interface is called to DB9 now.
Because the standard of the low and high level of single-chip microcomputer and the low and high level of PC is different, so between them, the conversion of standard need to be used conversion chip, uses comparatively widely integrated circuit switching device, as MAX232.
In conjunction with Figure 14 and Figure 15, upper computer software program design is described: host computer interface software is used VC++ design, and environment is Visual C++6.0.On PC, show human-computer interaction interface as shown in figure 15: in the time will reminding the student at certain seat, just with the icon at the lower corresponding seat of mouse point, realized easily the prompting message of sound, light and the vibration of classroom seat.