CN114089227A - Power supply wiring polarity detection device - Google Patents

Power supply wiring polarity detection device Download PDF

Info

Publication number
CN114089227A
CN114089227A CN202111127130.8A CN202111127130A CN114089227A CN 114089227 A CN114089227 A CN 114089227A CN 202111127130 A CN202111127130 A CN 202111127130A CN 114089227 A CN114089227 A CN 114089227A
Authority
CN
China
Prior art keywords
color sensor
resistor
color
power supply
triode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111127130.8A
Other languages
Chinese (zh)
Inventor
张东清
李季
李正睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hubei Sanjiang Aerospace Hongfeng Control Co Ltd
Original Assignee
Hubei Sanjiang Aerospace Hongfeng Control Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hubei Sanjiang Aerospace Hongfeng Control Co Ltd filed Critical Hubei Sanjiang Aerospace Hongfeng Control Co Ltd
Priority to CN202111127130.8A priority Critical patent/CN114089227A/en
Publication of CN114089227A publication Critical patent/CN114089227A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/66Testing of connections, e.g. of plugs or non-disconnectable joints
    • G01R31/67Testing the correctness of wire connections in electric apparatus or circuits
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/55Testing for incorrect line connections

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

The invention discloses a power supply wiring polarity detection device, which comprises a color sensor, a controller circuit and an audible and visual alarm circuit, wherein the color sensor is connected with the controller circuit; the color sensor is used for providing illumination and converting the reflected light rays into digital signals; the controller circuit comprises a single chip microcomputer, the single chip microcomputer is connected with the color sensor and the sound-light alarm circuit respectively, the color value read from the color sensor is compared with the set color value, if the error exceeds the set range, corresponding sound and light alarm signals are output to the sound-light alarm circuit through an IO port, and the sound and light alarm signals output by the single chip microcomputer drive the light emitting diode to emit light and the buzzer to sound after being amplified by the triode. The color sensor and the singlechip automatically identify the color of the wiring hook, detect whether the current power supply wiring is correct or not, and provide an alarm after the polarity is reversed, thereby avoiding various human errors, effectively solving the problem that electronic equipment is burnt out due to misoperation in the prior art, and reducing the economic loss in the debugging process.

Description

