atmega 32 musical funtain

10
ATMEGA 32 BASED MUSICAL FOUNTAIN

Upload: prashant-kumar

Post on 07-Apr-2015

226 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Atmega 32 Musical Funtain

ATMEGA 32 BASED MUSICAL FOUNTAIN

Page 2: Atmega 32 Musical Funtain

INTRODUCTION-:A musical fountain is a type of animated fountain for entertainment purposes that creates an aesthetic design and sometimes a three dimension image. This is done by using the effects of timed sound wave and timed light or laser against water particles. The water refracts and reflects the light, and in doing so, a three-dimensional image cam be created.

Some are large scale, and use hundreds of water jets and laser emitters, the cost of which runs up into the millions of dollars, although smaller household forms exist where the budget ranges to around a thousand dollars.

Page 3: Atmega 32 Musical Funtain

A BRIEF INTRODUCTION TO ATMEGA32

MICROCONTROLLER-:

When we have to learn about a new computer we have to familiarize about the machine capability we are using, and we can do it by studying the internal hardware design (devices architecture), and also to know about the size, number and the size of the registers.

A microcontroller is a single chip that contains the processor (the CPU), non-volatile memory for the program (ROM or flash), volatile memory for input and output (RAM), a clock and an I/O control unit. Also called a "computer on a chip," billions of microcontroller units (MCUs) are embedded each year in a myriad of products from toys to appliances to automobiles. For example, a single vehicle can use 70 or more microcontrollers. The following picture describes a general block diagram of microcontroller.

Page 4: Atmega 32 Musical Funtain

ATMEGA32: The ATMEGA32 is a low-power, high-performance advance RISC 8-bit microcontroller with 32K bytes of in-system programmable Flash memory. The on-chip Flash allows the program memory to be reprogrammed in-system or by a conventional nonvolatile memory programmer. By combining a versatile 8-bit CPU with in-system programmable Flash on a monolithic chip, the Atmel ATMEGA32 is a powerful microcontroller, which provides a highly flexible and cost-effective solution to many, embedded control applications. The ATMEGA32 provides the following standard features: 32K bytes of Flash, 1024 byte of EEPROM & 2KB INTERNAL S RAM ,32 I/O lines, Watchdog timer, two data pointers, two 16-bit timer/counters, a six-vector two-level interrupt architecture, a full duplex serial port, on-chip oscillator,8-channel 10 bit ADC and clock circuitry. In addition, the ATMEGA32 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes. The Idle Mode stops the CPU while allowing the RAM, timer/counters, serial port, and interrupt system to continue functioning. The Power-down mode saves the

Page 5: Atmega 32 Musical Funtain

RAM con-tents but freezes the oscillator, disabling all other chip functions until the next interrupt

THEORY -: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

Page 6: Atmega 32 Musical Funtain

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.

Page 7: Atmega 32 Musical Funtain

References-:

[1] Matjaz Vidmar: "A Wideband, Varactor-tuned Microstrip VCO", pages 80-86/6-99, Microwave Journal.

[2] Matjaz Vidmar: "Spectrum analyser 0...1750MHz", pages 2-30/1-99, VHF-Communications.

[3] Matjaz Vidmar: "Spektrum-Analyzer von 0 bis 1750MHz, Teil 1: Aufbau der Baugruppen", pages 18-30/4-99, "Spektrum-Analyzer von 0 bis 1750MHz, Teil 2: Anzeigebaugruppen und Abgleich", pages 18-29/1-00, AMSAT-DL Journal