CN111085384A - MCU-based four-way multi-working mode color music fountain controller - Google Patents

MCU-based four-way multi-working mode color music fountain controller Download PDF

Info

Publication number
CN111085384A
CN111085384A CN201911279842.4A CN201911279842A CN111085384A CN 111085384 A CN111085384 A CN 111085384A CN 201911279842 A CN201911279842 A CN 201911279842A CN 111085384 A CN111085384 A CN 111085384A
Authority
CN
China
Prior art keywords
port
unit
mcu
motor
circuit
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
CN201911279842.4A
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.)
Jilin University
Original Assignee
Jilin University
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 Jilin University filed Critical Jilin University
Priority to CN201911279842.4A priority Critical patent/CN111085384A/en
Publication of CN111085384A publication Critical patent/CN111085384A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B05SPRAYING OR ATOMISING IN GENERAL; APPLYING FLUENT MATERIALS TO SURFACES, IN GENERAL
    • B05BSPRAYING APPARATUS; ATOMISING APPARATUS; NOZZLES
    • B05B17/00Apparatus for spraying or atomising liquids or other fluent materials, not covered by the preceding groups
    • B05B17/08Fountains
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B05SPRAYING OR ATOMISING IN GENERAL; APPLYING FLUENT MATERIALS TO SURFACES, IN GENERAL
    • B05BSPRAYING APPARATUS; ATOMISING APPARATUS; NOZZLES
    • B05B12/00Arrangements for controlling delivery; Arrangements for controlling the spray area
    • B05B12/08Arrangements for controlling delivery; Arrangements for controlling the spray area responsive to condition of liquid or other fluent material to be discharged, of ambient medium or of target ; responsive to condition of spray devices or of supply means, e.g. pipes, pumps or their drive means

Abstract

The invention relates to a four-way multi-working mode color music fountain controller based on an MCU (microprogrammed control unit). The technology belongs to the field of electronic computers. The controller is designed to include the following 5 parts: (1) a power supply unit; the power supply unit comprises a voltage transformation rectifying circuit and a voltage stabilization output circuit, and the 220V alternating current is converted into 24V direct current and 5V direct current to directly supply power to the control system. (2) A minimum system unit; the chip comprises an STC12C5616AD chip, a clock circuit, a reset circuit and a serial port downloading circuit. (3) A mode selection unit; the mode selection unit is combined with the MCU through a dial switch, different working modes are selected through timing detection of pin levels to control the motor and the lamp to work in cooperation with music melody, and therefore the flexible and variable working modes are achieved. (4) A light display unit; and outputting PWM pulses through the MCU pin to drive the LED to carry out different working modes. (5) A motor drive unit; and after receiving the PWM pulse signal, the driving circuit outputs driving current to drive the water pump direct current motor to work.

Description

