musical water fountain using microcontroler pdf
#1

Ask about musical water fountain using microcontroler pdf
Reply
#2
musical water fountain using microcontroler pdf

Introduction

Musical Fountains fascinate me. In a musical fountain, art and engineering come together to create a piece of beauty. An aesthetically designed fountain and a controller together can create a symphony with water. Our final project is a musical water fountain loosely based on the fountain in front of the famed Bellagio hotel and casino. The basic idea of the project is to take an input from an iPod (or any sound source), sample the sound and break it down to different “sequencies” by Walsh Transform , then use the output to turn on various solenoid valves. We first used a two-stage low pass filter, and then performed Fast Walsh Transforms on the sound source to split the sounds into different frequency ranges. Each different range will correspond to a different valve which comprises a musical water fountain operating to the beats and rhythms of the song.

High Level Design:

Currently, we have split the sound source into eight frequency ranges. The reasons for eight fountain heads are: 1- aesthetically appealing and 2- there are 8 pins for a standard I/O port on the Atmel Microcontroller. Since the purpose of this final project is to create a water fountain, we needed a pressurized water source. Originally, we had thought about using fish pumps; but then realized they did not have enough pressure. The pressure coming from the sink is between 30 and 40 psi, and therefore we decided to attach our input source to the sink.

There are a few important functions we needed to implement in our project. At the start of our project, the sound source was sampled using the A/D converter on the Atmel microcontroller. From the A/D converter, the samples undergo a Walsh transform (implemented in software) to split the samples into various frequency ranges. From there the individual ranges activate the different output controls, which correspond to the opening and closing of the solenoid valves. The output controls can also activate the specific LEDs that correspond to the activated valve. In this manner, a user can both see the valves turn on and the corresponding LEDs light up. We also have pushbuttons to control the mode (single or multi) and to change the threshold.

There are a number of safety issues that we have to contend with in the implementation of our mini “Bellagio fountain”. Additionally, there are many user specifications we must also decide to minimize the safety risks. The obvious issue for our project is water damage. Most of our components cannot be mixed with water. Water will short out most of circuitry, and even cause minor electrical shock to the unlucky person standing near the project if this were to occur. We must ensure the water is separated from the electrical components with superior insulation. In order to do so, we decided to both electrically isolate the valves using the optoisolator circuit (see Fig. 4) and point the valves downward. The pressure needed to activate the valves also caused the water to shoot too high, and water was uncontrollably hitting everything around the sink when the valves were pointed upward.

Program/Hardware Design:

Software

One of the most difficult parts of our program was determining which transform we should use. Originally, we had decided to use the Fourier Transform, because we felt we understood it the best. However, the Fourier transform took too many cycles, and was not fast enough. We then had to determine whether to use the Fast Fourier transform, which splits the sound waves into different frequency ranges, or the Walsh transform. The Walsh transform is faster, and much easier to code; in fact Professor Land had already written a basic Walsh transform which we could modify for our purposes. Unfortunately, the Walsh transform does not directly break up the sound waves into frequency ranges. Instead, it breaks up the sound waves into sequency ranges, which has a linear relationship to frequency ranges. Rather than sine and cosine, the ranges are broken into cal and sal equations. The result is often thought of as "a poor-man's fast Fourier transform (FFT)" representing the conversion of a time-sampled signal into an equivalent frequency-sampled form. Every range has roughly 150 Hz frequency range. In the end, we chose the Walsh transform, due to its speed.

Another issue we had to deal with was how many valves should be activated at any given time. Originally, we had determined to only activate one valve at a time, due to concerns about water pressure. However, when we received Professor Land’s test code (which was designed for LEDs) multiple LEDs would turn on at any given time, and the result looked very good. We could not determine which mode was better, and so we implemented a button which would change the mode between single and multi. In single, only the sequency band with the most information would have its valve and LED activated. In multi, any sequency bands which have a content value above a certain threshold would light up.

Different songs respond better to different threshold values. If the song is a particularly muted song, a high threshold will allow no LEDs or very few to be activated. However, if the threshold is too low, all the LEDs will be activated. A default value of 40 was set for the threshold, but two buttons were implemented to allow the threshold value to be changed so all songs would be implemented correctly in our program.

For TCCR0 our prescalar is 64. This means that every 250 ticks in the program counter corresponds to one millisecond. Being that our OCR0 also equals 250, this means the program will call the interrupt compare handler every millisecond. While we check the ADC and update our Walsh transform values, we do not update the LEDs or the valve controls every millisecond. We only update these every 200 milliseconds, as the switching time for the valves would then be too much and the valves would not function properly.

