DIY grating

文档序号:6722 发布日期:2021-09-17 浏览:53次 中文

The DIY grating is characterized by comprising an MCU (microprogrammed control Unit), a first multiplexer, a second multiplexer, a transmitter and a receiver, wherein the transmitter is connected with the MCU through the first multiplexer, the receiver is connected with the MCU through the second multiplexer, the MCU controls the first multiplexer to drive the transmitter, the MCU controls the second multiplexer to drive the receiver, the receiver transmits received infrared light wave signals transmitted by the transmitter to the MCU through the second multiplexer, and the MCU interrupts the processing of the infrared light wave signals to identify whether an object exists between the transmitter and the receiver; the emitter head and the emitter head plug of the emitter are connected through a first wire, the receiver head and the receiver head plug of the receiver are connected through a second wire, and the emitter head and the receiver head are installed at specified positions by adjusting the lengths of the first wire and the second wire; the transmitter and the receiver may be extended to multiple paths.

2. The DIY grating of claim 1, further comprising a sound prompt unit, a relay output unit, a power supply unit, a status indication unit, a communication unit, a display unit, a key input unit and a signal output unit connected to the MCU; the sound prompt unit is used for carrying out sound alarm on the abnormal signal sent by the MCU and sending a prompt sound when the MCU is set; the relay output unit is used for the MCU to output signals to control large-current driving; the power supply unit is used for providing a working power supply for the DIY grating; the state indicating unit is used for carrying out flash alarm on the abnormal signal sent by the MCU; the communication unit is used for the MCU to communicate with an upper computer, on one hand, the MCU receives an instruction of the upper computer through the communication unit, and on the other hand, the MCU uploads an interrupt processing result to the upper computer through the communication unit; the display unit is used for displaying the working mode of the DIY grating; the key input unit is used for setting the function and the working mode of the DIY grating through keys; the signal output unit is used for outputting the control signal of the MCU to an external device.

3. The DIY grating of claim 1 or 2, wherein the DIY grating further comprises an amplifying circuit and a waveform shaping circuit, the second multiplexer is further connected to the MCU through the amplifying circuit and the waveform shaping circuit, the amplifying circuit processes the infrared lightwave signal output by the second multiplexer and sends the processed infrared lightwave signal to the waveform shaping circuit, and the waveform shaping circuit performs waveform shaping on the infrared lightwave signal and sends the processed infrared lightwave signal to a signal input terminal of the MCU, so that the infrared lightwave signal meets the input requirement of the MCU.

4. The DIY grating of claim 1, wherein the emitter further comprises an emitter socket, a first resistor, a second resistor, a third resistor, a fourth resistor, a first transistor, an emitter plug, and a light emitting diode; the light emitting diode is used for generating infrared light waves, and the emitting head is connected with the emitting head plug through the first lead so that the infrared light waves are emitted out through the emitting head; the one end connecting terminal of first resistance, the other end of first resistance is connected respectively the collecting electrode of first triode and the transmission head wiring end of transmission head socket, the GND wiring end ground connection of transmission head socket, the VCC wiring end connecting terminal of transmission head socket, the one end of second resistance is connected the signal output part of first multiplexer, the other end of second resistance is connected respectively the one end of third resistance with the base of first triode, the other end ground connection of third resistance, the VCC wiring end of transmission head plug is connected the one end of fourth resistance, the other end of fourth resistance is connected emitting diode's positive pole, emitting diode's negative pole is connected the transmission head wiring end of transmission head plug, the transmission head plug with transmission head socket electrical property links to each other.

5. The DIY grating of claim 1, wherein the receiver further comprises a fifth resistor, a first capacitor, a phototransistor, and a receiver socket; the receiving head is used for receiving the infrared light wave emitted by the emitting head, the receiving head is connected with the receiving head plug through the second lead, the phototriode is an infrared receiving tube, the phototriode converts infrared light waves received by the receiving head into electric signals, the collector of the phototriode is connected with the VCC wiring end of the receiving head plug, the emitter of the phototriode is respectively connected with one end of the fifth resistor and one end of the first capacitor, the other end of the fifth resistor is connected with a GND terminal of the receiving head plug, the other end of the first capacitor is connected with a receiving head terminal of the receiving head plug, the VCC wiring terminal connecting terminal of the receiving head socket, the GND wiring terminal of the receiving head socket are grounded, and the receiving head wiring terminal of the receiving head socket is connected with the signal end of the second multiplexer.

6. The DIY grating of claim 4, wherein the emitter further comprises an electrolytic capacitor, and wherein the emitter further comprises: the signal output part of first multiplexer is connected to the one end of first resistance, the transmission head wiring end of transmission head socket is connected to the other end of first resistance, the GND wiring end ground of transmission head socket, the VCC wiring end connecting terminal of transmission head socket, the GND wiring end ground of transmission head plug, the one end of third resistance is connected to the transmission head wiring end of transmission head plug, the one end of second resistance and the base of first triode are connected respectively to the other end of third resistance, the other end ground of second resistance, the projecting pole ground of first triode, the one end of fourth resistance is connected to the collecting electrode of first triode, the negative pole of emitting diode is connected to the other end of fourth resistance, the positive pole of emitting diode connects respectively the positive pole of electrolytic capacitor and the VCC wiring end of transmission head plug, the cathode of the electrolytic capacitor is grounded, the emitter plug is electrically connected with the emitter socket, and the emitter is connected with the emitter plug through a first wire.

7. The DIY grating of claim 5, wherein the receiver further comprises a sixth resistor, a seventh resistor, an eighth resistor, and a second transistor, and wherein the receiver circuit further comprises: the collecting electrode of the phototriode is respectively connected with one end of the eighth resistor and the VCC wiring end of the receiving head plug, the transmitting end of the phototriode is respectively connected with one end of the first capacitor and one end of the fifth resistor, the other end of the first capacitor is respectively connected with one end of the sixth resistor, the base of the second triode and one end of the seventh resistor, the other end of the fifth resistor, the other end of the seventh resistor and the emitting electrode of the second triode are grounded after being connected, the other end of the sixth resistor is respectively connected with the other end of the eighth resistor, the receiving head wiring end of the receiving head plug and the collecting electrode of the second triode, the GND wiring end of the receiving head plug is grounded, the VCC connecting terminal of the receiving head socket is grounded, and the receiving head wiring end of the receiving head socket is connected with the signal end of the second multiplexer, the receiving head plug is electrically connected with the receiving head socket, and the receiving head is connected with the receiving head plug through a second wire.

8. The DIY grating of claim 3, wherein the amplifying circuit comprises resistors R111, R112, R113, R114, R115, R116, R117, R118, and R119, capacitors C111, C112, C113, C114, and C115, and amplifiers U111 and U112; the waveform shaping circuit comprises resistors R120, R121 and R122 and a triode Q120; one end of the resistor R111 is connected to the signal output end of the second multiplexer and one end of the capacitor C111, the other end of the resistor R111 is grounded, the other end of the resistor C111 is connected to one end of the resistor R112, the other end of the resistor R112 is connected to one end of the resistor R114 and the inverting input end of the amplifier U111, one end of the resistor R113 is connected to the terminal, the other end of the resistor R113 is connected to one end of the capacitor C112 and one end of the resistor R115 and then to the non-inverting input end of the amplifier U111, the other end of the capacitor C112 is grounded, the other end of the resistor R115 is grounded, the output end of the amplifier U111 is connected to the other end of the resistor R114 and one end of the capacitor C113, the other end of the capacitor C113 is connected to one end of the resistor R116, and the other end of the resistor R116 is connected to the inverting input end of the amplifier U112 and one end of the resistor R118, one end of the resistor R117 is connected with the terminal, the other end of the resistor R117 is connected with one end of the capacitor C114 and one end of the resistor R119 respectively and then connected with the non-inverting input end of the amplifier U112, the other end of the capacitor C114 is grounded, the other end of the resistor R119 is grounded, the output end of the amplifier U112 is connected with the other end of the resistor R118 and one end of the capacitor C115 respectively, the other end of the capacitor C115 is connected with one end of the resistor R120, one end of the resistor R120 is connected with one end of the resistor R121 and the base electrode of the triode Q120 respectively, the emitting electrode of the triode Q120 is grounded, the electrode of the triode Q120 is connected with one end of the resistor R122 and the signal input end of the MCU respectively, and the other end of the resistor R122 is connected with.

9. The DIY grating of claim 1, wherein the first multiplexer is scalable to a plurality of multiplexers.

10. The DIY grating of claim 1, wherein the second multiplexer is scalable to a plurality.

Background