MCU-based four-way multi-working mode color music fountain controller
Technical Field
The invention relates to a controller of a color music fountain with a flexible and variable working mode by utilizing a singlechip system, belonging to the technical field of electronic computers.
Background
Fountain controllers are a key part of fountain engineering. Most of the traditional music fountain controllers are mainly used for providing outdoor large-scale fountains, and the cost is high. The working modes of only some small music fountain controllers are simplified, the selection is limited, each controller only has one fixed working mode, and therefore the water pump and the light can only work in preset modes, and flexible switching among multiple working modes cannot be achieved according to environmental requirements. The design mainly solves the problem that a fountain controller is arranged in multiple working modes, and meanwhile, the fountain is controlled to be flexibly switched among different working modes, so that the application range of the music fountain is expanded.
Under the existing conditions, the control system is continuously optimized, and the functions of the control system are continuously enriched, which is always the trend of the current technical development. How to make music fountain mode of operation abundanter, more be applicable to the life is the difficult problem of this field continuous research and development always, therefore this design has practical value more.
Disclosure of Invention
The invention provides a better circuit design method on the basis of the traditional fountain controller technology, and designs a four-way color music fountain controller with flexible and variable working modes. The invention solves the problems that the traditional controller scheme is as follows: a multi-working-mode color music fountain controller based on a single chip microcomputer comprises a power supply unit, a minimum system unit, a mode selection unit, a light display unit and a motor driving unit; the mode selection unit is used for selecting different working modes so as to select the water type of the fountain and the color flashing mode of the lamplight; the motor driving unit adopts an ULN2803 Darlington tube as a driving circuit designed for a driving chip and is used for receiving pulse signals from the singlechip, further outputting driving current and driving four direct current motors in the water pump to work according to the pulse signals sent by the singlechip; the light display unit is driven by the R8010, and the driving circuit is designed for receiving a pulse signal from the singlechip to control the LED display current and flickering light according to different working modes by matching with the fountain water column along with music;
further, the power supply unit mainly comprises a rectifying circuit and an LM317 voltage stabilizing circuit, 220V alternating current is transformed and rectified through the rectifying circuit to be converted into 28V direct current, and then 24V direct current and 5V direct current are output through the LM317 voltage stabilizing circuit to be supplied to the motor driving unit, the light display unit and the minimum system unit.
Further, the minimum system unit comprises an STC12C5616AD main control chip, a clock circuit and a reset circuit of the single chip microcomputer and a MAX232 serial port conversion circuit.
Further, the mode selection unit mainly includes four modes, which are STOP, alloen, rotalon, and CHORD. The 2-bit dial switch is used for selecting four working modes, the dial switch is externally connected with a 5V power supply, and simultaneously, the dial switch is externally connected with two lamps, i.e. a GLED lamp and a RLED lamp, and the on-off states of the dial switch are represented respectively through the on-off states of the two lamps, so that the selected water type and the light flicker mode are represented.
Further, the single chip microcomputer light display unit mainly comprises an R8010 driving circuit and four paths of LED light bars, the duty ratio of PWM output by an LED control pin of the single chip microcomputer is controlled through programming, after the PWMD pin of the R8010 receives pulses, a corresponding pulse signal is output by a GATA, and then the size of current passing through the LED light bars is controlled, so that the changes of the brightness, the flicker and other forms of the LED light bars are controlled.
Further, the motor driving unit mainly realizes a driving function by one ULN2803 Darlington tube, wherein the input end of the ULN2803 Darlington tube is respectively connected to four pulse output pins of the singlechip, and the output end of the ULN2803 Darlington tube is respectively connected to one input end of the four direct current motors.
The invention has the beneficial effects that: the invention relates to a controller of a small-sized color music fountain with flexible and variable working modes, which has the advantages of simple circuit structure, various mode changes, convenient operation and low cost and is mainly used in occasions such as home decoration, commercial hall landscape and the like. Firstly, selecting a required working mode through a dial switch, further sending pulse signals with different duty ratios through a single chip microcomputer to control a water pump to finish fountain water type following music rhythm according to tone and beat, and simultaneously, matching LED light with flicker; secondly, the working mode can be flexibly switched at any time through a dial switch according to environmental changes and personal preferences, so that the water pump can be randomly selected to be fully opened, and the working and chord modes are sequentially selected in turn; finally, in a range of various working modes, the mode of fountain water type and light flicker can be switched randomly.
Drawings
FIG. 1 is a block diagram of a design structure of a four-way color music fountain controller according to the present invention;
FIG. 2a is a schematic diagram of a 24V output voltage regulator circuit of the power supply unit of the present invention;
FIG. 2b is a schematic diagram of a 5V output voltage regulator circuit of the power supply unit of the present invention;
FIG. 3a is a schematic circuit diagram of the minimal system of the single chip microcomputer of the present invention;
FIG. 3b is a partial schematic diagram of the internal serial port of the MAX232 level shift chip;
FIG. 4 is a circuit schematic of the mode select unit of the present invention;
FIG. 5 is a schematic diagram of a light display unit of the present invention;
FIG. 6 is a schematic diagram of the motor drive unit of the present invention;
Detailed Description
The following summary is provided to further explain the principles and the present invention, and is not intended to limit the scope of the invention.
Fig. 1 is a block diagram of a circuit design structure of a multi-mode color music fountain controller according to the present invention. As can be seen from the figure, the controller consists of five parts, namely a power supply unit, a minimum system unit, a mode selection unit, a light display unit and a motor driving unit. The functions completed by the five partial modules are as follows: the power supply unit mainly completes the functions of voltage transformation rectification and voltage stabilization output of the power supply and provides power supply for each unit; the minimum system unit is mainly used for finishing the generation of pulse signals and the circuit control function; the mode selection unit is mainly used for selecting the work of a music fountain motor and a light flicker mode; the light flashing unit is used for carrying out light matching according to song rhythm under different modes; the motor driving unit drives the motor to complete work under different music according to control pulses sent by the single chip microcomputer.
Fig. 2a is a schematic diagram of a 24V output voltage stabilizing circuit of the power supply unit of the present invention, and it can be seen from the diagram that a user directly connects a household 220V ac power through a two-phase plug without a special power adapter, and outputs a 24V dc power through a transformer, a rectifier bridge and a voltage stabilizing circuit via a power supply circuit to provide a power supply for a light display and motor driving unit.
Fig. 2b is a schematic diagram of a 5V output voltage stabilizing circuit of the power supply unit of the present invention, and it can be seen from the diagram that the circuit inputs 24V dc power, and the circuit outputs 5V dc power by changing the size of the resistor in the voltage stabilizing circuit, so as to provide power for the minimum system unit.
Fig. 3a is a circuit structure diagram of the minimum system of the single chip microcomputer. The structure diagram can be known as the minimum system core part of a single chip microcomputer (STC12C5616AD), and the minimum system core part comprises a reset circuit and a clock circuit; the reset circuit is connected to the 3 rd pin of the singlechip, the 6 th and 7 th pins are connected to the clock circuit, and the crystal oscillator frequency is 33.1776 MHz. The 15 th and 16 th pins of the singlechip are connected with a mode selection unit, the port P1 is connected with a light flashing unit, and the 11 th, 12 th, 17 th and 26 th pins are connected with a motor driving unit.
Fig. 3b is a partial schematic diagram of the internal serial port of the MAX232 level shift chip. When a developer establishes a bridge for communication between a computer and a singlechip, the singlechip and the computer need to be communicated, a level conversion chip needs to be added at the moment, and the data transmission comprises the following specific steps:
step 1: for example, as shown in fig. 3b, pin T1IN of MAX232 11 is connected to P3.1 of the single chip microcomputer, TTL level is sent from TXD end of the single chip microcomputer, converted to RS-232 level by MAX232 and sent from T1OUT of pin 14 of MAX232, and then connected to cross serial port line matched with the TTL level, and then connected to RXD end of serial port socket of the computer, so that the computer receives data.
Step 2: when a computer (PC) sends data, the data is sent out from a serial port seat TXD of the PC, and then the data is received by an RXD end P3.0 of the single chip microcomputer in a reverse flow direction. The whole data bidirectional transfer process is completed.
Fig. 4 is a circuit schematic of the mode selection unit of the present invention. As can be seen from the figure, a user can operate the 2-bit dial switch, select four different working modes through the switch combination of the dial switch, and simultaneously display the current working mode according to the state of the indicator light.
The method comprises the following specific steps:
step 1: when dial switch 1, 2 keys all closed, pilot lamp RLED and GLED are all not bright this moment, are detected corresponding pin level by the singlechip this moment, select STOP mode simultaneously, STOP the mode promptly, and water pump, light do not work this moment.
Step 2: when the 1 key of the dial switch is turned on and the 2 key is turned off, the indicator light RLED is on, the GLED is not on, the working mode selected by a user is an ALL _ OPEN mode, the single chip microcomputer detects the output of the corresponding pin level control pin, and then the water pump is controlled to be in a full-on mode.
And step 3: when the 1 key of the dial switch is closed and the 2 key is opened, the indicator light RLED is not on, the GLED is on, the user selects the working mode to be ROTATON, the singlechip detects the level of the corresponding pin to control the pin output, and then the water pump is controlled to be in the alternate opening and closing mode.
And 4, step 4: when dial switch 1, 2 keys all opened, pilot lamp RLED and GLED were all bright this moment, and the representative user selects the mode of operation to be CHORD, and the singlechip detects and corresponds pin level control pin output, and then two the biggest water spray capacity work of control water pump, two follow music rhythm mode of operation.
And 5: when the dial switch is switched from the current working mode, the song is not interrupted, and the fountain water type and the light flicker mode are changed from the current position of the song to continue working. If the song process is required to start from the beginning, the working mode needs to be firstly switched to the STOP mode for zero clearing, and then the dial switch is used for switching any working mode.
Fig. 5 is a circuit configuration diagram of the light display unit. Each R8010 driving circuit can drive a 24V rated voltage LED lamp strip, each LED lamp strip is controlled by each control pin of the single chip microcomputer independently, the control pins do not influence each other, and flicker change in different modes is carried out according to song tone melody.
Fig. 6 is a circuit configuration diagram of the motor drive unit. As can be seen from the figure, the part mainly adopts an ULN2803 Darlington tube, pins of an input end are connected with four PWM output pins of a singlechip, and the output end is respectively connected with a direct current motor. The ULN2803 output current is supplied to the DC motor to work under the drive of the singlechip. The method comprises the following specific steps:
step 1: when the working mode of the singlechip is selected, the corresponding pin of the singlechip outputs PWM pulse, and the pulse is input into the input end of the ULN2803 Darlington tube.
Step 2: the ULN2803 can be driven to work when the single chip microcomputer outputs high level, large current is output to supply a direct current motor to work, when the output is low level, the ULN2803 does not work, the motor stops working, and therefore the function of controlling the rotation state of the motor by the single chip microcomputer is achieved.
The foregoing is a detailed description of specific implementations of the invention.
In conclusion, the circuit utilizes the simple combination of the minimization system of the singlechip and the circuit design, so that the circuit structure and the user operation are simple, the basic requirements of the color music fountain are met, the flexible switching of the working modes of various fountains is realized, and the invention is worthy of further popularization in practical application.

