Classroom seat acousto-optic and vibration information alarm set
Technical field
The present invention relates to the aided education device.
Background technology
In classroom instruction, when especially number of student was a lot, some students' union did not note paying attention to the class, and needed to remind.And during this time, the teacher often can not orally be prevented because teach, and perhaps the prevention meeting has excessive influence to classroom instruction, thereby has reduced classroom teaching efficiency and effect.Lack at present in classroom instruction at not listening to the alarm set of saying the student carefully.
Summary of the invention
The objective of the invention is for solve lack at present in classroom instruction at the problem of not listening to the alarm set of saying the 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 the positive integer less than 256, a host computer and N slave computer passes through communicating wireless signals, host computer comprises: PC, the host computer wireless communication module, host computer power module of voltage regulation and interface circuit, PC is communicated with the host computer wireless communication module by interface circuit, the input end of the output terminal while of host computer power module of voltage regulation with the power supply of the input end of the power supply of interface circuit and host computer wireless communication module is communicated with, slave computer comprises: single-chip minimum system, the slave computer power module of voltage regulation, the vibration warning circuit, the illumination warning circuit, the sound warning circuit, node address arranges circuit, the 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 the 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 demonstration signal of single-chip minimum system is communicated with the input end of the demonstration signal of display screen, the output terminal that the sound caution of single-chip minimum system starts control signal is communicated with the input end of the startup control signal of sound warning circuit, the output terminal that the vibration warning of single-chip minimum system starts control signal is communicated with the input end of the startup control signal of vibration warning circuit, the output terminal that the illumination caution of single-chip minimum system starts control signal is communicated with the input end of the startup control signal of illumination warning circuit, and the output terminal that node address arranges circuit is communicated with the input end of the node address signalization of single-chip minimum system;
It also comprises host computer interface software and Single Chip Microcomputer (SCM) program, and the 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;
The host computer interface software comprises that concrete steps are: step one by one, by calling forms and control display interface figure; Step 1 two is called the serial ports control and is set up and being connected of serial ports; Step 1 three judges whether the seat button is pressed, and is, then execution in step one or four; Not, then execution in step one or three; Step 1 four is determined the 1st coordinate at seat; The step First Five-Year Plan, determine the 2nd coordinate at seat; Step 1 six sends the seat coordinate; Step 1 seven judges whether to continue, and is that then execution in step one or three; , then do not finish;
Single Chip Microcomputer (SCM) program comprises that concrete steps are: step 2 one, single-chip microcomputer initialization; Step 2 two, the wireless communication module initialization; Step 2 three has judged whether wireless transmission base bit data, is, then execution in step two or four, and not, then execution in step two or three; Step 2 four is given the corresponding I/O terminal output of sound high level; Step 2 five is given the corresponding I/O terminal output of vibration high level; Step 2 six is given luminous corresponding I/O terminal output high level; Step 2 seven judges whether to continue, and is that then execution in step two or three; , then do not finish.
The present invention arranges a slave computer by the wrist each seat student in classroom, and each is not noticed that the student who pays attention to the class sends prompting message separately.Make the teacher can be when teaching, under the situation of content of not interrupting teaching, the manual operation host computer be finished transmission at certain student's prompting message, has guaranteed the continuity of teachers' instruction content and ageing, thereby has improved classroom teaching efficiency and effect.Host computer of the present invention need not and the slave computer line, and the next function is arranged according to the classroom flexible in size.
Description of drawings
Fig. 1 is the synoptic diagram of duty of the present invention, Fig. 2 is the composition structural representation of host computer in the embodiment one, Fig. 3 is the composition structural representation of slave computer in the embodiment one, Fig. 4 is the circuit diagram of single-chip minimum system in the embodiment two, Fig. 5 is the circuit diagram of slave computer power module of voltage regulation in the embodiment three, Fig. 6 is the circuit diagram of sound warning circuit in the embodiment six, Fig. 7 is the circuit diagram of vibration warning circuit in the embodiment four, Fig. 8 is the circuit diagram of illumination warning circuit in the embodiment five, Fig. 9 arranges the circuit diagram of circuit for node address in the embodiment seven, Figure 10 is the circuit diagram of XL02-232AP1 wireless module in the embodiment eight, Figure 11 is the circuit diagram of interface circuit in the embodiment ten, Figure 12 is the synoptic diagram of host computer and N slave computer radio communication, Figure 13 is Single Chip Microcomputer (SCM) program block diagram in the embodiment one, Figure 14 is host computer interface software flow chart in the embodiment one, and Figure 15 is the synoptic diagram of human-computer interaction interface in the embodiment ten.
Embodiment
Embodiment one: in conjunction with Fig. 1, Fig. 2, Fig. 3, Figure 13 and Figure 14 illustrate present embodiment, the described classroom of present embodiment seat acousto-optic and vibration information alarm set, it comprises host computer 1 and N slave computer 2, N is the positive integer less than 256, 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 input end of the output terminal while of host computer power module of voltage regulation 1-3 with the power supply of the input end of the power supply of interface circuit 1-4 and host computer wireless communication module 1-2 is communicated with, 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 demonstration signal of single-chip minimum system 2-1 is communicated with the input end of the demonstration signal of display screen 2-9, the output terminal that the sound caution 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 caution 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, and the output terminal that node address arranges circuit 2-6 is communicated with the input end of the node address signalization of single-chip minimum system 2-1;
It also comprises host computer interface software and Single Chip Microcomputer (SCM) program, and the 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;
The host computer interface software comprises that concrete steps are: step one by one, by calling forms and control display interface figure; Step 1 two is called the serial ports control and is set up and being connected of serial ports; Step 1 three judges whether the seat button is pressed, and is, then execution in step one or four; Not, then execution in step one or three; Step 1 four is determined the 1st coordinate at seat; The step First Five-Year Plan, determine the 2nd coordinate at seat; Step 1 six sends the seat coordinate; Step 1 seven judges whether to continue, and is that then execution in step one or three; , then do not finish;
Single Chip Microcomputer (SCM) program comprises that concrete steps are: step 2 one, single-chip microcomputer initialization; Step 2 two, the wireless communication module initialization; Step 2 three has judged whether wireless transmission base bit data, is, then execution in step two or four, and not, then execution in step two or three; Step 2 four is given the corresponding I/O terminal output of sound high level; Step 2 five is given the corresponding I/O terminal output of vibration high level; Step 2 six is given luminous corresponding I/O terminal output high level; Step 2 seven judges whether to continue, and is that then execution in step two or three; , then do not finish.
Embodiment two: in conjunction with Fig. 3 present embodiment is described, present embodiment is the further restriction to embodiment one described classroom seat acousto-optic and vibration information alarm set, and single-chip minimum system 2-1 adopts ATmega16 to realize.
In slave computer 2 hardware design, single-chip minimum system 2-1 uses the ATmega16 single-chip microcomputer.Hardware design adopts open design concept, has reserved extensive interface, convenient improving from now on and the modernization improvement.
ATmega16 is based on the AVR RISC(reduced instruction set computer of enhancing) 8 CMOS microcontrollers of low-power consumption of structure.Have advanced instruction set and single clock cycle instruction time, data throughput is big.Simultaneously chip has abundant instruction set and 32 general purpose working registers, has than CISC(sophisticated vocabulary) data throughput of 10 times of microcontroller up.AVR adopts the Harvard structure that independently data bus and program bus are arranged, and has realized the operation of instruction sheet clock period.
Characteristics are as follows: the system programmable Flash of 16K is arranged, the SRAM of 1K byte, the EEPROM of 512 bytes.32 universaling I/O port lines, detail programming in 32 general purpose working registers and the jtag interface, supporting pieces.There are 8 the tunnel 10 to have 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 the high-density nonvolatile memory technology to produce, and ISP Flash can adopt ISP serial line interface or programmable device to programme in the sheet.By 8 RISCCPU and Flash are integrated together, make ATmega16 become a powerful single-chip microcomputer, using for many embedded Control provides low cost solution flexibly.
The ATmega16 minimum system comprises: reset circuit, downloader interface and I/O expansion interface.
In design, PA2~PA7 pin is expanded interface in advance as sensor in conjunction with Fig. 4 explanation, and convenient system schema later on improves.
In conjunction with Figure 13 described Single Chip Microcomputer (SCM) program structure and design are described: the ATmega16 single-chip microcomputer is the slave computer main control chip, and its programming realizes that with the C language translation and compiling environment is ICCAVR, downloads in the single-chip microcomputer by the Hex file of ISP interface download line with program compiler.
After the slave computer device power, system initialization, the circulation execution parameter is gathered and is shown, and the UART asynchronous serial communication is in waits for the host computer query State, when producing interruption, parameter is passed to host computer.Comprise mainly that in program process system initialization, parameter acquisition, data are handled, data transmit-receive.
Embodiment three: present embodiment is described in conjunction with Fig. 3, present embodiment is the further restriction to embodiment one described classroom seat acousto-optic and vibration information alarm set, slave computer 2 is arranged on each seat student's the wrist, and slave computer power module of voltage regulation 2-2 adopts the 5V stabilized voltage supply to realize.
The hardware components of whole slave computer 2 adopts the power supply of 5V power supply, changes direct current 12V power transformer by alternating current 220V and receives on the 5V mu balanced circuit.Therefore use 7805 integrated regulators, maximum output current 1.5A in the mu balanced circuit.The required peripheral cell of power supply of forming voltage stabilizing with 7805 three-terminal voltage-stabilizing IC is few, and inner also have overcurrent, overheated and adjust the holding circuit of pipe, use reliable, convenient, and low price.
Illustrate that in conjunction with Fig. 5 circuit theory diagrams are as follows: comprise 12V--5V voltage stabilizing part and mimic channel, digital circuit isolated from power partial design in the circuit.Preceding a part of J1 connects the 12V power supply, and the analog digital power supply power pack of back connects altogether, connects by inductance between two parts power supply, prevents the 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 embodiment one described classroom seat acousto-optic and vibration information alarm set, 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 of triode, triode adopts 8550 triodes.
The direct current motor armature is driven by 8550 triodes.Drive a coaxial bullion when motor rotates, produce vibration.
Embodiment five: present embodiment is described in conjunction with Fig. 8, present embodiment is the further restriction to embodiment one described classroom seat acousto-optic and vibration information alarm set, 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 caution 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 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 embodiment one described classroom seat acousto-optic and vibration information alarm set, 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 caution 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 of triode Q1, triode Q1 adopts 8550 triodes.
Warning realizes by buzzer circuit, and when detected parameters exceeds when bound is set, slave computer sends warning, by the people around the buzzing prompting.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 embodiment one described classroom seat acousto-optic and vibration information alarm set, node address arranges circuit 2-6 and adopts eight toggle switchs to realize that the output terminal of eight toggle switchs arranges input end with the address of single-chip minimum system 2-1 and is communicated with.
Each slave computer 2 has unique address in N the slave computer 2 when communication, just can avoid communication contention aware like this when each slave computer 2 is communicated by letter with host computer 1, and each equipment is made a distinction.Node address setting is realized by hardware, PORTC port by eight toggle switchs and single-chip minimum system 2-1 links to each other, the other end is ground connection all, and is corresponding successively from the low level to a high position, like this by the detection that the programming of toggle switch data and corresponding software just can realize node address is set.Preliminary examination port C input, register is set to high level, drags down when toggle switch is closed like this, and negate gets final product then.
Embodiment eight: present embodiment is described in conjunction with Figure 10, present embodiment is the further restriction to embodiment one described classroom seat acousto-optic and vibration information alarm set, and slave computer wireless communication module 2-7 adopts the 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, need not the demand frequency occupancy permit.
Embodiment nine: present embodiment is the further restriction to embodiment one described classroom seat acousto-optic and vibration information alarm set, and host computer wireless communication module 1-2 adopts the XL02-232AP1 wireless module.
Embodiment ten: in conjunction with Figure 11 present embodiment is described, present embodiment is the further restriction to embodiment one described classroom seat acousto-optic and vibration information alarm set, and interface circuit 1-4 adopts the RS232C interface.
Wireless module interface in the host computer adopts the RS232C standard.Considered two kinds of situations in hardware design: host computer 1 has only USB interface and host computer to carry the RS232 serial ports.
Designed two kinds of hardware modules with the host computer interface according to both of these case: a kind of is the PC (notebook) that has only USB interface, and hardware design is that USB changes serial port module and links to each other with the RS232 signaling conversion circuit and be connected with radio receiving transmitting module then; The 2nd, host computer carries the RS232 interface, and the external hardware design of host computer is that the RS232 signaling conversion circuit is connected with radio receiving transmitting module.Host computer peripheral hardware equipment directly links to each other with PC, and stube cable length is very short, can ignore other environmental parameter influences.
The interface standard of the RS-232 serial data communication that to be U.S.'s electronic industries alliance (EIA) formulate with companies such as BELL.Connect data terminal equipment DTE and data communications equipment appointment for telecommunication at first.Because the RS-232 communication compatibility is relatively good, therefore become extensive accepted standard in the PC communication interface gradually.
Because the RS232 standard has only stipulated to adopt a pair of physical connector, but to the physical characteristics of connector itself without any definition, therefore, DB-25, DB-15, the various types of connectors of DB-9 have appearred, the definition of its pin also has nothing in common with each other.In view of DB-9 type connector uses morely, and present computing machine only is equipped with this model serial line interface, and the used pin of DB9 is 2(RXD), 3(TXD), 5(GND) these three.Therefore all the RS232 interface is called DB9 now.
Because the standard of the high-low level of single-chip microcomputer and the high-low level of PC is different, so the conversion of standard need be used conversion chip between them, uses the integrated circuit switching device comparatively widely, as MAX232.
In conjunction with Figure 14 and Figure 15 the upper computer software program design is described: the host computer interface software uses the 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 corresponding seat under the mouse point, realized the prompting message of sound, light and the vibration of classroom seat easily.