Infrared grating, adopt the infrared light wave correlation of multibeam, the transmitter sends infrared light wave to the receiver with "low frequency transmission, time division detection" mode, in case there is the object to block any light beam that the transmitter sent, the grating can send alarm signal at once or with this signal upload to continuous host computer or external mechanism do further processing, consequently, the lift location of vending machine, there is not the goods on the vending machine lifter plate, whether every check cabinet of check machine has the goods, the automatically-controlled door prevents the tong, it detects and the goods monitoring that drops to fall the goods, personnel's removal monitoring etc. all need detect through infrared grating.

At present, the infrared grating in the market has single function, the number of the transmitters and the receivers is fixed, users cannot freely select the groups, and the number of the transmitters and the receivers cannot be increased or reduced according to actual needs; and the transmitter and the receiver are fixed in position and cannot be installed arbitrarily, so that the application scene is greatly limited.

Disclosure of Invention

The invention aims to provide a DIY grating, and aims to solve the problems that the number of transmitters and receivers of the existing infrared grating cannot be freely selected and combined, and the transmitters and the receivers cannot be installed at will due to fixed positions.

The invention is realized in this way, the technical scheme adopted by the DIY grating of the invention is as follows: the DIY grating comprises an MCU, a first multiplexer, a second multiplexer, a transmitter and a receiver, wherein the transmitter is connected with the MCU through the first multiplexer, the receiver is connected with the MCU through the second multiplexer, the MCU controls the first multiplexer to drive the transmitter, the MCU controls the second multiplexer to drive the receiver, the receiver transmits received infrared light wave signals transmitted by the transmitter to the MCU through the second multiplexer, and the MCU interrupts the infrared light wave signals to identify whether an object exists between the transmitter and the receiver; the emitter head and the emitter head plug of the emitter are connected through a first wire, the receiver head and the receiver head plug of the receiver are connected through a second wire, and the emitter head and the receiver head are installed at specified positions by adjusting the lengths of the first wire and the second wire; the transmitter and the receiver may be extended to multiple paths.

Furthermore, the DIY grating also comprises a sound prompt unit, a relay output unit, a power supply unit, a state indication unit, a communication unit, a display unit, a key input unit and a signal output unit which are connected with the MCU; the sound prompt unit is used for carrying out sound alarm on the abnormal signal sent by the MCU and sending a prompt sound when the MCU is set; the relay output unit is used for the MCU to output signals to control large-current driving; the power supply unit is used for providing a working power supply for the DIY grating; the state indicating unit is used for carrying out flash alarm on the abnormal signal sent by the MCU; the communication unit is used for the MCU to communicate with an upper computer, on one hand, the MCU receives an instruction of the upper computer through the communication unit, and on the other hand, the MCU uploads an interrupt processing result to the upper computer through the communication unit; the display unit is used for displaying the working mode of the DIY grating; the key input unit is used for setting the function and the working mode of the DIY grating through keys; the signal output unit is used for outputting the control signal of the MCU to an external device.

Furthermore, the DIY grating further includes an amplifying circuit and a waveform shaping circuit, the second multiplexer is further connected to the MCU through the amplifying circuit and the waveform shaping circuit, the amplifying circuit processes the infrared lightwave signal output by the second multiplexer and sends the processed infrared lightwave signal to the waveform shaping circuit, and the waveform shaping circuit performs waveform shaping processing on the infrared lightwave signal and sends the processed infrared lightwave signal to a signal input terminal of the MCU, so that the infrared lightwave signal meets the input requirement of the MCU.

Furthermore, the emitter also comprises an emitter socket, a first resistor, a second resistor, a third resistor, a fourth resistor, a first triode, an emitter plug and a light emitting diode; the light emitting diode is used for generating infrared light waves, and the emitting head is connected with the emitting head plug through the first lead so that the infrared light waves are emitted out through the emitting head; the one end connecting terminal of first resistance, the other end of first resistance is connected respectively the collecting electrode of first triode and the transmission head wiring end of transmission head socket, the GND wiring end ground connection of transmission head socket, the VCC wiring end connecting terminal of transmission head socket, the one end of second resistance is connected the signal output part of first multiplexer, the other end of second resistance is connected respectively the one end of third resistance with the base of first triode, the other end ground connection of third resistance, the VCC wiring end of transmission head plug is connected the one end of fourth resistance, the other end of fourth resistance is connected emitting diode's positive pole, emitting diode's negative pole is connected the transmission head wiring end of transmission head plug, the transmission head plug with transmission head socket electrical property links to each other.

Furthermore, the receiver also comprises a fifth resistor, a first capacitor, a phototriode and a receiving head socket; the receiving head is used for receiving the infrared light wave emitted by the emitting head, the receiving head is connected with the receiving head plug through the second lead, the phototriode is an infrared receiving tube, the phototriode converts infrared light waves received by the receiving head into electric signals, the collector of the phototriode is connected with the VCC wiring end of the receiving head plug, the emitter of the phototriode is respectively connected with one end of the fifth resistor and one end of the first capacitor, the other end of the fifth resistor is connected with a GND terminal of the receiving head plug, the other end of the first capacitor is connected with a receiving head terminal of the receiving head plug, the VCC wiring terminal connecting terminal of the receiving head socket, the GND wiring terminal of the receiving head socket are grounded, and the receiving head wiring terminal of the receiving head socket is connected with the signal end of the second multiplexer.

Further, the transmitter may further include an electrolytic capacitor, and the circuit of the transmitter may further be: the signal output part of first multiplexer is connected to the one end of first resistance, the transmission head wiring end of transmission head socket is connected to the other end of first resistance, the GND wiring end ground of transmission head socket, the VCC wiring end connecting terminal of transmission head socket, the GND wiring end ground of transmission head plug, the one end of third resistance is connected to the transmission head wiring end of transmission head plug, the one end of second resistance and the base of first triode are connected respectively to the other end of third resistance, the other end ground of second resistance, the projecting pole ground of first triode, the one end of fourth resistance is connected to the collecting electrode of first triode, the negative pole of emitting diode is connected to the other end of fourth resistance, the positive pole of emitting diode connects respectively the positive pole of electrolytic capacitor and the VCC wiring end of transmission head plug, the cathode of the electrolytic capacitor is grounded, the emitter plug is electrically connected with the emitter socket, and the emitter is connected with the emitter plug through a first wire.

Further, the receiver may further include a sixth resistor, a seventh resistor, an eighth resistor, and a second transistor, and the receiver circuit may further include: the collecting electrode of the phototriode is respectively connected with one end of the eighth resistor and the VCC wiring end of the receiving head plug, the transmitting end of the phototriode is respectively connected with one end of the first capacitor and one end of the fifth resistor, the other end of the first capacitor is respectively connected with one end of the sixth resistor, the base of the second triode and one end of the seventh resistor, the other end of the fifth resistor, the other end of the seventh resistor and the emitting electrode of the second triode are grounded after being connected, the other end of the sixth resistor is respectively connected with the other end of the eighth resistor, the receiving head wiring end of the receiving head plug and the collecting electrode of the second triode, the GND wiring end of the receiving head plug is grounded, the VCC connecting terminal of the receiving head socket is grounded, and the receiving head wiring end of the receiving head socket is connected with the signal end of the second multiplexer, the receiving head plug is electrically connected with the receiving head socket, and the receiving head is connected with the receiving head plug through a second wire.

Further, the amplifying circuit comprises resistors R111, R112, R113, R114, R115, R116, R117, R118 and R119, capacitors C111, C112, C113, C114 and C115, and amplifiers U111 and U112; the waveform shaping circuit comprises resistors R120, R121 and R122 and a triode Q120; one end of the resistor R111 is connected to the signal output end of the second multiplexer and one end of the capacitor C111, the other end of the resistor R111 is grounded, the other end of the resistor C111 is connected to one end of the resistor R112, the other end of the resistor R112 is connected to one end of the resistor R114 and the inverting input end of the amplifier U111, one end of the resistor R113 is connected to the terminal, the other end of the resistor R113 is connected to one end of the capacitor C112 and one end of the resistor R115 and then to the non-inverting input end of the amplifier U111, the other end of the capacitor C112 is grounded, the other end of the resistor R115 is grounded, the output end of the amplifier U111 is connected to the other end of the resistor R114 and one end of the capacitor C113, the other end of the capacitor C113 is connected to one end of the resistor R116, and the other end of the resistor R116 is connected to the inverting input end of the amplifier U112 and one end of the resistor R118, one end of the resistor R117 is connected with the terminal, the other end of the resistor R117 is connected with one end of the capacitor C114 and one end of the resistor R119 respectively and then connected with the non-inverting input end of the amplifier U112, the other end of the capacitor C114 is grounded, the other end of the resistor R119 is grounded, the output end of the amplifier U112 is connected with the other end of the resistor R118 and one end of the capacitor C115 respectively, the other end of the capacitor C115 is connected with one end of the resistor R120, one end of the resistor R120 is connected with one end of the resistor R121 and the base electrode of the triode Q120 respectively, the emitting electrode of the triode Q120 is grounded, the electrode of the triode Q120 is connected with one end of the resistor R122 and the signal input end of the MCU respectively, and the other end of the resistor R122 is connected with the terminal.