Claims (6)

1. Colored music fountain controller of four ways multimode based on MCU, its characterized in that includes: the system comprises a power supply unit, a minimum system unit, a mode selection unit, a light display unit and a motor driving unit; the power supply unit can be directly connected with household 220V alternating current without additionally arranging a power adapter; the minimum system unit adopts an STC12C6AD chip, is suitable for controlling the indoor small landscape decoration fountain, and has low cost and flexible use; the mode selection unit selects the working modes of fountain water type and light by utilizing the combination of the dial switch, thereby achieving different effects, and simultaneously, each working mode can be flexibly switched according to the environmental requirements; the lamplight display unit controls lamplight display by depending on the lamplight driving chip and matching with music and external environment requirements under different working modes; and the motor driving unit outputs PWM pulses according to the singlechip, drives the motor to work under pulse square waves with different duty ratios, and finishes the control of water type change based on music melody.
2. The MCU-based four-way multi-working mode color music fountain controller according to claim 1, wherein the MCU minimizing system comprises a clock circuit of the MCU, a reset circuit, a port P1, a port P2, a port P3, a port P2.6 and a port P2.7 for detecting and identifying the selected working mode, a port P2.0, a port P2.4, a port P3.5 and a port P3.7 for outputting PWM pulse signals to control the motor to work, and a port P1.2, a port P1.3, a port P1.4 and a port P1.5 for outputting control signals to control the light to flash.
3. The MCU-based four-way multi-operating-mode color music fountain controller of claim 2, wherein the mode selection unit comprises a 2-bit dial switch, an LED indicator light; the output of the unit is respectively connected with a P2.6 port and a P2.7 port of a singlechip, and different switch combinations of a dial switch respectively represent four working modes: STOP, ALLOPEN, ROTATON, CHORD, by GLED, RLED two indicator light states the controller is in the working mode; the single chip microcomputer judges the working mode selected by the dial switch by detecting the high and low levels of the pins P2.6 and P2.7 every fixed period, thereby completing the flexible switching of the four working modes.
4. The MCU based four-way multi-operating mode color music fountain controller of claim 3, wherein the light display unit comprises an LED light driving part; the part is a 4-way composition structure; each part drives the LED lamp strip by a driving chip R8010; and a pin 6 of the chip R8010 receives PWM signals with different duty ratios on a pin of the main control chip, and controls the brightness, the flicker and other display forms of the LED lamp strip.
5. The MCU-based four-way multi-mode color music fountain controller according to claim 4, wherein the motor driving unit is a dc motor driven by a ULN2803 darlington tube; the four paths of outputs of the ULN2803 are respectively connected to one port of the four motors, and the four paths of inputs are connected to four pulse output pins of the single chip microcomputer P2.0, P2.4, P3.5 and P3.7; when the ULN2803 input is high, the four output pins output large current to drive the motor to rotate.
6. The MCU based four-way multi-working mode color music fountain controller according to claim 5, wherein the water type control varying with music tempo is realized by controlling PWM duty ratio and timer function by a single chip microcomputer; the larger the PWM duty ratio is, the faster the motor rotating speed is, and the stronger the fountain water flow is; meanwhile, the output time of PWM under different duty ratios is controlled by a timer, and the duration time of the water flow with the same intensity is longer.
CN201911279842.4A 2019-12-13 2019-12-13 MCU-based four-way multi-working mode color music fountain controller Pending CN111085384A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911279842.4A CN111085384A (en) 2019-12-13 2019-12-13 MCU-based four-way multi-working mode color music fountain controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911279842.4A CN111085384A (en) 2019-12-13 2019-12-13 MCU-based four-way multi-working mode color music fountain controller

