CN110753417B - Control method for controlling bipolar LED lamp by using max7219 - Google Patents

Control method for controlling bipolar LED lamp by using max7219 Download PDF

Info

Publication number
CN110753417B
CN110753417B CN201911121633.7A CN201911121633A CN110753417B CN 110753417 B CN110753417 B CN 110753417B CN 201911121633 A CN201911121633 A CN 201911121633A CN 110753417 B CN110753417 B CN 110753417B
Authority
CN
China
Prior art keywords
max7219
seg
control
led lamp
bipolar
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.)
Active
Application number
CN201911121633.7A
Other languages
Chinese (zh)
Other versions
CN110753417A (en
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.)
Tianjin Optical Electrical Communication Technology Co Ltd
Original Assignee
Tianjin Optical Electrical Communication Technology 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 Tianjin Optical Electrical Communication Technology Co Ltd filed Critical Tianjin Optical Electrical Communication Technology Co Ltd
Priority to CN201911121633.7A priority Critical patent/CN110753417B/en
Publication of CN110753417A publication Critical patent/CN110753417A/en
Application granted granted Critical
Publication of CN110753417B publication Critical patent/CN110753417B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B44/00Circuit arrangements for operating electroluminescent light sources
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The invention discloses a control method for controlling a bipolar LED lamp by using max7219, wherein a singlechip controls max7219 through SPI (DSPIN/DSPCS/DSPCK); the chip selection pin connected with the max7219 nixie tube is always at a low level; max7219 controlling SEG of each LED of the nixie tube in corresponding time slot according to the time sequence; if the SEG needs to be on, the SEG is at a high level in the corresponding time slot; and if the SEG is going to be extinguished, the corresponding time slot of the SEG is low. By the invention, the control of a singlechip on a plurality of bipolar LEDs through three pins can be realized, and the cascade function of max7219 can be utilized to realize the control of more bipolar LEDs, so that the control is simple and efficient.

Description