Further, the first multiplexer may be extended to be plural.

Further, the second multiplexer may be extended to be plural.

Compared with the prior art, the DIY grating provided by the invention comprises an MCU, a first multiplexer, a second multiplexer, a transmitter and a receiver, wherein the transmitter is connected with the MCU through the first multiplexer, the receiver is connected with the MCU through the second multiplexer, the MCU controls the first multiplexer to open the transmitter, the MCU controls the second multiplexer to open the receiver, the receiver transmits an infrared light wave signal transmitted by the transmitter to the MCU through the second multiplexer, and the MCU interrupts the infrared light wave signal to identify whether an object exists between the transmitter and the receiver; the invention has the following advantages:

(1) the number of the transmitters and the receivers can be freely selected by a user according to needs because the transmitters and the receivers can be expanded into multiple paths, and can be increased along with the expansion of the first multiplexer and the second multiplexer, thereby solving the problem that the number of the existing infrared grating transmitters and receivers can not be freely selected;

(2) adopt first wire to connect between the transmission head of transmitter and the transmission head plug, adopt the second wire to connect between the receiving head of receiver and the receiving head plug, install transmission head and receiving head to the assigned position through the length of adjusting first wire and second wire, consequently can the free range between the transmission head, between the receiving head, interval between transmission head and the receiving head to the problem of current echelette grating transmitter and the fixed unable arbitrary installation of receiver position has been solved.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.

Fig. 1 is a diagram of a DIY grating system according to an embodiment of the present invention.

Fig. 2 is a schematic circuit diagram of an audio prompt unit of a DIY grating according to an embodiment of the present invention.

Fig. 3 is a schematic circuit diagram of a relay output unit of a DIY grating according to an embodiment of the present invention.

Fig. 4 is a schematic circuit diagram of a power supply unit of a DIY grating according to an embodiment of the present invention.

Fig. 5 is a schematic circuit diagram of a state indicating unit of a DIY raster according to an embodiment of the present invention.

Fig. 6 is a schematic circuit diagram of a communication unit of a DIY raster according to an embodiment of the present invention.

Fig. 7 is a schematic diagram of a circuit of a display unit of a DIY grating according to an embodiment of the present invention.

Fig. 8 is a schematic circuit diagram of a key input unit of a DIY raster according to an embodiment of the present invention.

Fig. 9 is a schematic circuit diagram of a signal output unit of a DIY grating according to an embodiment of the present invention.

Fig. 10 is a schematic diagram of an amplifying circuit and a waveform shaping circuit of a DIY grating according to an embodiment of the present invention.

Fig. 11 is a schematic diagram of a transmitter circuit of a DIY grating according to an embodiment of the present invention.

Fig. 12 is a schematic diagram of a receiver circuit of a DIY grating according to an embodiment of the present invention.

Fig. 13 is another schematic circuit diagram of a DIY grating transmitter according to an embodiment of the present invention.

Fig. 14 is another schematic circuit diagram of a DIY grating receiver according to an embodiment of the present invention.

Fig. 15 is a schematic diagram of a multi-channel transmitter of a DIY grating according to an embodiment of the present invention.

Fig. 16 is a schematic diagram of a multi-receiver of a DIY grating according to an embodiment of the present invention.

Fig. 17 is a schematic diagram of mounting the transmitter and receiver of the DIY grating according to the embodiment of the present invention.

Fig. 18 is a schematic diagram of an application scenario of a grid machine of a DIY grating according to an embodiment of the present invention.

Fig. 19 is a schematic view of an application scenario of a DIY raster vending machine according to an embodiment of the present invention.

Fig. 20 is a schematic view of a mobile mode application scenario of a DIY raster according to an embodiment of the present invention.

Fig. 21 is a schematic view of a continuous mode application scenario of a DIY grating according to an embodiment of the present invention.

The mark in the above figure is 1, MCU; 2. a sound prompt unit; 3. a relay output unit; 4. a power supply unit; 5. a status indication unit; 6. a communication unit; 7. a display unit; 8. a key input unit; 9. a signal output unit; 10. a waveform shaping circuit; 11. an amplifying circuit; u01, a first multiplexer; u02, a second multiplexer; 01. a transmitter; 02. a receiver; 011. a first path of emitter; 012. a second path of transmitter; 013. a third transmitter; 014. a fourth transmitter; 015. a fifth transmitter; 016. a sixth transmitter; 017. a seventh transmitter; 018. an eighth transmitter; 021. a first path of receiver; 022. a second receiver; 023. a third receiver; 024. a fourth receiver; 025. a fifth receiver; 026. a sixth receiver; 027. a seventh receiver; 028. and an eighth receiver.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

The same or similar reference numerals in the drawings of the present embodiment correspond to the same or similar components; in the description of the present invention, it should be noted that when an element is referred to as being "fixed" to another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may be present, it is to be understood that the terms "upper", "lower", "left", "right", and the like, if any, refer to an orientation or positional relationship based on that shown in the drawings, that is for convenience in describing and simplifying the description, and that no indication or suggestion that the referenced device or element must have a particular orientation, be constructed and operated in a particular orientation, is therefore depicted in the drawings by the use of positional relationship descriptive terms only for purposes of illustration and not for purposes of limitation, the particular meaning of such terms being interpreted as broadly as will be understood by those skilled in the art based on the particular circumstances.

The technical solution of the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

Referring to fig. 1 to 21, a preferred embodiment of the present invention is shown.

Referring to fig. 1, the DIY grating is characterized by comprising an MCU1, a first multiplexer U01, a second multiplexer U02, a transmitter 01 and a receiver 02, wherein the transmitter 01 is connected with an MCU1 through the first multiplexer U01, the receiver 02 is connected with an MCU1 through a second multiplexer U02, the MCU1 controls the first multiplexer U01 to drive the transmitter 01, the MCU1 controls the second multiplexer U02 to drive the receiver 02, the receiver 02 transmits a received infrared lightwave signal transmitted by the transmitter 01 to the MCU1 through the second multiplexer U02, and the MCU1 interrupts the infrared lightwave signal to identify whether an object exists between the transmitter 01 and the receiver 02; the emitter of the emitter 01 is connected with the emitter plug through a first wire, the receiver of the receiver 02 is connected with the receiver plug through a second wire, and the emitter and the receiver are installed at specified positions by adjusting the lengths of the first wire and the second wire; the transmitter 01 and receiver 02 may be expanded into multiple paths.

The DIY grating provided by the above has the following advantages:

(1) the transmitters 01 and the receivers 02 can be expanded to be multi-path, so that a user can freely select the number of the transmitters and the receivers as required, and since the first multiplexer U01 and the second multiplexer U02 can be expanded to be multi-path, the number of the transmitters 01 and the receivers 02 can be increased along with the expansion of the first multiplexer U01 and the second multiplexer U02, thereby solving the problem that the number of the existing ir-raster transmitters and receivers cannot be freely selected;

(2) adopt first wire to connect between emitter 01's the transmission head and the transmission head plug, adopt the second wire to connect between receiver 02's the receiving head and the receiving head plug, install transmission head and receiving head to the assigned position through the length of adjusting first wire and second wire, consequently can the free range between the transmission head, between the receiving head, interval between transmission head and the receiving head to the fixed problem that can't install wantonly of current echelette transmitter and receiver position has been solved.

Optionally, the MCU1 is a chip of type STC11F08XE or other types.

As an implementation manner of this embodiment, the DIY grating further includes a sound prompt unit 2, a relay output unit 3, a power supply unit 4, a status indication unit 5, a communication unit 6, a display unit 7, a key input unit 8, and a signal output unit 9 connected to the MCU 1; the sound prompt unit 2 is used for giving a sound alarm to the abnormal signal sent by the MCU1 and sending a prompt sound when the MCU1 is set; the relay output unit 3 is used for controlling large-current driving by the output signal of the MCU 1; the power supply unit 4 is used for providing working power supply for the DIY grating; the state indicating unit 5 is used for carrying out flash alarm on an abnormal signal sent by the MCU 1; the communication unit 6 is used for communicating the MCU1 with an upper computer, on one hand, the MCU1 receives an instruction of the upper computer through the communication unit 6, on the other hand, the MCU1 uploads the interrupt processing result to the upper computer through the communication unit 6; the display unit 7 is used for displaying the working mode of the DIY grating; the key input unit 8 is used for setting the function and the working mode of the DIY grating through keys; the signal output unit 9 is used for outputting a control signal of the MCU1 to an external device.