Publications (1)

Publication Number Publication Date
CN111085384A true CN111085384A (en) 2020-05-01

Family

ID=70396035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911279842.4A Pending CN111085384A (en) 2019-12-13 2019-12-13 MCU-based four-way multi-working mode color music fountain controller

Country Status (1)

Country Link
CN (1) CN111085384A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113012631A (en) * 2021-01-12 2021-06-22 深圳市思坦科技有限公司 Control system and method for Micro-LED

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100890937B1 (en) * 2008-04-07 2009-04-02 주식회사협신랜드스케이프 Method for operating music fountain
CN204335113U (en) * 2015-01-27 2015-05-13 西安科技大学 A kind of light music fountain control circuit
CN104707754A (en) * 2013-12-17 2015-06-17 黑龙江省康格尔科技有限公司 Intelligent music fountain system
CN105537049A (en) * 2016-01-24 2016-05-04 泉州市九都电子科技有限公司 Musical fountain
CN205462960U (en) * 2016-01-11 2016-08-17 广州天研自动化科技有限公司 Multi -functional music fountain control cabinet system of mixed type
CN107340745A (en) * 2017-08-29 2017-11-10 吉林大学 A kind of data acquisition based on MCU, manipulation, Transmission system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100890937B1 (en) * 2008-04-07 2009-04-02 주식회사협신랜드스케이프 Method for operating music fountain
CN104707754A (en) * 2013-12-17 2015-06-17 黑龙江省康格尔科技有限公司 Intelligent music fountain system
CN204335113U (en) * 2015-01-27 2015-05-13 西安科技大学 A kind of light music fountain control circuit
CN205462960U (en) * 2016-01-11 2016-08-17 广州天研自动化科技有限公司 Multi -functional music fountain control cabinet system of mixed type
CN105537049A (en) * 2016-01-24 2016-05-04 泉州市九都电子科技有限公司 Musical fountain
CN107340745A (en) * 2017-08-29 2017-11-10 吉林大学 A kind of data acquisition based on MCU, manipulation, Transmission system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113012631A (en) * 2021-01-12 2021-06-22 深圳市思坦科技有限公司 Control system and method for Micro-LED
CN113012631B (en) * 2021-01-12 2023-08-18 深圳市思坦科技有限公司 Control system and method for Micro-LED

