Presentation on theme: "PROJECT REPORT ON:- MICRO-SD CARD BASED FILE SYSTEM USING FAT 16/32 TO PLAY MUSIC FILE WITH THE INTERFACING OF LCD AND SWITCHES TO MICROCONTROLLER THROUGH."— Presentation transcript:
PROJECT REPORT ON:- MICRO-SD CARD BASED FILE SYSTEM USING FAT 16/32 TO PLAY MUSIC FILE WITH THE INTERFACING OF LCD AND SWITCHES TO MICROCONTROLLER THROUGH MP3-MODULE UNDER THE GUIDANCE OF MR. Naresh Mandal (Asst. Professor of ECE dept) PREPARED AND SUBMITTED BY : DEEPTARKA BHADRA (ECE) WRIBHU KOTAL (ECE) DIPAK SEN (ECE) KUNTAL PANJA(ECE) ANINDYA NASKAR(ECE) KOUSHIK PAN(ECE) CALCUTTA INSTITUTE OF TECHNOLOGY P.O. BANITABLA P.S. ULUBERIA DIST HOWRAH W.B
-: Introduction to microcontroller :- The microcontroller is a single chip microprocessor system which consists of CPU, data and program memory, serial and parallel I/O ports, timers and external interrupts. Actually a microcontroller is an entire computer manufactured on a single chip.
-:Block diagram of the project:- Project details:-
-:Practical view:- In this project at first we are going to interface LCD with microcontroller (AT89s52) and also with the switches with that of the microcontroller(At89s52) that is connected with the mp3-module. Here the microcontroller is used for controlling the switches reading, LCD as well as the pulse width generation of the mp3 module. The mp3-module containing memory of micro-sd card based file system in FAT16 or 32 format. Through this mp3- module we can play music file system. The track which will be running in the mp3- module will be displayed in the liquid crystal display(LCD). There will be three switches through which the mp3 will be play/ pause, go to the next mp3 and can go to the previous mp3.
Our aim of the project is to play music file from a micro-sd card based file system using FAT 16/32 file format with the interfacing of LCD and switches to microcontroller through mp3 module. The components which are generally required for doing this project are Micro-Sd card AT89S52 microcontroller. Printed circuit board along with LCD(JHD 162A) perf-board, strip-board. Three switches. Mp3 module Audio power amplifier. Zip socket, crystal oscillator. -:Equipments required:-
Capacitors and resistances of various values. Power supply with IC chip 7805 and Power cable along with two-pin plug. Transformer, bridge rectifier, network resister(9pin). And finally circuit wires and RMC connectors. Moreover we also require the burner through which we can input the programs. In the course of this project there are some interfacing such as the interfacing of switches with the microcontroller(AT89S52), interfacing of LCD as well as interfacing of sound amplifier with the microcontroller.
ABOUT AT89S52 MICROCONTROLLER? The AT89S52 is a low-power, high-performance CMOS 8-bit microcontroller with 8K bytes of in-system programmable Flash memory. The device is manufactured using Atmel’s high-density nonvolatile memory technology and is compatible with the Indus-try-standard 80C51 instruction set and pin out. The on-chip Flash allows the program memory to be reprogrammed in-system or by a conventional nonvolatile memory pro-grammar. By combining a versatile 8-bit CPU with in-system programmable Flash on a monolithic chip, the Atmel AT89S52 is a powerful microcontroller which provides a highly-flexible and cost-effective solution to many embedded control applications. The AT89S52 provides the following standard features: 8K bytes of Flash, 256 bytes of RAM, 32 I/O lines, Watchdog timer, two data pointers, three 16-bit timer/counters, a six-vector two-level interrupt architecture, a full duplex serial port, on-chip oscillator, and clock circuitry.
-:BLOCK DIAGRAM OF AT89S52 MICROCONTROLLER:-
-:Introduction to micro-sd card:- A type of removable flash memory card designed specifically for mobile phones. Like any flash memory card, it can be used to store various types of files, including photos, videos, music, or software. Micro-SD is one of the smallest memory card formats available; a micro-SD card is about the size of a fingernail. It was designed to be smaller than competing formats, to allow phones using the format to be smaller overall. There are adapter cards that allow a micro-SD card to be used in an SD card slot. This is a convenient way to use a micro-SD card with a card reader on a PC, to transfer files between a PC and a phone. Micro-SD cards with a memory capacity larger than 2 GB are micro-SDHC, which uses the exact same technology as SDHC, just in the smaller micro-SD size. The "HC" stands for "high capacity". These cards can only be used in micro-SDHC-compatible devices. In our project we have used micro-sd card of Hitech of 4GB memory.
The micro-SD Card bus has a single master (application), multiple slaves (cards), synchronous star topology. Clock, power and ground signals are common to all cards. Command (CMD) and data (DAT0 - DAT3) signals are dedicated to each card providing continues point to point connection to all the cards. During initialization process commands are sent to each card individually, allowing the application to detect the cards and assign logical addresses to the physical slots. Data is always sent (received) to (from) each card individually. However, in order to simply the handling of the card stack, after the initialization process, all commands may be sent concurrently to all cards. Addressing information is provided in the command packet. Micro-SD bus allows dynamic configuration of the number of data lines. After power up, by default, the micro-SD Card will use only DAT0 for data transfer. After initialization the host can change the bus width (number of active data lines). This feature allows easy trade off between HW cost and system performance.
LIQUID CRYSTAL DISPLAY It is a flat panel display, electronic visual display, or video display that uses the light modulating properties of liquid crystals (LCs). LCDs do not emit light directly they require external light for the picture to be visible. This consists of a cold cathode fluorescent lamp (CCFL) that is situated behind the LCD panel. For battery-operated units (e.g. laptops) this requires an inverter to convert DC to AC. LCDs are used in a wide range of applications, including computer monitors, television, instrument panels,
Pin numberSymbolLevelI/OFunction 1Vss--Power supply (GND) 2Vcc--Power supply (+5V) 3Vee--Contrast adjust 4RS0/1I 0 = Instruction input 1 = Data input 5R/W0/1I 0 = Write to LCD module 1 = Read from LCD module 6E1, 1-->0IEnable signal 7DB00/1I/OData bus line 0 (LSB) 8DB10/1I/OData bus line 1 9DB20/1I/OData bus line 2 10DB30/1I/OData bus line 3 11DB40/1I/OData bus line 4 12DB50/1I/OData bus line 5 13DB60/1I/OData bus line 6 14DB70/1I/OData bus line 7 (MSB) -:LCD Module Pin Assignment:-
-:Controlling Inputs with Switches :- A microcontroller can’t make any decisions on controlling something in the outside world without sensing something about it. The simplest thing for a microcontroller to check is the status of a switch. Is it open or closed? Switches can be used as operator controls. They can sense if a door is open or closed. A limit switch can detect if a part of a machine has reached a certain position. Switches can be used for many purposes, but they can be in only one of two states: On (closed) or Off (open). Fig-a shows two common ways to interface switches to a microcontroller input. Input P0 uses R1 as a pull up. If SW1 is open, P0 will be high, and read as a logical 1. When SW1 is closed, pin P0 is shorted to ground, or 0V, and P0 will read as a logical 0. In our experiment we have used three switches for play-pause, next and previous Data. This switches are interfaced with AT89s52 microcontroller connected with the Mp3 module.
In this project we are using a mp3 module through which we will play the mp3 songs. This module play specified audio from a SD or micro-sd card, according to the capacity of the micro-sd card. This mp3 player module is ideal for any applications or projects that need to control and play a specified mp3 file. In this module a small light is present which on/off according to the bit of the mp3 which is playing in the module. The figure of corresponding mp3 player is given below. Features :- Play mp3 files directly from the micro-SD card, Up to the memory status of the micro-card, Rx, Tx TTL level signals, Stereo Audio output, Power supply: 6-12V DC etc. -:MP3-module:-
Potentiometer:- A potentiometer, informally a pot, is a three- terminal resistor with a sliding contact that forms an adjustable voltage divider If only two terminals are used, one end and the wiper, it acts as a variable resistor or rheostat. Potentiometers are commonly used to control electrical devices such as volume controls on audio equipment. Amplifier:- An electronic amplifier, amplifier, or (informally) amp is an electronic device that increases the power of a signal. It does this by taking energy from a power supply and controlling the output to match the input signal shape but with a larger amplitude. In this project we use 6W audio power amplifier—CTC810(monolithic integrated circuit).
-:Circuit diagram of IC- CTC810:- The CTC810 is a monolithic integrated circuit in a 12-lead quad in-line plastic package, intended for use as a low frequency class B amplifier. FEATURES:- A wide range of supply voltages (4 to 20V) High output current (up to 2.5A) High efficiency (75% at 6W output) Very low harmonic and cross-over distortion Built-in thermal shut down protection circuit
In power supply portion two integrated circuits of 7805 IC and 7812 IC chip are used, which will divide the incoming supply to 5v and 12 volt respectively with the transformer which is converting the 230v ac current to volt. PCB board of LCD gets the power supply from strip board power supply board. -:Power supply:-
Conclusion:- All the connections which we made were correct and we had successfully checked all the circuits(interfacing circuit, amplifier circuit, power supply circuit) in the printed circuit board as well as in the Vero-board, strip-board. All the components were free from short circuit. The potentiometer also received the signal from the mp3 module correctly and amplify those current mp3 file system through amplifier circuit. And finally all the interfacing program ran successfully displaying the mp3 format files through the working of switches. The advantage of this project is that we are getting a digital output, and we are interfacing the components with the microcontroller. Scope of Future Plan:- In our project we interfaced LCD and switches with microcontroller (AT89s52) and we play mp3 format file from mp3 module which is also interfaced through microcontroller. So in the future plan we want to play video files of various formats like.mp4,.avi etc. and also we want to display more information of the mp3 file through microcontroller by lengthening the program. Since we had inserted the EEPROM circuit in the PCB, we can use that component for future storing purposes. With the interfacing of LCD and the switches, in the later part we also want to interface the mp3 module with microcontroller. -:CONCLUSION & SCOPE OF FURTHER WORK:-
-:ACKNOWLEDGEMENT:- We take immense pleasure in thanking Prof Dr. S GANGAPADHAY (H.O.D of ECE DEPT.) for having permitted us to carry out this project work. We wish to express our deep sense of gratitude to my Internal Guide, Mr. NARESH MANDAL (Asst. Professor of ECE DEPT. ) for his able guidance and useful suggestions, which helped us in completing the project work, in time. Finally, yet importantly, we would like to express our heartfelt thanks to my beloved parents for their blessings, our friends/classmates for their help and wishes for the successful completion of this project. DEEPTARKA BHADRA(ECE) DIPAK SEN(ECE) WRIBHU KOTAL(ECE) KUNTAL PANJA(ECE) KOUSHIK PAN(ECE) ANINDYA NASKAR(ECE)
“The 8051 Microcontroller” book written by ‘Muhammad Mazidi’. “Design with Microcontroller ” book written by ‘John.B.Peatman’. “Microcontrollers” book written by ‘Ajay V Deshmukh’. 8051 microcontrollers an application based introduction by David Calcutt, Fre Cowan, Hassan Parchizade. K.J.Ayala, The 8051 microcontroller Tiny AVR Microcontroller Projects for the Evil Genius.