Specifically, referring to fig. 2, the sound prompt unit 2 includes resistors R611, R612, and R613, a buzzer B1, and a transistor Q611; one end of the resistor R611 is connected with a terminal, the other end of the resistor R611 is connected with one end of the buzzer B1, the other end of the buzzer B1 is connected with a collector of the triode Q611, an emitter of the triode Q611 is grounded, a base of the triode Q611 is respectively connected with one end of the resistor R612 and one end of the resistor R613, the other end of the resistor R613 is grounded, and the other end of the resistor R612 is connected with a control signal output end of the MCU 1.

Specifically, referring to fig. 3, the relay output unit 3 includes a relay K1, resistors R1001, R1002, and R1003, a transistor Q1001, and a diode D1001; one end of the resistor R1001 is connected with a terminal, the other end of the resistor R1001 is connected with the cathode of the diode D1001 and one end of the relay K1 respectively, the anode of the diode D1001 and the other end of the relay K1 are connected with the collector of the triode Q1001, the emitter of the triode Q1001 is grounded, the base of the triode Q1001 is connected with one end of the resistor R1002 and one end of the resistor R1003 respectively, the other end of the resistor R1003 is grounded, and the other end of the resistor R1002 is connected with the control signal output end of the MCU 1.

Specifically, referring to fig. 4, the power supply unit 4 includes a power supply chip U03, resistors R301 and R302, electrolytic capacitors C301 and C303, capacitors C302 and C304, diodes D301 and D302, and an inductor L301; the anode of the diode D301 is connected with an input power supply of 9-28V, the cathode of the diode D301 is respectively connected with the anode of an electrolytic capacitor and one end of a capacitor C302 and then connected with the input end of a power chip U03, the cathode of the electrolytic capacitor C301 is grounded, the other end of the capacitor C302 is grounded, the ground end of a power chip U03 is grounded, the first output end of a power chip U03 is respectively connected with the cathode of the diode D302 and one end of an inductor L301, the anode of the diode D302 is grounded, the other end of the inductor L301 is respectively connected with the anode of the electrolytic capacitor and one end of a capacitor C304, one end of the capacitor C304 is respectively connected with a terminal and one end of a resistor R301 and then connected with the power input end of an MCU1, the cathode of the electrolytic capacitor C303 is grounded, the other end of the capacitor C304 is grounded, the second output end of the power chip U03 is respectively connected with the other end of the resistor R301 and one end of the resistor R302, and the other end of the resistor R302 is grounded.

Specifically, referring to fig. 5, the state indicating unit 5 includes a resistor R91, light emitting diodes D91 and D92; one end of the resistor R91 is connected with a terminal, the other end of the resistor R91 is respectively connected with the anode of the light-emitting diode D91 and the anode of the light-emitting diode D92, the cathode of the light-emitting diode D91 is connected with the terminal of the MCU1, and the cathode of the light-emitting diode D92 is connected with the control signal output end of the MCU 1.

Specifically, referring to fig. 6, communication unit 6 includes serial port 485 chip U04, resistor R201, R202, R203, serial port 485 chip U04's receiver output enable terminal RE and driver output enable terminal DE connect the data end of MCU1 after connecting, serial port 485 chip U04's receiver output terminal RO connects the data end of MCU1, serial port 485 chip U04's driver input terminal DI connects the terminal of MCU1, resistor R210's one end connects the terminal, resistor R201's the other end connects the one end of resistor R202, resistor R202's the other end connects one end of resistor R203, resistor R203's the other end is grounded, serial port 485 chip U04's output terminal a connects external data interface after connecting resistor R201 with resistor R202's connection point, serial port 485 chip U04's output terminal B connects external data interface after connecting resistor R202 with resistor R203's connection point.

Specifically, referring to fig. 7, the display unit 7 includes shift registers J711 and J712, LED nixie tubes S711 and S712, resistors R711 and R712, and light emitting diodes D711 and D712; one end of the resistor R711 is connected with a terminal, the other end of the resistor R711 is connected with the anode of the light emitting diode D711, the cathode of the light emitting diode D711 is connected with the signal output end of the MCU1, the other end of the resistor R712 is connected with the anode of the light emitting diode D712, the cathode of the light emitting diode D712 is connected with the signal output end of the MCU1, the shift register J711 is connected with the LED nixie tube S711, the shift register J712 is connected with the LED nixie tube S712, and the shift register J711 is connected with the signal output end of the MCU1 after being connected with the J712.

Specifically, referring to fig. 8, the key input unit 8 includes keys S101, S102, S103, S104, and S105, resistances R101, R102, R103, R104, and R105; one end of the resistor R101 is connected to the terminal, the other end of the resistor R101 is connected to the input end of the MCU1 and one end of the key S101, the other end of the key S101 is grounded, one end of the resistor R102 is connected to the terminal, the other end of the resistor R102 is connected to the input end of the MCU1 and one end of the key S102, the other end of the key S102 is grounded, one end of the resistor R103 is connected to the terminal, the other end of the resistor R103 is connected to the input end of the MCU1 and one end of the key S103, the other end of the key S103 is grounded, one end of the resistor R104 is connected to the terminal, the other end of the resistor R105 is connected to the input end of the MCU1 and one end of the key S105, and the other end of the key S105 is grounded.

Specifically, referring to fig. 9, the signal output unit 9 includes resistors R81, R82, R83, R84, R85, R86, R87, R88, R89, and R810, a diode D81, transistors Q81, Q82, and Q83; the transistors Q81 and Q83 are NPN type, and the transistor Q82 is PNP type; one end of the resistor R81 is connected with a signal output end of the MCU1, the other end of the resistor R81 is respectively connected with one end of the resistor R82 and a base of the triode Q82, an emitter of the triode Q82 is grounded, one end of the resistor R83 is connected with a terminal, a collector of the triode Q82 is respectively connected with the other end of the resistor R83, an NPN output end and one end of the resistor R85, the other end of the resistor R85 is respectively connected with a base of the triode Q81 and one end of the resistor R84, the other end of the resistor R84 is connected with one end of the resistor R810 and then connected with a terminal, an emitter of the triode Q81 is connected with the other end of the resistor R810, a collector of the triode Q81 is respectively connected with one end of the resistor R86 and a cathode of the diode D81 and then connected with a PNP output end, the other end of the resistor R86 and an anode of the diode D81 and then connected with a ground, one end of the resistor R87 is connected with a signal output end of the MCU1, and the other end of the resistor R87 is respectively connected with a base of the resistor R88 and a base of the transistor Q83, the other end of the resistor R88 is grounded, the emitter of the triode Q83 is grounded, the collector of the triode Q83 is connected with the DIR direction output end and one end of the resistor R89 respectively, and the other end of the resistor R89 is connected with a terminal.

As an implementation manner of this embodiment, the DIY grating further includes an amplifying circuit 11 and a waveform shaping circuit 10, the second multiplexer U02 is further connected to the MCU1 through the amplifying circuit 11 and the waveform shaping circuit 10, the amplifying circuit 11 processes the infrared lightwave signal output by the second multiplexer U02 and then sends the infrared lightwave signal to the waveform shaping circuit 10, and the waveform shaping circuit 10 performs waveform shaping processing on the infrared lightwave signal and then sends the infrared lightwave signal to the signal input terminal of the MCU1, so that the infrared lightwave signal meets the input requirement of the MCU 1.

Specifically, referring to fig. 10, the amplification circuit 11 includes resistors R111, R112, R113, R114, R115, R116, R117, R118, and R119, capacitors C111, C112, C113, C114, and C115, and amplifiers U111 and U112; the waveform shaping circuit 10 comprises resistors R120, R121 and R122, and a triode Q120; one end of a resistor R111 is respectively connected with the terminal of the second multiplexer U02 and one end of a capacitor C111, the other end of the resistor R111 is grounded, the other end of the resistor C111 is connected with one end of a resistor R112, the other end of the resistor R112 is respectively connected with one end of a resistor R114 and the inverting input end of the amplifier U111, one end of a resistor R113 is connected with the terminal, the other end of the resistor R113 is respectively connected with one end of the capacitor C112 and one end of a resistor R115 and then connected with the non-inverting input end of the amplifier U111, the other end of the capacitor C112 is grounded, the other end of the resistor R115 is grounded, the output end of the amplifier U111 is respectively connected with the other end of the resistor R114 and one end of the capacitor C113, the other end of the capacitor C113 is connected with one end of a resistor R116, the other end of the resistor R116 is respectively connected with the inverting input end of the amplifier U112 and one end of a resistor R118, one end of a resistor R117 and then connected with the non-inverting input end of the amplifier U112, the other end of the capacitor C114 is grounded, the other end of the resistor R119 is grounded, the output end of the amplifier U112 is respectively connected with the other end of the resistor R118 and one end of the capacitor C115, the other end of the capacitor C115 is connected with one end of the resistor R120, one end of the resistor R120 is respectively connected with one end of the resistor R121 and the base of the triode Q120, the emitter of the triode Q120 is grounded, the collector of the triode Q120 is respectively connected with one end of the resistor R122 and the signal input end of the MCU1, and the other end of the resistor R122 is connected with a terminal.