Power supply wiring polarity detection device
Technical Field
The invention belongs to the technical field of circuit testing, and particularly relates to a power supply wiring polarity detection device.
Background
In the process of testing electronic equipment, a direct current power supply, a positive power line and a negative power line (ground wire) are generally connected with the tested equipment through two leads, the positive electrode and the negative electrode of the power line are distinguished by red and black wiring hooks, the red wiring of the power line is hooked to the positive electrode of the power supply, and the black wiring of the power line is hooked to the negative electrode (ground wire) of the power supply. In practical use, due to carelessness of an individual and the like, errors of reverse polarity of the power supply often occur, and at the moment, if the power supply is switched on, the tested equipment is burnt.
Disclosure of Invention
The invention provides a power supply wiring polarity detection device, which aims to detect whether a power supply wire connection hook is correct or not and guarantee that power supply polarity wiring is correct.
In order to achieve the purpose, the invention adopts the following technical scheme:
a power supply wiring polarity detection device comprises a color sensor, a controller circuit and an audible and visual alarm circuit;
the color sensor comprises a light emitting diode, a color sensor chip and a color processing circuit which are connected with each other and are used for providing illumination and converting reflected light rays into digital signals;
the controller circuit comprises a singlechip D1, the singlechip D1 is respectively connected with the color sensor and the acousto-optic alarm circuit and is used for comparing the color value read from the color sensor with the set color value, and if the error exceeds the set range, the IO port outputs corresponding sound and optical alarm signals to the acousto-optic alarm circuit;
the audible and visual alarm circuit comprises a triode V1, a triode V2, a buzzer B1 and a light emitting diode H1, wherein sound and an optical alarm signal output by the singlechip D1 are amplified by a triode V1 and a triode V2 respectively and then drive the light emitting diode H1 to emit light and the buzzer B1 to sound.
Preferably, the led and the color sensor chip in the color sensor are packaged in a module, the led emits light to the plastic sleeve of the power supply wiring hook during detection, and since the plastic sleeve of the general wiring hook has two colors of red and black, the reflected light on the wiring hook also has two colors of red and black, the light is reflected to the color sensor chip, converted into an electrical signal by the color sensor chip, and converted into three basic color values of red, green and blue by the color processing circuit, so as to identify which color is the wiring hook.
Preferably, the color sensor is connected with the singlechip D1 through an RS232 serial communication port.
Preferably, the 54 port of the single chip microcomputer D1 is connected to the transmitting end of the color sensor RS232 serial communication port, and the 53 port of the single chip microcomputer D1 is connected to the receiving end of the color sensor RS232 serial communication port.
Preferably, the sound and light alarm circuit further comprises a resistor R1, a resistor R2, a resistor R3 and a resistor R4;
one end of the resistor R1 is connected with the 43 port of the singlechip D1, the other end of the resistor R1 is connected with the base electrode of the triode V1, the emitter electrode of the triode V1 is grounded, the collector electrode of the triode V1 is connected with the negative electrode of the light-emitting diode H1, the positive electrode of the light-emitting diode H1 is connected with one end of the resistor R3, and the other end of the resistor R3 is connected with a 3.3V power supply;
one end of the resistor R2 is connected with the 36 port of the singlechip D1, the other end of the resistor R2 is connected with the base electrode of the triode V2, the emitter electrode of the triode V2 is grounded, the collector electrode of the triode V2 is connected with the negative electrode of the buzzer B1, the positive electrode of the buzzer B1 is connected with one end of the resistor R4, and the other end of the resistor R4 is connected with a 3.3V power supply.
Due to the structure, the invention has the advantages that:
the color sensor and the singlechip automatically identify the color of the wiring hook, detect whether the current power supply wiring is correct or not, and provide an alarm after the polarity is reversed, thereby avoiding various human errors, effectively solving the problem that electronic equipment is burnt out due to misoperation in the prior art, and reducing the economic loss in the debugging process.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below.
FIG. 1 is a schematic block diagram of the structure of the present invention;
fig. 2 is a specific circuit diagram of the present invention.
Detailed Description
The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any inventive work belong to the scope 0 of the present invention.
As shown in fig. 1 and 2, the present embodiment provides a power supply wiring polarity detection device, which includes three portions, namely, a color sensor i, a controller circuit ii and an acousto-optic alarm circuit iii, where the controller circuit ii is connected to the color sensor i through an RS232 serial communication port, and is connected to the acousto-optic alarm circuit iii through a wire harness.
Wherein:
the color sensor I uses a common color identification module, consists of a light emitting diode, a color sensor chip, a color processing circuit and the like, and is used for providing illumination and converting reflected light rays into digital signals. The LED and the color sensor chip in the color sensor are packaged in a module, white light beams emitted by the LED are irradiated on the plastic sleeve of the power supply wiring hook during detection, the plastic sleeve of the general wiring hook has red and black colors, reflected light on the wiring hook also presents the red and black colors, the light is reflected to the color sensor chip, is converted into an electric signal through the color sensor, is converted into red, green and blue (R, G, B) three-primary-color values through calculation of the color processing circuit, is output through the RS232 serial port and is sent to the controller circuit II, the RS232 sends a signal, the color sensor inputs a color signal to the controller circuit II, and the RS232 receives a signal and receives a control command sent by the controller circuit II.
The controller circuit II comprises a singlechip D1 which mainly compares the color value read by the color sensor with the value of a set value, and if the error exceeds the set range, the IO port outputs corresponding sound and light alarm signals to the sound and light alarm circuit. And a 54 port of the singlechip D1 is connected with a TX transmitting end of a color sensor IRS 232 serial port, and a 53 port of the singlechip D1 is connected with an RX receiving end of the color sensor IRS 232 serial port.
The acousto-optic alarm circuit III comprises a triode V1, a triode V2, a buzzer B1, a light emitting diode H1, a resistor R1, a resistor R2, a resistor R3 and a resistor R4, one end of the resistor R1 is connected with the 43 port of the singlechip D1, the other end of the resistor R1 is connected with the base electrode of the triode V1, the emitter electrode of the triode V1 is grounded GND, the collector electrode of the triode V1 is connected with the negative electrode of the light emitting diode H1, the positive electrode of the light emitting diode H1 is connected with one end of the resistor R3, and the other end of the resistor R3 is connected with a 3.3V power supply; one end of the resistor R2 is connected with the 36 port of the singlechip D1, the other end of the resistor R2 is connected with the base electrode of the triode V2, the emitter electrode of the triode V2 is grounded GND, the collector electrode of the triode V2 is connected with the negative electrode of the buzzer B1, the positive electrode of the buzzer B1 is connected with one end of the resistor R4, and the other end of the resistor R4 is connected with a 3.3V power supply. The sound and the light alarm signal output by the singlechip D1 are amplified by the triode V1 and the triode V2 respectively to drive the light-emitting diode H1 to emit light and the buzzer B1 to sound.
The working principle of the circuit is as follows:
white light beams emitted by a light emitting diode of the color sensor I irradiate a plastic sleeve of the power supply wiring hook, and because the plastic sleeve of the general wiring hook is red and black, reflected light on the wiring hook also presents red and black colors, the light is reflected to the color sensor chip, is converted into an electric signal through the color sensor, is converted into red, green and blue (R, G, B) tricolor color values after being calculated by the color processing circuit, is output by an RS232 serial port and is sent to the controller circuit II.
And the controller circuit II receives the color value sent by the color sensor, compares the received color value with a set value, and outputs an acousto-optic alarm control signal from an IO port of the singlechip D1 if the received color value exceeds a receiving range, the signal is amplified by the acousto-optic alarm circuit and then drives the light-emitting diode to emit a light-emitting alarm signal, and the buzzer B1 is driven to emit a sound alarm signal.
The color sensor and the singlechip automatically identify the color of the wiring hook, and the alarm is provided after the current power supply is tested whether the wiring is correct or not and the polarity is reversed, so that various human errors are avoided, the problem that electronic equipment is burnt down due to misoperation in the prior art is effectively solved, and the economic loss in the debugging process is reduced.
In addition, the color sensor uses a common color module, the color sensor internally comprises a light emitting diode, a color detection chip, a color processing circuit and the like, and can receive various instructions and output detected color values through a serial port. The controller circuit and the acousto-optic alarm circuit are composed of a common singlechip D1, a resistor, a transistor, a buzzer B1 and other discrete elements, whether the polarity of the power supply wiring is correct is judged through the light-emitting state of the indicator light and the sound of the buzzer B1, the controller circuit and the acousto-optic alarm circuit have the advantages of few used elements, simplicity in connection, high reliability, low cost and the like, can be directly installed at the power supply input end of test equipment, and supply power to electronic equipment after correct input, so that the electronic equipment is prevented from being burnt out due to the problems of power supply errors, reverse polarity connection and the like.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (5)