Control method for controlling bipolar LED lamp by using max7219
Technical Field
The invention belongs to the field of LED drive control, and particularly relates to a control method for controlling a bipolar LED lamp by using max 7219.
Background
If a single chip microcomputer is needed to control a plurality of LED lamps (the number of the lamps is far larger than the number of pins of the single chip microcomputer), a max7219 controller can be used. By using the controller, the control of a plurality of max7219 can be realized by only occupying 3 pins of the singlechip, and each max7219 can control up to 64 LEDs. This control method has very wide application.
max7219 control principle As shown in FIG. 1, X1-X8 are chip selection signals of 8 nixie tubes, A-G and DP are control signals of each LED in the nixie tubes. The single chip microcomputer controls max7219 through SPI (DSPIN/DSPCS/DSPCK), and max7219 is converted into control over each section of nixie tube through internal calculation. Finally, the time division and the continuity of the LED brightness are utilized to realize the control of a plurality of nixie tubes or LED lamps.
max7219 controls multiple LED lamps by common cathode, i.e. A-G and DP have the same cathode (chip select). If a certain segment of a certain nixie tube is controlled to be on, a chip selection signal (one of X1-X8) of the nixie tube becomes low level in a corresponding time slot, and a corresponding SEG (namely one of A-G) is high level; if the segment is controlled to go out, the chip select signal goes high in the corresponding time slot and the corresponding SEG goes low. For example, if segment a of HL1 in fig. 1 is controlled to be bright, max7219 sets X1 low and a high in the corresponding time slot of a, so that segment a is bright by using the forward voltage difference; when control A goes out, max7219 will set X1 high and A low at the corresponding time slot of A, thus using the reverse pressure difference to realize section A going out.
However, some current LED lamps, especially those provided in the key, are bipolar, that is, the LED can be turned on regardless of the forward voltage difference or the reverse voltage difference. The LED is turned off only when the two pins of the LED have no voltage difference. Since max7219 is to control the on and off of the LED by using the forward and reverse voltage difference, max7219 cannot control the bipolar LED lamp normally.
Disclosure of Invention
The invention provides a control method for controlling a bipolar LED lamp by using max7219, which can enable the max7219 to control the on and off of the bipolar LED lamp.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a control method for controlling a bipolar LED lamp using max7219, comprising:
s1, the single chip microcomputer controls max7219 through SPI (DSPIN/DSPCS/DSPCK);
s2, max7219 chip selection pins connected with the nixie tube are always set at a low level;
s3 and max7219 control SEG of each LED of the nixie tube in corresponding time slot according to time sequence; if the SEG needs to be on, the SEG is at a high level in the corresponding time slot; and if the SEG is going to be extinguished, the corresponding time slot of the SEG is low.
Further, in step S2, the chip select pin of max7219 is set to null.
Furthermore, the chip selection pin of the nixie tube is forced to be grounded.
Further, in the method, max7219 controls a plurality of nixie tubes or LED lamps by using time division and continuity of LED brightness.
Furthermore, the chip selection pin of the max7219 is empty, and the chip selection pins of the nixie tubes or the LED lamps are forcibly grounded.
Compared with the prior art, the invention has the following beneficial effects:
by the invention, the control of a singlechip on a plurality of bipolar LEDs through three pins can be realized, and the cascade function of max7219 can be utilized to realize the control of more bipolar LEDs, so that the control is simple and efficient.
Drawings
FIG. 1 is a schematic diagram of a prior art max7219 control architecture;
fig. 2 is a schematic diagram of a max7219 control structure according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art through specific situations.
In the embodiment of the invention, a max7219 controller is used for the bipolar LED lamp, as shown in FIG. 2, X1-X8 are chip selection signals of 8 nixie tubes, and A-G and DP are control signals of each LED in the nixie tubes. The single chip microcomputer controls max7219 through SPI (DSPIN/DSPCS/DSPCK), and 7219 is converted into control of each section of nixie tube through internal calculation. Finally, the time division and the continuity of the LED brightness are utilized to realize the control of a plurality of nixie tubes or LED lamps.
In order to control the on and off of the bipolar LED lamp by using the max7219, when the circuit board is designed, the chip selection pin at the max7219 end is arranged to be empty, and meanwhile, the chip selection pin at the digital tube end is forcibly grounded, as shown in FIG. 2, the chip selection pins X1, X2 and X3 of HL1, HL2, HL3 and the like are grounded.
The working principle is as follows: max7219 still controls each SEG in the corresponding time slot according to the previous timing, and the only difference is that the output chip select signal is not given to the digital chip. And the SEG of the digital tube end is controlled by max7219 in the corresponding time slot, if a certain SEG is to be on, the SEG is at high level in the corresponding time slot, and if the SEG is to be off, the SEG is at low level in the corresponding time slot. However, the chip select pin X is kept low all the time due to the forced grounding. Thus, if a certain SEG is high, a forward voltage difference is formed between the SEG and the chip select pin X, and if a certain SEG is low, a voltage difference is not formed between the SEG and the chip select pin. Thus, control over the bipolar LED can be realized.
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, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (4)

1. A control method for controlling a bipolar LED lamp using max7219, comprising:
s1, the single chip microcomputer controls max7219 through SPI (DSPIN/DSPCS/DSPCK);
s2, max7219 chip selection pins connected with the nixie tube are always set at a low level;
s3 and max7219 control SEG of each LED of the nixie tube in corresponding time slot according to time sequence; if the SEG needs to be on, the SEG is at a high level in the corresponding time slot; if the SEG is going to be extinguished, the corresponding time slot of the SEG is at a low level;
max7219 controls a plurality of nixie tubes or LED lamps by time division and continuity of LED brightness.
2. The method for controlling the bipolar LED lamp by using the max7219 of claim 1, wherein in the step S2, a chip selection pin of the max7219 is empty.
3. The control method for controlling the bipolar LED lamp by using the max7219 as claimed in claim 2, wherein a chip selection pin of the nixie tube is forcibly grounded.
4. The control method for controlling the bipolar LED lamp by using the max7219 according to claim 1, wherein a chip selection pin of the max7219 is empty, and chip selection pins of the plurality of nixie tubes or the LED lamp are forcibly grounded.
CN201911121633.7A 2019-11-15 2019-11-15 Control method for controlling bipolar LED lamp by using max7219 Active CN110753417B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911121633.7A CN110753417B (en) 2019-11-15 2019-11-15 Control method for controlling bipolar LED lamp by using max7219

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911121633.7A CN110753417B (en) 2019-11-15 2019-11-15 Control method for controlling bipolar LED lamp by using max7219

Publications (2)

Publication Number Publication Date
CN110753417A CN110753417A (en) 2020-02-04
CN110753417B true CN110753417B (en) 2021-09-17