As an implementation manner of this embodiment, referring to fig. 11, the transmitter 01 includes a transmitter head T1, a transmitter head plug J412, a transmitter head socket J411, a first resistor R411, a second resistor R412, a third resistor R413, a fourth resistor R414, a first transistor Q411, a transmitter head plug J412, and a light emitting diode D411; the light emitting diode D411 is used for generating infrared light waves, and the emitter T1 is connected with the emitter plug J412 through a first lead so that the infrared light waves are emitted through the emitter T1; one end connecting terminal of first resistance R411, the collecting electrode of first triode Q411 and the emitter terminal of emitter socket J411 are connected respectively to the other end of first resistance R411, the GND terminal ground of emitter socket J411, the VCC terminal connecting terminal of emitter socket J411, the control signal output part of first multiplexer U01 is connected to the one end of second resistance R412, the one end of third resistance R413 and the base of first triode Q411 are connected respectively to the other end of second resistance R412, the other end ground of third resistance R413, the VCC terminal of emitter plug J412 is connected the one end of fourth resistance R414, the positive pole of emitting diode D411 is connected to the other end of fourth resistance R414, the emitter terminal of emitter plug J412 is connected to the negative pole of emitting diode D411, emitter plug J412 and emitter socket J411 electric connection.

Preferably, the emission head T1 is an infrared emission head, and can emit infrared pulses or infrared modulated waves.

As an implementation manner of this embodiment, referring to fig. 12, the receiver 02 includes a receiver plug R1, a receiver plug J511, a fifth resistor R511, a first capacitor C511, a phototransistor Q511, and a receiver plug J512; the receiver R1 is configured to receive the infrared light wave emitted by the transmitter T1, the receiver R1 is connected to the receiver plug J511 via a second wire, the phototransistor Q511 is an infrared receiver, the phototransistor Q511 converts the infrared light wave received by the receiver R1 into an electrical signal, the collector of the phototransistor Q511 is connected to the VCC terminal of the receiver plug J511, the emitter of the phototransistor Q511 is connected to one end of a fifth resistor R511 and one end of a first capacitor C511, respectively, the other end of the fifth resistor R511 is connected to the GND terminal of the receiver plug J511, the other end of the first capacitor C511 is connected to the receiver terminal of the receiver plug J511, the VCC terminal of the receiver socket J512 is connected to the VCC terminal, the GND terminal of the receiver socket J512 is grounded, and the receiver terminal of the receiver socket J512 is connected to the signal terminal of the second multiplexer U02.

Preferably, the receiver head R1 is an infrared receiver head that can receive infrared pulses or infrared modulated waves.

As an implementation manner of this embodiment, referring to fig. 13, the emitter 01 may further include an electrolytic capacitor C411, and the circuit of the emitter 01 may further be: one end of a first resistor R411 is connected with a control signal output end of a first multiplexer U01, the other end of the first resistor R411 is connected with an emitter terminal of an emitter socket J411, a GND terminal of the emitter socket J411 is grounded, a VCC terminal of the emitter socket J411 is connected with a terminal, a GND terminal of an emitter plug J412 is grounded, an emitter terminal of the emitter plug J412 is connected with one end of a third resistor R413, the other end of the third resistor R413 is respectively connected with one end of a second resistor R412 and a base of a first triode Q411, the other end of the second resistor R412 is grounded, an emitter of the first triode Q411 is grounded, a collector of the first triode Q411 is connected with one end of a fourth resistor R414, the other end of the fourth resistor R414 is connected with a cathode of a light emitting diode D411, an anode of the light emitting diode D411 is respectively connected with an anode of an electrolytic capacitor C411 and a VCC terminal of the emitter plug J412, a cathode of the electrolytic capacitor C411 is grounded, the emitter plug J412 is electrically connected to the emitter socket J411, and the emitter T1 is connected to the emitter plug J412 through a first wire.

As an implementation manner of this embodiment, referring to fig. 14, the receiver 02 may further include a sixth resistor R512, a seventh resistor R513, an eighth resistor R514, and a second transistor Q512, and the receiver 02 circuit may further include: the collector of the phototransistor Q511 is connected to one end of an eighth resistor R514 and the VCC terminal of a receiver plug J511 respectively, the emitter of the phototransistor Q511 is connected to one end of a first capacitor C511 and one end of a fifth resistor R511 respectively, the other end of the first capacitor C511 is connected to one end of a sixth resistor R512, the base of a second transistor Q512 and one end of a seventh resistor R513 respectively, the other end of the fifth resistor R511, the other end of the seventh resistor R513 and the emitter of the second transistor Q512 are grounded, the other end of the sixth resistor R512 is connected to the other end of the eighth resistor R514, the receiver plug J511 and the collector of the second transistor Q512 respectively, the GND terminal of the receiver plug J511 is grounded, the VCC terminal of the receiver plug J512 is grounded, the GND terminal of the receiver plug J512 is grounded, the receiver terminal of the receiver plug J512 is connected to the signal terminal of a second multiplexer U02, the header plug J511 is electrically connected to the header socket J512, and the header R1 is connected to the header plug J511 via a second wire.

As an implementation of this embodiment, the transmitter 01 has multiple channels. Referring to fig. 15, the first multiplexer U01 connects the 8 transmitters 01: the first way of transmitter 011, the second way of transmitter 012, the third way of transmitter 013, the fourth way of transmitter 014, the fifth way of transmitter 015, the sixth way of transmitter 016, the seventh way of transmitter 017 and the eighth way of transmitter 018, wherein:

the first path of emitter 011 comprises an emitter T1, an emitter plug J412, an emitter socket J411, resistors R411, R412, R413 and R414, a triode Q411, an emitter plug J411 and a light emitting diode D411; the light emitting diode D411 is used for generating infrared light waves, and the emitter T1 is connected with the emitter plug J412 through a lead so that the infrared light waves are emitted through the emitter T1; one end of the resistor R411 is connected with a terminal, the other end of the resistor R411 is respectively connected with a collector of the triode Q411 and an emitter terminal of the emitter socket J411, a GND terminal of the emitter socket J411 is grounded, a VCC terminal of the emitter socket J411 is connected with a terminal, one end of the resistor R412 is connected with a signal output end of the first multiplexer U01, the other end of the resistor R412 is respectively connected with one end of the resistor R413 and a base of the triode Q411, the other end of the resistor R413 is grounded, a VCC terminal of the emitter plug J412 is connected with one end of the resistor R414, the other end of the resistor R414 is connected with an anode of the light emitting diode D411, a cathode of the light emitting diode D411 is connected with an emitter terminal of the emitter plug J412, and the emitter plug J412 is electrically connected with the emitter socket J411;

the second transmitter 012 includes a transmitter T2, a transmitter plug J422, a transmitter socket J421, resistors R421, R422, R423, and R424, a transistor Q421, a transmitter plug J421, and a light emitting diode D421; the light emitting diode D421 is used for generating infrared light waves, and the emitter T2 is connected with the emitter plug J422 through a lead so that the infrared light waves are emitted out through the emitter T2; one end of the resistor R421 is connected with a terminal, the other end of the resistor R421 is respectively connected with a collector of the triode Q421 and an emitter terminal of the emitter socket J421, a GND terminal of the emitter socket J421 is grounded, a VCC terminal of the emitter socket J421 is connected with a terminal, one end of the resistor R422 is connected with a signal output end of the first multiplexer U01, the other end of the resistor R422 is respectively connected with one end of the resistor R423 and a base of the triode Q421, the other end of the resistor R423 is grounded, a VCC terminal of the emitter plug J422 is connected with one end of the resistor R424, the other end of the resistor R424 is connected with an anode of the light emitting diode D421, a cathode of the light emitting diode D421 is connected with an emitter terminal of the emitter plug J422, and the emitter plug J422 is electrically connected with the emitter socket J421;