Circuit

The sound source or music can be fed from any standard player (mp3, cd, walkman, pc) with the 3.5mm stereo phone jack. We used a simple 2-to-1 splitter so the music can be played through a speaker and inputted into the Analog to Digital Converter (ADC) port of the microcontroller at the same time. The sound source from a standard player (ex. mp3) can not be directly used for ADC because the output signal maximum amplitude is usually +/- 1.5 V. The input signal therefore needs to have a DC bias which eliminates negative voltages and still stay within the range of the ADC reference voltage of 5V. Even though the audible range of a human ear is 20Hz-20kHz, we decided to sample the music at 2kHz to allow for fast ADC conversion and simple breakdown of frequency ranges. At this sampling rate, we can detect tones at up to 1kHz which will cut off high frequency treble sounds but still be useful for decoding typical music. As a result, we low pass filtered the input signal through two stages for sharper cutoff at 1kHz, removed the DC component of the sound source, and then biased the signal at 2.5V. The following Fig. 7 shows the input circuit:

We added additional functionality to our project by allowing the user to select the mode of operation for our valves and change the threshold values to produce the best pattern for the type of song playing. The three push buttons are “Mode”, “Threshold Up”, and “Threshold Down”. The default mode is set at single valve operation and the default threshold at 40. Pushing the Mode button will toggle between Single and Multi valve operation. The threshold value can range from 10-80 with a change of +/-10 depending on which button is pressed. All three push buttons have 20Kohm pull-up resistors and are soldered on to the protoboard.

The output circuits consist of the LED display and the optoisolators for the On-Off control of the eight solenoid valves. Port B of the Atmel microcontroller is used as the output controls for both the LED and the valves. The LEDs and solenoid valves are arranged in Walsh Transform sequency order. We wired the LEDs and their respective valves from lowest sequency or frequency order on the left to the highest sequency range on the right. Since the valves are normally open, the LEDs and the valves need to turn “on” when the corresponding output pin is low. The use of inverters are needed to light the LEDs when the output is low. Optoisolators are used for each solenoid valve so they can be driven by 24V power supply and also isolate the MCU from potentially harmful inductive spikes. Fig. 9 is a circuit diagram of the output controls and LED displays.

For a water source, we use any standard kitchen/bathroom sink. A three stage adapter screws into the faucet connection and reduces it to 3/8’’ ID poly tubing. This tube is then sent into a port on the back of our container. Figure 10 is a diagram showing how water is distributed to the eight valves. After the first T splitter, the tubing is reduced to 3/16’’ ID. This size is based on the adapters and splitters we were able to sample free of cost. We also felt that since the input 3/8’’ tubing is being split eight ways, reducing the tube size would help maintain water pressure, which was an ongoing concern. The design is fairly straightforward – coming in with single tube, the water is divided using T splitters into 2, 4, and then 8 different connections. All T splitters and connections to the valves are quick connect fittings, which as the name states are much easier than using barbs and hose clamps. At first we were concerned, but the quick connect fittings are strong enough to handle our water pressure, and we had no leaks from these at any point during testing.

The valves used in our project are 3-way, which was not our original design. We originally planned on having 2-way valves, and a separate, single outlet control for the water in case all valves are off. However for these 3-way valves when a voltage is applied, any water being pumped to the input is sent out the third port. Another set of quick connect adapters is screwed into these outlet ports and connected in similar fashion to the inputs, with a separate outlet tube for each set of four valves. This system adequately handles water and prevents leaks when water is on, but all valves are turned off.

Another decision we had to make was how to secure the valves to our plastic container, ensuring that only the output tip would be outside the container. Each valve came with an adapter screwed on the top output port (see Figure 10). We decided to cut a hole in the top of the container small enough that the tip of the valve would stick through the lid. Then screwing the adapter on from the outside locks the valve into place. Eight equally spaced holes were measured and marked, and the eight valves fit in the container perfectly. At first we were unsure how to cut the holes in the lid, since the plastic can shatter when cut. Based on a suggestion from Professor Land, we heated a nail and used it to burn the holes in the lid. After using a knife to clean up the edges, we had eight properly sized holes to secure the valves onto the lid. The benefit of this setup is that no additional adapters or tubing are needed in order to visibly shoot water from the container.