Family

ID=69283454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911121633.7A Active CN110753417B (en) 2019-11-15 2019-11-15 Control method for controlling bipolar LED lamp by using max7219

Country Status (1)

Country Link
CN (1) CN110753417B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5338991A (en) * 1992-12-28 1994-08-16 Lu Chao Cheng High power solid state relay with input presence and polarity indication
WO2004025702A2 (en) * 2002-09-11 2004-03-25 Pan Jit Americas, Inc Electrostatic discharge protection device for high speed transmission lines
CN2781505Y (en) * 2004-11-05 2006-05-17 北京有色金属研究总院 Radio remote controlled LED digital display screen
CN202091879U (en) * 2011-04-29 2011-12-28 杭州成业圣诞礼品有限公司 Festival color lamp
CN205334734U (en) * 2015-10-22 2016-06-22 河海大学 Traffic light intelligent control device based on singlechip

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02271569A (en) * 1989-04-12 1990-11-06 Sumitomo Electric Ind Ltd Manufacture of integrated circuit
JP5118940B2 (en) * 2007-11-02 2013-01-16 ローム株式会社 Power supply
CN101430214B (en) * 2008-12-01 2010-08-25 江南大学 Intelligent inspection machine carriage
US8415892B2 (en) * 2009-12-04 2013-04-09 Tai-Her Yang Voltage-limiting and reverse polarity series type LED device
CN103066881A (en) * 2013-01-12 2013-04-24 华南理工大学 Switching circuit of phase shift and limited bipolar control manner and control method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5338991A (en) * 1992-12-28 1994-08-16 Lu Chao Cheng High power solid state relay with input presence and polarity indication
WO2004025702A2 (en) * 2002-09-11 2004-03-25 Pan Jit Americas, Inc Electrostatic discharge protection device for high speed transmission lines
CN2781505Y (en) * 2004-11-05 2006-05-17 北京有色金属研究总院 Radio remote controlled LED digital display screen
CN202091879U (en) * 2011-04-29 2011-12-28 杭州成业圣诞礼品有限公司 Festival color lamp
CN205334734U (en) * 2015-10-22 2016-06-22 河海大学 Traffic light intelligent control device based on singlechip

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于MAX7219芯片的大尺寸LED数码显示驱动电路设计》;李长安;《电子设计工程》;20110305(第5(2011)期);全文 *

Also Published As

Publication number Publication date
CN110753417A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
US7737926B2 (en) Dynamic LED matrix lighting control using scanning architecture
CN101399027B (en) Backlight driver and liquid crystal display including the same
US6494587B1 (en) Cold cathode backlight for avionics applications with strobe expanded dimming range
TWI390482B (en) The circuit and method for driving strings of light emitting diode
CN216980093U (en) Display driving chip and LED lamp panel
CN110753417B (en) Control method for controlling bipolar LED lamp by using max7219
CN114038398B (en) Gray scale compensation circuit, display device and gray scale compensation method
CN114420063A (en) LED backlight driving circuit and driving method based on low-potential end switch control
CN113012624B (en) LED display device and driving method thereof
CN212353792U (en) Running water lamp control system
CN102026439B (en) Driving device and driving method for light emitting diode
CN113516943A (en) Control device and method of LED array and LED display screen
US8054284B2 (en) Back light module and driving method thereof
CN110706644A (en) Control method and structure for controlling bicolor LED lamp based on max7219
CN219068418U (en) Driving circuit of lamp bead and refrigerator
CN110856306A (en) Circuit for realizing automatic color gradual change of RGB (Red, Green and blue) three-primary-color LED (light-emitting diode) lamp
CN114241986B (en) Display assembly, display panel and control method of display assembly
CN220307423U (en) LED color lamp device
KR20140130772A (en) Apparatus for Cross Drive Control of LED lighting
CN210402081U (en) IO port multiplexing circuit and electronic equipment
US11184966B2 (en) Method and means for setting a current source for a light-emitting diode array
WO2023238887A1 (en) Light-emitting element drive circuit and lighting device using same, display device, and electronic apparatus
CN216531853U (en) Lighting circuit and lamp comprising same
CN217238999U (en) LED double-backup screen
CN112071260A (en) Micro LED light-emitting drive circuit and drive method

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
GR01 Patent grant
GR01 Patent grant