the third transmitter 013 includes a transmitter header T3, a transmitter header plug J432, a transmitter header socket J431, resistors R431, R432, R433, and R434, a transistor Q431, a transmitter header plug J431, and a light emitting diode D431; the light emitting diode D431 is used for generating infrared light waves, and the emitter T3 is connected with the emitter plug J432 through a lead so that the infrared light waves are emitted through the emitter T3; one end of a resistor R431 is connected with a terminal, the other end of the resistor R431 is respectively connected with a collector of the triode Q431 and an emitter terminal of the emitter socket J431, a GND terminal of the emitter socket J431 is grounded, a VCC terminal of the emitter socket J431 is connected with a terminal, one end of a resistor R432 is connected with a signal output end of the first multiplexer U01, the other end of the resistor R432 is respectively connected with one end of a resistor R433 and a base of the triode Q431, the other end of the resistor R433 is grounded, a VCC terminal of the emitter plug J432 is connected with one end of a resistor R434, the other end of the resistor R434 is connected with an anode of the light emitting diode D431, a cathode of the light emitting diode D431 is connected with the emitter terminal of the emitter plug J432, and the emitter plug J432 is electrically connected;

fourth emitter 014 includes emitter T4, emitter plug J442, emitter socket J441, resistors R441, R442, R443, and R444, transistor Q441, emitter plug J441, and light emitting diode D441; the light emitting diode D441 is used for generating infrared light waves, and the transmitting head T4 is connected with the transmitting head plug J442 through a conducting wire so that the infrared light waves are transmitted out through the transmitting head T4; one end of the resistor R441 is connected with a connecting terminal, the other end of the resistor R441 is respectively connected with a collector of the triode Q441 and an emitter terminal of the emitter socket J441, a GND terminal of the emitter socket J441 is grounded, a VCC terminal of the emitter socket J441 is connected with a connecting terminal, one end of the resistor R442 is connected with a signal output end of the first multiplexer U01, the other end of the resistor R442 is respectively connected with one end of a resistor R443 and a base of the triode Q441, the other end of the resistor R443 is grounded, a VCC terminal of the emitter plug J442 is connected with one end of a resistor R444, the other end of the resistor R444 is connected with an anode of the light emitting diode D441, a cathode of the light emitting diode D441 is connected with the emitter terminal of the emitter plug J442, and the emitter plug J442 is electrically connected with the emitter socket J441;

the fifth transmitter 015 includes a transmitter head T5, a transmitter head plug J452, a transmitter head socket J451, resistors R451, R452, R453, and R454, a transistor Q451, a transmitter head plug J451, and a light emitting diode D451; the light emitting diode D451 is used for generating infrared light waves, and the emitter T5 is connected with the emitter plug J452 through a lead so that the infrared light waves are emitted through the emitter T5; one end of the resistor R451 is connected with a terminal, the other end of the resistor R451 is respectively connected with a collector of the triode Q451 and an emitter terminal of the emitter socket J451, a GND terminal of the emitter socket J451 is grounded, a VCC terminal of the emitter socket J451 is connected with a terminal, one end of the resistor R452 is connected with a signal output end of the first multiplexer U01, the other end of the resistor R452 is respectively connected with one end of the resistor R453 and a base of the triode Q451, the other end of the resistor R453 is grounded, a VCC terminal of the emitter plug J452 is connected with one end of the resistor R454, the other end of the resistor R454 is connected with an anode of the light emitting diode D451, a cathode of the light emitting diode D451 is connected with an emitter terminal of the emitter plug J452, and the emitter plug J452 is electrically connected with the emitter socket J451;

the sixth transmitter 016 includes a transmitter T6, a transmitter plug J462, a transmitter socket J461, resistors R461, R462, R463 and R464, a transistor Q461, a transmitter plug J461 and a light emitting diode D461; the light emitting diode D461 is used for generating infrared light waves, and the emitter T6 is connected with the emitter plug J462 through a lead so that the infrared light waves are emitted out through the emitter T6; one end of the resistor R461 is connected with a terminal, the other end of the resistor R461 is respectively connected with a collector of the triode Q461 and an emitter terminal of the emitter socket J461, a GND terminal of the emitter socket J461 is grounded, a VCC terminal of the emitter socket J461 is connected with a terminal, one end of the resistor R462 is connected with a signal output end of the first multiplexer U01, the other end of the resistor R462 is respectively connected with one end of the resistor R463 and a base of the triode Q461, the other end of the resistor R463 is grounded, a VCC terminal of the emitter plug J462 is connected with one end of the resistor R464, the other end of the resistor R464 is connected with an anode of the light emitting diode D461, a cathode of the light emitting diode D461 is connected with the emitter terminal of the emitter plug J462, and the emitter plug J462 is electrically connected with the emitter socket J461;

the seventh path emitter 017 comprises an emitter T7, an emitter plug J472, an emitter socket J471, resistors R471, R472, R473 and R474, a triode Q471, an emitter plug J471 and a light emitting diode D471; the light emitting diode D471 is used for generating infrared light waves, and the emitter T7 is connected with the emitter plug J472 through a lead so that the infrared light waves are emitted through the emitter T7; one end of the resistor R471 is connected with a terminal, the other end of the resistor R471 is respectively connected with a collector of the triode Q471 and an emitter terminal of the emitter socket J471, a GND terminal of the emitter socket J471 is grounded, a VCC terminal of the emitter socket J471 is connected with a terminal, one end of the resistor R472 is connected with a signal output end of the first multiplexer U01, the other end of the resistor R472 is respectively connected with one end of the resistor R473 and a base of the triode Q471, the other end of the resistor R473 is grounded, a VCC terminal of the emitter plug J472 is connected with one end of the resistor R474, the other end of the resistor R474 is connected with an anode of the light emitting diode D471, a cathode of the light emitting diode D471 is connected with the emitter terminal of the emitter plug J472, and the emitter plug J472 is electrically connected with the emitter socket J471;

the eighth transmitter 018 includes a transmitter head T8, a transmitter head plug J482, a transmitter head socket J481, resistors R481, R482, R483, and R484, a transistor Q481, a transmitter head plug J481, and a light emitting diode D481; the light emitting diode D481 is used for generating infrared light waves, and the emitter T8 is connected with the emitter plug J482 through a lead so that the infrared light waves are emitted through the emitter T8; one end of a resistor R481 is connected with a connecting terminal, the other end of the resistor R481 is respectively connected with a collector of the triode Q481 and an emitter terminal of the emitter socket J481, a GND terminal of the emitter socket J481 is grounded, a VCC terminal of the emitter socket J481 is connected with a connecting terminal, one end of the resistor R482 is connected with a signal output end of the first multiplexer U01, the other end of the resistor R482 is respectively connected with one end of a resistor R483 and a base of the triode Q481, the other end of the resistor R483 is grounded, a VCC terminal of the emitter plug J482 is connected with one end of a resistor R484, the other end of the resistor R484 is connected with an anode of the light emitting diode D481, a cathode of the light emitting diode D481 is connected with an emitter terminal of the emitter plug J482, and the emitter plug J482 is electrically connected with the emitter socket J481;

preferably, the number of the first path of emitters 011 to the eighth path of emitters 018 can be set according to actual requirements.

As an implementation manner of this embodiment, the receiver 02 is plural. Referring to fig. 16, the second multiplexer U02 connects the 8-way receiver 02: a first receiver 021, a second receiver 022, a third receiver 023, a fourth receiver 024, a fifth receiver 025, a sixth receiver 026, a seventh receiver 027, and an eighth receiver 028, wherein:

the first receiver 021 comprises a receiver head R1, a receiver head plug J511, a resistor R511, a capacitor C511, a phototransistor Q511 and a receiver head socket J512; the receiving head R1 is used for receiving the infrared light wave emitted by the emitting head T1, the receiving head R1 is connected with a receiving head plug J511 through a conducting wire, the phototriode Q511 is an infrared receiving tube, the phototriode Q511 converts the infrared light wave received by the receiving head R1 into an electric signal, the collector of the phototriode Q511 is connected with a VCC connection terminal of the receiving head plug J511, the emitter of the phototriode Q511 is respectively connected with one end of a resistor R511 and one end of a capacitor C511, the other end of the resistor R511 is connected with a GND connection terminal of the receiving head plug J511, the other end of the capacitor C511 is connected with the receiving head connection terminal of the receiving head plug J511, the VCC connection terminal of the receiving head socket is connected with the ground, and the GND connection terminal of the receiving head socket is connected with the signal end of the second multiplexer U02;