One notable feature of our project is that it was originally planned as a fountain that would shoot water up in the air from the valves, and then have it fall back down into a collection container. As will be discussed below, we were constantly plagued by water pressure difficulties. The eventual solution to this problem was, among other things, to turn our “fountain” upside down and have the container be directly above the sink and shoot water down instead of upward (See Fig. 11). With the aid of gravity, there is enough pressure to prevent the valves from being plugged and failing to re-open. This shift in our design was caused entirely by the nature of the valves, and we are confident that with more ideally suited valves, our initial design of an upward fountain would have succeeded. Because our valves now shoot down instead of up, there is no need for a collection container. By positioning the container above the sink, there is very limited splashing. As it turns out this design is cleaner and safer than our initial design. In order to position the contain above the sink we constructed stand from 2x4s that sits on the counter level with the sink, and the container rests approximately 16 inches above the counter.

Evolution of Our Design

The implementation of our design underwent numerous revisions over the course of the project. First off, the solenoid valves we were able to obtain cheaply were much heavier duty than what we had planned on. Initial testing with our most powerful fish tank pump (~ 250 gallons/hr) hooked up to just one valve showed that we did not even have enough water pressure to power a single valve. The minimum pressure to have the valves shoot water out was higher than we could generate, and purchasing more pumps would cause us to far exceed our budget. To solve this problem, Professor Land suggested that we use a kitchen faucet to provide water to our valves. The line pressure for indoor plumbing is around 30 psi, far greater than what we could generate with a fish tank pump. Testing with the faucet hooked directly to a single pump, we found even turning the faucet on a little water would shoot to the ceiling. We thought our pressure problems were over.

However this solution created a new problem - the need for an outlet for the water being pumped into the system. Fish tank pumps have an automatic shutoff, so if all the valves are closed, the pump senses the feedback and shuts off. This prevents the pump from continuing to pumping water into the tubing. However the faucet does not have this feature. Once the faucet is turned on, water is being continuously pumped into the input port of the solenoid valves. However for much of the time (especially in single mode), water is not being allowed to pass out the top of the valves. Without an outlet port, the pressure would build up within our tubing and most likely lead to a burst connection. The first design we constructed is shown in Figure 12. Water enters the container and is split into two directions, one to each set of four valves. This was done because we felt that if a manifold of eight valves in series was created, there may be pressure difficulties farther down the line if, for example, the first few valves in the line were powered. Two sets of four valves in series should alleviate this problem to some extent. The final valve in each line is then connected to an outlet tube that returns the water to the sink. Since we had outlet tubes in the design, we decided to cap the third port of the valves to prevent water from flowing through when the valve is deactivated. The valves came with plastic caps, which we glued using a heavy duty waterproof adhesive. Unfortunately, testing this design we found that we still had problems with water pressure. The fountain would work to music for a little while (10-20 seconds), but then the pressure would fail to fully open the valves. Instead of shooting water in the air like a fountain, water would just dribble out of the top. In addition, when we attempted to plug our outlet tubes to test whether this would increase the pressure enough to open the valves, the pressure burst the glued caps out of the third port. This made us decide to use the third port as an outlet for each valve, and the water distribution was redesigned to the final method we used (described above).
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: musical bell using um66 ppt, abstract musical bell using um66, automatic gate light with musical bell pdf, mini dancing fountain pdf, microcontroler lpc 2148 arm7 show the about this for mini project, timing diagram of musical fountain, musical fountain circuit diagram,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  pdf k53 learners test questions and answers 2015 pdf 2 11,191 18-05-2018, 06:21 PM
Last Post: Guest
  auto credit energy metering system using mifare card with pdf 2 1,585 12-09-2017, 05:12 PM
Last Post: Guest
  download industrial waste water sjbit notes 2 1,636 09-06-2017, 08:25 AM
Last Post: Guest
  10cv835 idustrial waste water treatment vtu notes pdf 4 2,156 19-05-2017, 02:33 PM
Last Post: jaseela123d
  source code for task scheduling using genetic algorithm using java 2 8,520 11-04-2017, 08:31 PM
Last Post: Guest
  electronic eye controlled security system using ldr pdf 3 8,946 15-02-2017, 12:42 PM
Last Post: jaseela123d
  pdf anchoring script in english pdf 2 1,780 21-07-2016, 12:49 PM
Last Post: jaseela123d
  rain water harvesting marathi slogans 1 1,224 20-07-2016, 04:00 PM
Last Post: dhanabhagya
  intelligent water drops algorithm code in c 2 681 16-07-2016, 04:15 PM
Last Post: jaseela123d
  drama script on save water in hindi 2 2,646 16-07-2016, 02:58 PM
Last Post: jaseela123d

Forum Jump: