Sie sind auf Seite 1von 23

RGB Based Project Using ATMEGA 16

SYNOPSIS
Mentor:-Mr.Shiv Narain Gupta
By
1.Avantika Singh
2.Rahul Sharma
3.Ravi Raushan
4.Rajesh Kumar
B.Tech 4thYear(ECE)
Project Objective

• Generate multiple colours from RGB


primary colours.
• Interfacing with Bluetooth.
• Get familiar with ATMEGA 16
microcontroller.
Detailed Functionality

The project is about RBG lights in which the lights are controlled with the help of
Bluetooth module. In it the lights glows according to the frequency of the music
which is being played.
Software Used

• ATMEL STUDIO:ATMEL STUDIO is the integrated


development platform (IDP) for developing and
debugging all AVR® microcontroller. The
ATMELSTUDIO IDP write, build and debug
applications written in C/C++ or assembly code.
• Flash Magic: Flash Magic is a PC tool for programming
flash based microcontrollers from NXP using a serial
or Ethernet protocol while in the target hardware.
About RGB :-

• The RGB color model is an additive color model in which red, green
and blue light are added together in various ways to reproduce a broad
array of colors.
• The name of the model comes from the initials of the three additive
primary colors, red, green, and blue.
• The main purpose of the RGB color model is for the sensing,
representation, and display of images in electronic systems, such as
televisions and computers, though it has also been used in
conventional photography.
• Before the electronic age, the RGB color model already had a solid
theory behind it, based in human perception of colors.
Concept of RGB Light:-

• RGB LEDs are basically the combination of the 3


LEDs (Red, Green and Blue) fused into a single
package.
• It consists of four pins totally out of which three of
them for the three different colors.
• The 4th pin is common for all three colors and it’s
either Cathode or Anode.
Concept of Color
• Color is the visual perceptual
property corresponding in humans to
the categories called red, blue,
yellow, green and others.
• So the primary colors of light are Red,
Blue and Green. All other colors we
see are formed by mixing of these
three colors in different proportions.
Table showing color composition of primary
colors
Module Used:-

• PWM-A square wave consist of two important parameters namely ON


Time and OFF time. OFF Time is the duration for which a wave is at
minimum amplitude (i.e. 0 or GND) and ON Time is the duration for
which the wave is at maximum amplitude in a particular cycle. The ON
Time is also called as “Pulse duration” or “Pulse width” and varying this
parameter is called as Pulse Width Modulation.
Time period= ON Time + OFF Time
How to Achieve PWM in ATMega16

• ATMega16 consists of two 8-bit and one 16-bit timer. We


would be using two of them to generate PWM signals. All we
have to do is to manipulate the Timer Counter/Control
Register (TCCRx) values.
• Set the register values as follows:
• TCCR0|=(1<<WGM00)|(1<<WGM01)|(1<<COM01)|(0<<CS0
2)|(0<<CS01)|(1<<CS00);
• TCCR1A|=(1<<COM1A1)|(1<<COM1B1)|(1<<WGM11);
• TCCR1B|=(1<<WGM13)|(1<<WGM12)|(0<<CS12)|(0<<CS11
)|(1<<CS10);
• ICR1=255;
Set Up For RGB System:-
• RGB LEDs are basically the combination of the 3 LEDs (Red, Green and
Blue) fused into a single package.
• It consists of four pins totally out of which three of them for the three
different colors.
• The 4th pin is common for all three colors and it’s either Cathode or
Anode.
Schematic Diagrams
Introduction to IC Atmega 16
AVR ATmega16 Microcontroller
Features Of ATmega16
It’s a 40 pin IC.
ATmega16 is a low-power CMOS 8-bit microcontroller based on the AVR
RISC architecture.
16-kilobytes flash programmable memory
512 bytes EEPROM
1 kbytes SRAM (Static RAM is a random access memory that retains data
bits in its memory as long as power is being supplied).
32 general Purpose I/O lines
32 general purpose registers
16 MHz Clock frequency
REGISTER DESCRIPTION OF I/O PORTS
Implementation
For making the hardware, it comprises of :
of Hardware
Avr ATmega16 Microcontroller
RGB LED strip
Register 150ohm
Potentiometer 5k
Pc to Write the code
Bluetooth module
Battery to derive the circuit
Design Structure
Uses of RGB light
• RGB lighting is great for
performance lighting. It’s bright,
beautiful and enticing.
• Though, many areas of the home
and office are also highly suitable
for the incorporation of color
LEDs.
In the form of under cabinet
lighting, RGB lights can be placed
in the kitchen and laundry room
simply for the presence of color.
Healthy & Relaxing

• Emotionally therapeutic and potentially beneficial to your skin.”


• They’re explained to have anti-inflammatory and antibacterial effects.
• This reason alone sounds good enough! Green light supposedly reduces
tension while pink is great for drawing in the feeling of love.
Less Heat

• LEDs use less energy


• Emit less heat
• cheaper
• saving money
• resources
THANKYOU…