the second receiver 022 comprises a receiver head R2, a receiver head plug J521, a resistor R521, a capacitor C521, a phototransistor Q521 and a receiver head socket J522; the receiving head R2 is used for receiving the infrared light wave emitted by the emitting head T2, the receiving head R2 is connected with a receiving head plug J521 through a lead, the phototriode Q521 is an infrared receiving tube, the phototriode Q521 converts the infrared light wave received by the receiving head R2 into an electric signal, the collector electrode of the phototriode Q521 is connected with the VCC terminal of the receiving head plug J521, the emitter electrode of the phototriode Q521 is respectively connected with one end of a resistor R521 and one end of a capacitor C521, the other end of the resistor R521 is connected with the GND terminal of the receiving head plug J521, the other end of the capacitor C521 is connected with the receiving head terminal of the receiving head plug J521, the VCC terminal of the receiving head socket is connected with the terminal, the GND terminal of the receiving head socket is grounded, and the receiving head terminal of the receiving head socket is connected with the signal end of the second multiplexer U02;

the third receiver 023 comprises a receiving head R3, a receiving head plug J531, a resistor R531, a capacitor C531, a phototriode Q531 and a receiving head socket J532; the receiving head R3 is used for receiving the infrared light wave emitted by the emitting head T3, the receiving head R3 is connected with a receiving head plug J531 through a lead, the phototriode Q531 is an infrared receiving tube, the phototriode Q531 converts the infrared light wave received by the receiving head R3 into an electric signal, a collector of the phototriode Q531 is connected with a VCC terminal of the receiving head plug J531, an emitter of the phototriode Q531 is respectively connected with one end of a resistor R531 and one end of a capacitor C531, the other end of the resistor R531 is connected with a GND terminal of the receiving head plug J531, the other end of the capacitor C531 is connected with a receiving head terminal of the receiving head plug J531, the VCC terminal of the receiving head socket is connected with a terminal, the GND terminal of the receiving head socket is grounded, and the receiving head terminal of the receiving head socket is connected with a signal end of the second multiplexer U02;

the fourth receiver 024 includes a receiver R4, a receiver plug J541, a resistor R541, a capacitor C541, a phototransistor Q541, and a receiver socket J542; the receiving head R4 is used for receiving the infrared light wave emitted by the emitting head T4, the receiving head R3 is connected with a receiving head plug J541 through a conducting wire, the phototriode Q541 is an infrared receiving tube, the phototriode Q541 converts the infrared light wave received by the receiving head R4 into an electric signal, a collector of the phototriode Q541 is connected with a VCC connection terminal of the receiving head plug J541, an emitter of the phototriode Q541 is respectively connected with one end of the resistor R541 and one end of the capacitor C541, the other end of the resistor R541 is connected with a GND connection terminal of the receiving head plug J, the other end of the capacitor C541 is connected with the receiving head connection terminal of the receiving head plug J, the VCC connection terminal of the receiving head socket is connected with the ground, the GND connection terminal of the receiving head socket is connected with the signal end of the second multiplexer U02;

the fifth receiver 025 comprises a receiver head R5, a receiver head plug J551, a resistor R551, a capacitor C551, a phototriode Q551 and a receiver head socket J552; the receiving head R5 is used for receiving the infrared light wave emitted by the emitting head T5, the receiving head R3 is connected with a receiving head plug J551 through a conducting wire, the phototriode Q551 is an infrared receiving tube, the phototriode Q551 converts the infrared light wave received by the receiving head R5 into an electric signal, the collector of the phototriode Q551 is connected with a VCC terminal of the receiving head plug J551, the emitter of the phototriode Q551 is respectively connected with one end of a resistor R551 and one end of a capacitor C551, the other end of the resistor R551 is connected with a GND terminal of the receiving head plug J551, the other end of the capacitor C551 is connected with the receiving head terminal of the receiving head plug J551, the VCC terminal of the receiving head socket is connected with a terminal, the GND terminal of the receiving head socket is grounded, and the receiving head terminal of the receiving head socket is connected with a signal end of a second multiplexer U02;

the sixth receiver 026 comprises a receiver head R6, a receiver head plug J561, a resistor R561, a capacitor C561, a phototransistor Q561, and a receiver head socket J562; the receiving head R6 is used for receiving the infrared light waves emitted by the emitting head T6, the receiving head R3 is connected with a receiving head plug J561 through a conducting wire, the phototriode Q561 is an infrared receiving tube, the phototriode Q561 converts the infrared light waves received by the receiving head R6 into electric signals, a collector electrode of the phototriode Q561 is connected with a VCC connecting terminal of the receiving head plug J561, an emitting electrode of the phototriode Q561 is respectively connected with one end of a resistor R561 and one end of a capacitor C561, the other end of the resistor R561 is connected with a GND connecting terminal of the receiving head plug J561, the other end of the capacitor C561 is connected with a receiving head connecting terminal of the receiving head plug J561, the VCC connecting terminal of the receiving head socket is connected with the ground, and the GND connecting terminal of the receiving head socket is connected with the signal end of the second multiplexer U02;

the seventh receiver 027 includes a receiver header R7, a receiver header plug J571, a resistor R571, a capacitor C571, a phototransistor Q571, and a receiver header socket J572; the receiving head R7 is used for receiving the infrared light waves emitted by the emitting head T7, the receiving head R3 is connected with a receiving head plug J571 through a lead, the phototriode Q571 is an infrared receiving tube, the phototriode Q571 converts the infrared light waves received by the receiving head R7 into electric signals, the collector of the phototriode Q571 is connected with the VCC connection terminal of the receiving head plug J571, the emitter of the phototriode Q571 is respectively connected with one end of a resistor R571 and one end of a capacitor C571, the other end of the resistor R571 is connected with the GND connection terminal of the receiving head plug J571, the other end of the capacitor C571 is connected with the receiving head connection terminal of the receiving head plug J571, the VCC connection terminal of the receiving head socket is connected with the ground, and the GND connection terminal of the receiving head socket is connected with the signal end of the second multiplexer U02;

the eighth receiver 028 includes a receiver pin R8, a receiver pin J581, a resistor R581, a capacitor C581, a phototransistor Q581, and a receiver pin receptacle J582; the receiver R8 is used for receiving the infrared light wave emitted by the emitter T7, the receiver R3 is connected with the receiver plug J581 through a lead, the phototransistor Q581 is an infrared receiver, the phototransistor Q581 converts the infrared light wave received by the receiver R8 into an electric signal, the collector of the phototransistor Q581 is connected with the VCC terminal of the receiver plug J581, the emitter of the phototransistor Q581 is respectively connected with one end of a resistor R581 and one end of a capacitor C581, the other end of the resistor R581 is connected with the GND terminal of the receiver plug J581, the other end of the capacitor C581 is connected with the receiver terminal of the receiver plug J581, the VCC terminal of the receiver socket is connected with the ground, the GND terminal of the receiver socket is connected with the signal terminal of the second multiplexer U02;

preferably, the number of the first path receiver 021 to the eighth path receiver 028 can be set according to actual requirements.

As an implementation of the present embodiment, the first multiplexer U01 and the second multiplexer U02 may be extended in plurality, and the number of the transmitters 01 and the receivers 02 may be increased as the first multiplexer U01 and the second multiplexer U02 are extended.

As an embodiment of this embodiment, fig. 17 shows an example of mounting the emitter heads T1 to T8 and the receiver heads R1 to R8, in which the emitter head T1 is fixed to the mounting plate by a screw T11, the emitter head T2 is fixed to the mounting plate by a screw T22, the emitter head T3 is fixed to the mounting plate by a screw T33, the emitter head T33 is fixed to the mounting plate by a screw T33, the receiver head R33 is fixed to the mounting plate by a screw R33, and the receiver head R33 is fixed to the mounting plate by a screw R33, the receiving head R6 is fixed on the mounting plate through a screw R66, the receiving head R7 is fixed on the mounting plate through a screw R77, and the receiving head R8 is fixed on the mounting plate through a screw R88; the position of the emitter head T1 is opposite to that of the receiver head R1, the position of the emitter head T2 is opposite to that of the receiver head R2, the position of the emitter head T3 is opposite to that of the receiver head R3, the position of the emitter head T4 is opposite to that of the receiver head R4, the position of the emitter head T5 is opposite to that of the receiver head R5, the position of the emitter head T6 is opposite to that of the receiver head R6, the position of the emitter head T7 is opposite to that of the receiver head R7, and the position of the emitter head T8 is opposite to that of the receiver head R8; the mounting intervals between the emission heads T1 and T2, T2 and T3, T3 and T4, T4 and T5, T5 and T6, T6 and T7, and T7 and T8 can be freely adjusted as required.