Similar Documents

Publication Publication Date Title
CN101184353B (en) Radio remote address programmable two-way communication digital light control system
CN104144543B (en) Multipurpose intelligent controller of LED lamp
CN101193480A (en) LED color change device for synchronous control and switching of change mode
CN100445634C (en) 256 colourful lamp with random changeable colours
CN109068440A (en) A kind of energy-saving illumination intelligent control method and system
CN109673086B (en) LED drive control circuit compatible with wireless dimming and color mixing and wall switch color mixing
CN102215622A (en) Power control device for LED lighting and lighting system
CN106678734A (en) Intelligent dimming system and method of light guide pipe illumination device
CN111085384A (en) MCU-based four-way multi-working mode color music fountain controller
CN110572895B (en) Primary and secondary lighting device, control method of primary and secondary lighting device and intelligent lighting system
CN107277981A (en) A kind of Internet of Things intelligent switch
CN201018692Y (en) Universal power supply input lamp string controller
CN106612577A (en) Power switch brightness adjusting LED lamp controller and control method thereof
CN205657877U (en) Intelligence lighting system of family
CN106793244A (en) LED intelligent illumination system on a kind of wall
CN201134953Y (en) Radio remote controlled address programmable bidirectional communicating digital light controller
CN204362346U (en) Illumination control apparatus and the light fixture with sleeping pattern
KR20020078630A (en) Apparatus for regulating intensity of illumination
KR200339292Y1 (en) The switch possible selection lighting
CN2303549Y (en) Intelligent curtain controller
CN201575371U (en) Artwork illuminating device
CN102300356A (en) Light source control method, device and system
CN204650219U (en) A kind of control system of the intelligent fireplace with multi-color flame
CN109040634A (en) Television set and USB device method of supplying power to
KR200244853Y1 (en) Apparatus for regulating intensity of illumination

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200501