1. The utility model provides a power supply wiring polarity detection device which characterized in that: comprises a color sensor, a controller circuit and an audible and visual alarm circuit;
the color sensor comprises a light emitting diode, a color sensor chip and a color processing circuit which are connected with each other and are used for providing illumination and converting reflected light rays into digital signals;
the controller circuit comprises a singlechip D1, the singlechip D1 is respectively connected with the color sensor and the acousto-optic alarm circuit and is used for comparing the color value read from the color sensor with the set color value, and if the error exceeds the set range, the IO port outputs corresponding sound and optical alarm signals to the acousto-optic alarm circuit;
the audible and visual alarm circuit comprises a triode V1, a triode V2, a buzzer B1 and a light emitting diode H1, wherein sound and an optical alarm signal output by the singlechip D1 are amplified by a triode V1 and a triode V2 respectively and then drive the light emitting diode H1 to emit light and the buzzer B1 to sound.
2. The power supply wiring polarity detection device according to claim 1, characterized in that: the LED and the color sensor chip in the color sensor are packaged in a module, the LED emits light to irradiate the plastic sleeve of the power supply wiring hook during detection, the plastic sleeve of the general wiring hook has red and black colors, reflected light on the wiring hook also presents the red and black colors, the light is reflected to the color sensor chip, is converted into an electric signal through the color sensor chip, and is converted into three basic color values of red, green and blue through calculation of the color processing circuit, so that which color is the wiring hook is identified.
3. The power supply wiring polarity detection device according to claim 1, characterized in that: the color sensor is connected with the singlechip D1 through an RS232 serial communication port.
4. The power supply wiring polarity detection device according to claim 3, characterized in that: and a 54 port of the singlechip D1 is connected with a transmitting end of the color sensor RS232 serial communication port, and a 53 port of the singlechip D1 is connected with a receiving end of the color sensor RS232 serial communication port.
5. The power supply wiring polarity detection device according to claim 1, characterized in that: the sound and light alarm circuit further comprises a resistor R1, a resistor R2, a resistor R3 and a resistor R4;
one end of the resistor R1 is connected with the 43 port of the singlechip D1, the other end of the resistor R1 is connected with the base electrode of the triode V1, the emitter electrode of the triode V1 is grounded, the collector electrode of the triode V1 is connected with the negative electrode of the light-emitting diode H1, the positive electrode of the light-emitting diode H1 is connected with one end of the resistor R3, and the other end of the resistor R3 is connected with a 3.3V power supply;
one end of the resistor R2 is connected with the 36 port of the singlechip D1, the other end of the resistor R2 is connected with the base electrode of the triode V2, the emitter electrode of the triode V2 is grounded, the collector electrode of the triode V2 is connected with the negative electrode of the buzzer B1, the positive electrode of the buzzer B1 is connected with one end of the resistor R4, and the other end of the resistor R4 is connected with a 3.3V power supply.
CN202111127130.8A 2021-09-26 2021-09-26 Power supply wiring polarity detection device Pending CN114089227A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111127130.8A CN114089227A (en) 2021-09-26 2021-09-26 Power supply wiring polarity detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111127130.8A CN114089227A (en) 2021-09-26 2021-09-26 Power supply wiring polarity detection device

