Jeas 0516 4166-PUBLISHEDOKPV
Jeas 0516 4166-PUBLISHEDOKPV
Jeas 0516 4166-PUBLISHEDOKPV
net/publication/303788955
Smart electronic system for dancing fountains control capable to create water
and lighting scenarios synchronized with a music track
CITATIONS READS
5 7,546
3 authors:
Giorgio Cavalera
Cavalera Sistemi s.r.l.
40 PUBLICATIONS 185 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Design of driving and control systems by Rapid prototyping Boards View project
All content following this page was uploaded by Paolo Visconti on 25 March 2020.
www.arpnjournals.com
E-Mail : paolo.visconti@unisalento.it
ABSTRACT
This work regards on hardware and firmware development of an electronic control and driving system for dancing
fountains, able to manage water and lighting scenarios synchronized with mp3 music files stored on an external SD
memory card connected to the designed system. The smart PIC-based control unit reproduces the music file related to a
particular scenario and drives, in a synchronized way, fountain’s LED-based headlights and water pumps to create amazing
light and water plays.
Keywords: microcontroller; control and driving system; dancing fountains; light and water plays, hardware and software development.
INTRODUCTION which the system stores mp3 music files and the related
In last years, people’s needs in the fields of scenarios. In this way, the user can create custom
aesthetic taste, comfort and attention to details have scenarios on the basis of the own fountain, through a
considerably changed. In outdoor furniture field, more and dedicated software supplied with the control system. The
more people requires particular features to make their architecture of a typical dancing fountain managed by the
spaces cozy, liveable and original. This trend has also designed control system is reported in Figure-2: the
affected a classical element of outdoor furnishings: the controller drives, through dedicated power drivers, the
fountains. The simple gush of a fountain now is not water pumps and LED-based headlights in order to realize
enough, people wants and tries a greater visual impact. In scenarios with amazing water and light plays, and at the
order to meet this demand, specialized designers have same time it plays the music through the sound system.
created the dancing fountains (or musical fountains),
which combine water and light plays on the basis of a
reproduced music track. This new type of furniture has
collected considerable success in recent years, creating a
new and highly demanded field in the fountains' market.
Two famous examples of dancing fountains already
installed in our cities are reported in Figure-1: on the left
the one of Placa d'Espana, Barcelona and on the right the
one of Bellagio's casino, Las Vegas.
5669
VOL. 11, NO. 9, MAY 2016 ISSN 1819-6608
ARPN Journal of Engineering and Applied Sciences
©2006-2016 Asian Research Publishing Network (ARPN). All rights reserved.
www.arpnjournals.com
software represents the state of the eight digital outputs at application. It is provided with an mp3/wav decoder with a
every moment, as reported in the block diagram of Figure- reliable digital signal processing (DSP) chip, that exhibits
2, used to drive the water pumps and LED-based high performances and low power consumption, combined
headlights. Each file is related to a particular scenario and to a 18-bit digital-analog converter (DAC) and to an audio
is associated to a specific (.mp3 or .wav) music file. All amplifier for earphone. The VS1011e embedded chip, with
scenario and music files are stored on SD memory card Slave role, receives as input a bit stream through the Serial
connected to the designed control system. Peripheral Interface (SPI) bus, decodes it and sends the
result to the 18-bit sigma-delta DAC.
Architecture of the designed control system The entire PIC-interfacing and decoding process
The Figure-3 shows an architecture scheme of the is controlled by the Serial Control Interface (SCI) module,
developed control system for musical fountains. used for reading/writing of control registers that select the
functioning mode, set the clock, choose the visual effects,
set the volume and so on. It's also possible to set custom
specifications and to save them into a user section of the
RAM memory of 0.5kB capacity. The Figure-4 shows the
internal architecture of the VS1011 mp3 decoder.
5670
VOL. 11, NO. 9, MAY 2016 ISSN 1819-6608
ARPN Journal of Engineering and Applied Sciences
©2006-2016 Asian Research Publishing Network (ARPN). All rights reserved.
www.arpnjournals.com
The chosen RAM module is the Microchip power supply voltage (3.3V). The adopted and realized
23K256 IC, which has the following technical features: circuital solution in shown in the Figure-7.
SPI access interface;
[2.7 ÷3.6]V range for power supply voltage, suitable
also for the other components and devices of the
realized controller;
static memory: no refreshing needs;
256 KBcapacity.
The chosen memory capacity is more than
enough, since for a single scenario with a music file of 5
minutes duration; about 24 KB of memory are needed. In
order to establish start data and time of a programmed
scenario, the control system uses the ST Microelectronics
M41T93 RTC device. The designed system controls the
drivers for the water pumps and the LED-based headlights.
These drivers represent the power section of the overall
system; therefore they must be insulated from the smart
PIC-based processing section. For this purpose, it was
realized an intermediary driver which adapts the voltage
levels and, at the same time, insulates the power section
from the control section of the board, through the TPL-627
opto-couplers with a Darlington BJT transistor as a
sensing element. The circuital scheme, shown in Figure-6,
is composed by the TPL-627 opto-couplers driven by
PIC's digital outputs for water pumps and headlights
control and by the power lines (J6 output connector) for
the managing of power drivers.
PIC’soutputs
Figure-7. Realized circuit to get electrical isolation of
input lines connected to the transducers used in the
designed control system.
5671
VOL. 11, NO. 9, MAY 2016 ISSN 1819-6608
ARPN Journal of Engineering and Applied Sciences
©2006-2016 Asian Research Publishing Network (ARPN). All rights reserved.
www.arpnjournals.com
5672
VOL. 11, NO. 9, MAY 2016 ISSN 1819-6608
ARPN Journal of Engineering and Applied Sciences
©2006-2016 Asian Research Publishing Network (ARPN). All rights reserved.
www.arpnjournals.com
Figure-11. VS10xx Proto Board forthe connection of Figure-12. Circuital scheme of the realized prototype of
VLSI Solution VS1011emp3 decoder to the realized designed control/driving system.
system prototype.
In Figure-13 is reported a complete image of
The VS10xx proto-board is a simple stand-alone realized prototype of the control system, which shows the
mp3/wav reader and constitutes an easy platform for all interfacing of each hardware module described during this
VLSI Solution's products. It has embedded the slot for a paragraph: in the magnified image on top left, the pull-up
common 1.5V AA battery, the VS1011e mp3 decoder resistors and VDD regulation resistors can be seen, while
integrated into the LQFP package, a 12.288 MHz quartz, on bottom right corner, the impedance matching of the
an EEPROM memory for firmware loading, three buttons, SCK line is shown.
an SD connector (only for stand-alone uses), appropriate
interface circuits for earphone audio output and for the
microphone input, a boost circuit for rising the 1.5V power
supply voltage and a series of jumpers and connectors for
custom circuit configurations. Thanks to these connectors,
the VS10xx proto-board has been connected to Microchip
PICDEM HPC board and then to the microcontroller. In
this case too, the [0-5] V DC microcontroller's voltage
levels have been adapted to [0 - 3.3] V DC voltage levels
required by the mp3 decoder, reducing mother-board
power supply through a voltage regulator. On Microchip
mother-board, there is a connector with three pins, each
connected to a pin of the voltage regulator.
As reported on PICDEM HPC guide, in order to
set voltage to the desired value, a 1.18kΩ resistor with 1%
tolerance must be connected between the 2nd pin (the
central one) and ground. Resistors with these features don't
exist on the market, therefore a resistance of 1.2kΩ (near Figure-13. Hardware prototype of the designed control
to desired value) has been generated through a 1kΩ and a system, assembled in its full version through the
200Ω resistors connected in series. Thanks to this interfacing of different development boards in order to test
resistance, 5V VDD voltage has been regulated to 3.3V its proper functioning.
DC value. The proper operation of PICDEM HPC +
PICtailboards system has been verified and then the Firmware development for managing of scenarios
VS10xx proto-board has been connected in order to consisting of water and light plays
complete the experimental setup. In Figure-12 the circuital The PIC18F8722 microcontroller is driven by a
scheme of the realized prototype is shown. firmware composed of five files, written in C language by
means of C18 compiler of MPLAB development platform.
The implemented functions present an high abstraction
level: the microcontroller's main operations can be
understood by code reading, but the low level operations
remain hidden on both hardware and software points of
view. The flow chart in Figure-14 shows the different
working modes and the sequence of executed instructions
5673
VOL. 11, NO. 9, MAY 2016 ISSN 1819-6608
ARPN Journal of Engineering and Applied Sciences
©2006-2016 Asian Research Publishing Network (ARPN). All rights reserved.
www.arpnjournals.com
5674
VOL. 11, NO. 9, MAY 2016 ISSN 1819-6608
ARPN Journal of Engineering and Applied Sciences
©2006-2016 Asian Research Publishing Network (ARPN). All rights reserved.
www.arpnjournals.com
5675