Preferably, the number of receivers 02 and transmitters 01 is set by either an internal register of the MCU1 or an external dial switch.

For example, when the transmitter 01 is set to 8 channels and the receiver 02 is set to 8 channels, the first transmitter 011 and the first receiver 021 form a first group of channels, the second transmitter 012 and the second receiver 022 form a second group of channels, the third transmitter 013 and the third receiver 023 form a third group of channels, the fourth transmitter 014 and the fourth receiver 024 form a fourth group of channels, the fifth transmitter 015 and the fifth receiver 025 form a fifth group of channels, the sixth transmitter 016 and the sixth receiver 026 form a sixth group of channels, the seventh transmitter 017 and the seventh receiver 027 form a seventh group of channels, and the eighth transmitter 018 and the eighth receiver 028 form an eighth group of channels, the DIY grating architecture is described as follows:

the first step is as follows: the MCU1 controls the first multiplexer U01 and the second multiplexer U02 to drive the first transmitter 011 and the first receiver 021;

the second step is that: after the infrared light wave emitted by the emitting head T1 is received by the receiving head R1, the infrared light wave signal enters the amplifying circuit 11 and the waveform shaping circuit 10 through the second multiplexer U02, the amplifying circuit 11 amplifies the signal, the waveform shaping circuit 10 adjusts the waveform of the signal, and then the signal is transmitted to the MCU1 for interrupt processing;

the third step: the interruption processing is carried out to identify and judge whether an object blocks the light beam between the transmitting head T1 and the receiving head R1, if the object blocks the light beam (for the condition that the signal can not be received, the MCU1 controls the output of an 'off' signal; for the condition that the signal is received, the MCU1 controls the output of an 'on' signal), the first group of channels are marked as 'off', and if the signal is not blocked, the first group of channels are marked as 'on';

the fourth step: and similarly, repeating the first step to the third step, and scanning the second group of channels until the last group of channels.

After the last group of channels are swept, if all light beams can be received, the light beams are 'pass' (without shielding), the MCU1 controls and outputs 'pass' level, and a green light of a display circuit is lighted; if the light beams are not received by 1 group or more than 1 group, the light beams are switched off (have shielding), the MCU1 controls the output of the switching off level, and the display circuit lights the red light; the MCU1 sends out status (on/off) data to the outside (upper computer) via serial port for all beam status.

Referring to fig. 18 and 19, fig. 18 is an application scenario of the embodiment in a grid machine, and whether goods are in the grid is detected through the DIY grating; fig. 19 is an application scenario of the present embodiment in a vending machine, and when the falling of goods is detected, the DIY grating sends a signal to control the vending machine to stop the track rotation through the relay output unit 3.

The input power supply of the DIY grating is a nonlinear step-down power supply, wide voltage (9-28V) is input, current is rectified and filtered by a power supply unit 4 and then output to be 3.3V or 5.0V voltage as working electric energy supplied to the DIY grating, and the working principle of the DIY grating is as follows:

s1: after the MCU1 is powered on, initialization work is started;

s2: the MCU1 controls the first multiplexer U01 and the second multiplexer U02 to drive the first transmitter 011 and the first receiver 021;

s3: the MCU1 enables the T _ OUT pin to output high level, thereby controlling the conduction of a driving triode of the emitter 01 circuit so as to drive the externally inserted emitter T1 to emit infrared light wave signals;

s4: after receiving the infrared light wave signal, the receiving head R1 transmits the infrared light wave signal to the second multiplexer U02 through a receiving head socket, transmits the infrared light wave signal to the amplifying circuit 11 through the Z output end of the second multiplexer U02 for amplification, enters the waveform shaping circuit 10 for waveform finishing, and then inputs the infrared light wave signal to the MCU1 from the INT pin of the MCU1 for interrupt processing;

s5: identifying and judging whether shielding exists or not through interrupt processing, and marking the channel as a first group of channels to be turned off if an object shields; if not, marking as a first group of channels' pass;

s6: repeating the steps S2 to S5, wherein the MCU1 sequentially scans the second group of channels, the third group of channels, the fourth group of channels, and the fifth group of channels … … until all channels are scanned (the DIY raster may set the number of groups scanned in each scanning period as needed, if the user sets the scanning period to 4 groups of channels through the serial communication unit 6, then the scanning of 4 groups of channels is completed in one period, or sets the scanning period to 16 groups of channels, then the scanning of 16 groups of channels is completed in one period);

s7: after scanning for one period, the MCU1 makes a judgment according to the received signals, if all the light beams are not blocked to be ' on-off ', the on-level (low level) is output, and if the light beams are not more than or equal to 1 and the ' off-level (high level) is output; meanwhile, the receiving state data of each receiver is sent out to the outside (upper computer) by the serial port communication unit 6.

S8: repeating the steps 1-7.

The above steps S1 to S8 are the basic operation modes of the DIY raster, that is, the following first operation mode, and the user may set the "mode register" of the internal register of the MCU1 through serial communication or set the "mode register" through the external dial switch of the MCU1, where the operation modes of the DIY raster include the following eight types:

the first method comprises the following steps: the traditional mode is a market conventional mode, and if the light beam is shielded to be more than or equal to 1, a control signal is output;

and the second method comprises the following steps: and a direction mode, wherein the mode is set to detect the direction of the moving object to output a control signal, the raster scanning is carried OUT twice (two weeks), the results of the first time and the second time are compared, the moving direction is obtained by looking at the front and back sequence of the blocked light beams, OUT outputs a high level when the direction change is large, DIR direction signal output high level is from left to right, and DIR direction signal output bottom level is from right to left. When no direction change is detected, OUT outputs low level, and DIR direction signal level is ignored and is invalid;

and the third is that: the total number mode can be a mode which can output signals when more than 1 group of shelters can be set, for example, a fixed 3 groups are set, the total number of shelters must be more than or equal to 3 groups to output control signals;

fourthly, in a continuous mode, signals can be output when more than or equal to 2 groups of continuous shielding can be set, for example, if 4 groups are set, the continuous shielding number needs to output control signals under the condition of more than or equal to 4 groups;

and a fifth mode: a counting mode, which is used for outputting control signals when the number reaches a set value, if a packaging scene is set to 100, and when 100 times of grating triggering is detected when an object falls, the control signals are sent, and the number of the packages is 100;

and a sixth mode: the trigger mode is used for automatically sending the state data of each light beam through the serial port when the grating is shielded, and the trigger mode only returns to the state of the shielded light beam at the first time until the shielding trigger at the next time and then sends the serial port data;

seventh, the method comprises: in the dynamic mode, when the state of any group of received light beams of the grating is changed, the system automatically sends out serial port data to the outside and informs an upper computer;

an eighth method: and in the passive mode, after the upper computer actively sends out an inquiry command, the grating starts scanning once (one week) and returns data through the serial port, and the grating does not scan when the upper computer does not inquire.

Referring to fig. 20, fig. 20 is an application scenario of the present embodiment when the operation mode is the directional mode, and the transmitting heads T1-T6 and the receiving heads R1-R6 are installed at two sides of the channel, when a person moves, the light beams emitted by the transmitting heads T1-T6 are shielded, and the receiving heads R1-R6 are scanned, so that the time when the light beams are blocked determines that the person moves from the position W1 to the position W2; therefore, the working mode can be applied to monitoring the moving direction and setting direction alarm.

Referring to fig. 21, fig. 21 is an application scenario of the present embodiment when the operating mode is the continuous mode, two sides of the channel are installed with transmitting heads T1-T6 and receiving heads R1-R6, when a first person M1 is tightly attached to a second person M2, several continuous light beams in the transmitting heads T1-T6 will be shielded, for example, light beams of the transmitting heads T4-T5 are shielded, and the receiving heads R4-R5 cannot receive light beams, so that only 2 groups of channels are preset to output an alarm signal when being continuously shielded; the working mode can be applied to occasions needing monitoring, such as an ATM (automatic teller machine), a prison and the like, when an ATM user takes money, an alarm is given out after someone clings to the user, and when a prison manager opens a door, an alarm is given out after someone clings to the user.

In summary, the DIY grating has the following advantages:

(1) the number of the transmitters and the receivers can be set randomly for working, for example, only four groups or only eight groups are used, so that a user can set the number of the transmitters, the receivers and the multiplexers according to actual needs, and the cost is reduced;

(2) the distance between the emitting heads can be adjusted;

(3) any group of transmitting heads and receiving heads can be moved to a certain position by using a wire to be randomly installed, so that the device is suitable for various occasions;

(4) eight working modes are set according to actual requirements.

The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:用于外星逆境调姿着陆巡视的多模式探测器

相关技术


网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!