Publications (1)

Publication Number Publication Date
CN114089227A true CN114089227A (en) 2022-02-25

Family

ID=80296607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111127130.8A Pending CN114089227A (en) 2021-09-26 2021-09-26 Power supply wiring polarity detection device

Country Status (1)

Country Link
CN (1) CN114089227A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117647431A (en) * 2024-01-29 2024-03-05 福捷(武汉)电子配件有限公司 Polymer injection molding strength detection device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200965558Y (en) * 2006-08-15 2007-10-24 深圳市宝安区松岗镒胜制品厂 Electric plug and socket power line detection device
CN101109659A (en) * 2007-08-15 2008-01-23 广东威创日新电子有限公司 Device and method for color recognition
CN103675588A (en) * 2013-11-20 2014-03-26 中国矿业大学 Printed circuit element polarity machine vision detection method and device
CN203629685U (en) * 2013-10-24 2014-06-04 浙江农林大学 Color identification device based on LED
CN206248758U (en) * 2016-12-15 2017-06-13 苏州伊福尔电子有限公司 Dust catcher conductive pin wire harness assembly detection means
CN107907775A (en) * 2017-09-30 2018-04-13 中车青岛四方机车车辆股份有限公司 Wiring detection method and wiring testing device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200965558Y (en) * 2006-08-15 2007-10-24 深圳市宝安区松岗镒胜制品厂 Electric plug and socket power line detection device
CN101109659A (en) * 2007-08-15 2008-01-23 广东威创日新电子有限公司 Device and method for color recognition
CN203629685U (en) * 2013-10-24 2014-06-04 浙江农林大学 Color identification device based on LED
CN103675588A (en) * 2013-11-20 2014-03-26 中国矿业大学 Printed circuit element polarity machine vision detection method and device
CN206248758U (en) * 2016-12-15 2017-06-13 苏州伊福尔电子有限公司 Dust catcher conductive pin wire harness assembly detection means
CN107907775A (en) * 2017-09-30 2018-04-13 中车青岛四方机车车辆股份有限公司 Wiring detection method and wiring testing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117647431A (en) * 2024-01-29 2024-03-05 福捷(武汉)电子配件有限公司 Polymer injection molding strength detection device
CN117647431B (en) * 2024-01-29 2024-04-26 福捷(武汉)电子配件有限公司 Polymer injection molding strength detection device

Similar Documents

Publication Publication Date Title
CN204481817U (en) Optical module parameter testing equipment
CN114089227A (en) Power supply wiring polarity detection device
CN204903740U (en) Power detecting circuit
CN103411679B (en) A kind of colourity optical detection system and light detection method
CN207473046U (en) A kind of test system of remote control circuitry plate
CN104569679A (en) No-load durability testing system for electric tool and gardening tool
CN219224929U (en) Direct-current power supply voltage undervoltage alarm circuit
CN203799470U (en) Infrared positioning alarm system
CN215893785U (en) Result-visualized portable photoelectric detector
CN205105192U (en) Drive controller fault -signal output circuit based on two -stage opto -coupler combination judgement mode
CN203164338U (en) An infrared remote controller detector
CN110007185A (en) A kind of detection circuit and method for single-phase zero curve and firewire and ground wire
CN201845039U (en) Voltage detecting device
CN210166537U (en) Optical module
CN211826461U (en) Wireless photoelectric pulse connecting device for ammeter detection
CN210780724U (en) Sensor matching device
CN210863999U (en) Circuit for detecting and alarming grounding state
WO2020199375A1 (en) Non-contact monitoring device for automated external defibrillator
CN104931813A (en) Method and system for detecting states of machine room server LED lamps
CN206505307U (en) A kind of household light fixtures service life supervision system based on PLC technology
CN218567568U (en) Driver output current fault monitoring circuit
CN111983506A (en) Wire rod pin detection circuit and wire rod pin detection system
CN207664228U (en) A kind of antenna lodging control device based on CAN bus
CN203530530U (en) Energy-saving device for automatic adjustment of transmission tension of tangential belt of loom
CN212569078U (en) Detection circuit of DMX512 differential signal without signal ground wire

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220225

RJ01 Rejection of invention patent application after publication