Adding Remote Controller Functionality To Any Stereo
Adding Remote Controller Functionality To Any Stereo
Abstract:. Use of stereo has become common in our lives. They are used in cars, TVs, music players etc. And it is essential at least to
control their volumes. Suppose there is a stereo amplifier which functions pretty well but it does not have a remote. It would be very
annoying if its volume cannot be controlled. So this project is useful as it creates a device which makes use of any existing remote to
control the volume. For controlling the volume, we use a volume controller IC. The electronic volume controller IC PT2258 is a digital
potentiometer which can be controlled using I2C protocols. It is used to control the attenuation for every combination possible from 0
to -79 dB/step. Universal IR receiver is used to decode the IR codes and the data will be transferred to the Arduino which in turn
communicates with the IC PT2258 and controls the volume. The device also consists of two buttons, which are used to synchronize the
IR code of the existing remote with the device. So the user will be able to use the device easily.
Keywords:
www.ijcat.com 249
International Journal of Computer Applications Technology and Research
Volume 6Issue 6, 249-253, 2017, ISSN:-23198656
2.2 Balanced Volume Control Circuit 0 to 79 db. Once attenuation factor has been changed it will
The volume balance control circuit is a circuit that using be communicated to the IC PT2258 using SDA and SCL
to control the music between its source and speakers. The which are used for I2C communication. For this wire library
circuit is based on LM1036N which is a DC controlled tone is used in Arduino. Attenuation factor is changed means that
(bass/treble), volume and balance circuit for stereo an attenuation is given in the output signal when compared to
applications in car radio, TV and audio systems. The main the input. This simply means the volume has been changed or
disadvantages are complexity in design and are expensive.
decreased according to the attenuation factor. This is how the
device controls.
2.3 Digital Volume Control Circuit
Digital volume control circuit is the another popular IC PT2258
circuit using the IC MAX5486. PT2258 is a 6 channel electric volume controller IC
utilizing CMOS technology, specially designed for the new
MAX5486 is a 40K dual digital volume / balance controller
generation of AV multi-channel Audio system. The
that has a pushbutton interface. The IC has a built in bias
attenuation ranges 0 to 79dB at 1dB step, low noise high
voltage source that eliminated the need of an external
channel separation.
circuitry for the same purpose and thereby by reduces
external parts count. The IC also has an LED status indicator BUS INTERFACE
driver circuit which can be used for driving the status
indicator LEDs which indicates the volume level and balance Data are transmitted to and from the microprocessor
level. The IC can be operated from a single or dual power to the PT2258 via the SDL and SCL make up the bus
supply and is available in 24 pin TSSOP package. The interface. It should be noted that the pull up resistors must be
volume control circuit based on MAX5486 can be applied in
connected to the positive supply voltage.
a lot application like personal audio systems, hand held audio
devices, home theatre systems, car audio systems,computer
DATA VALIDITY
audio systems etc. The IC is not really purposeful an
accuracy will be less But the main advantages of our The Data on the SDA line is consider valid and
project is, we can control the volume, without the circuit in stable only when the SCL signal is in high state the high and
hand, using a remote. The synchronized working of both IR low state SDA line can only change when SCL signal is low.
sensors controls volume with any remote. It is an easy and
advanced method comparing with other old methods. Fig 2 : Internal Block Diagram of PT2258
START CONDITIONS
www.ijcat.com 250
International Journal of Computer Applications Technology and Research
Volume 6Issue 6, 249-253, 2017, ISSN:-23198656
HIGH State. The HIGH and LOW States of the SDA Line
can only change when the SCL signal is LOW.
INTERFACE PROTOCOL
A start Condition
A chip Address Byte including PT2258 address.8th
Figure 3: Start and Stop Condition Diagram bit of the byte must be 0. It must always
acknowledge the end transmitted byte.
STOP CONDITION Data sequence (N-bytes+Acknowledge)
FUNCTIONAL DESCRIPTION
www.ijcat.com 251
International Journal of Computer Applications Technology and Research
Volume 6Issue 6, 249-253, 2017, ISSN:-23198656
M LS
SB B
ATTENUATION UNIT BIT
1 1 1 0 A3 A2 A A0 6-Channel- -
A3/... A2/B2 A1/B1 A0/B0 ATTENUATION
1 1dB/step VALUE(dB)+
0 0 0 0 0/0
1 1 0 1 0 B2 B B0 6- channel- - 0 0 0 1 -1/-10
1 10dB/step 0 0 1 0 -2/-20
0 0 1 1 -3/-30
0 0 0 1 A3 A2 A A0 channel No.3- - 0 1 0 0 -4/-40
1 1dB/step 0 1 0 1 -5/-50
0 1 1 0 -6/-60
0 0 0 0 0 B2 B B0 channel No.3- - 0 1 1 1 -7/-70
1 10dB/step 1 0 0 0 -8/...
1 0 0 1 -9/...
0 0 1 1 A3 A2 A A0 channel no.4- -
Arduino and Programming
1 1dB/step
Algorithm
1. Start
0 0 1 0 0 B2 B B0 channel no.4- -
2. Check the buttonstate1 and buttonstate2.If any one
1 10dB/step of them is high, save the IR code received as a and b
respectively
0 1 0 1 A3 A2 A A0 channel No.2- - 3. Read the IR codes available at the IR sensor
1 1dB/step 4. Compare it with a and b.
5. If IR code received is a.
0 1 0 0 0 B2 B B0 channel No.2- - 6. And if the attenuation factor is i is greater than
1 10dB/step 0,Then i = i -5,and jump to step 10
7. If IR code received is b
0 1 1 1 A3 A2 A A0 channel No.5- - 8. And if the attenuation factor is i is lesser than
1 1dB/step 79,Then i = i +5,and jump to step 10
9. If the IR code is not a and b, then ignore them.
10. Split the attenuation factor i to ones and tens.
0 1 1 0 0 B2 B B0 channel No.5- -
11. Transmit this ones and tens to the PT2258 IC
1 10dB/decade through I2C channels.
12. Jump to step2
1 0 0 1 A3 A2 A A0 channel No.1- -
1 1dB/step Hardware Description
IC PT2258
1 0 0 0 0 B2 B B0 channel No.1- -
PT2258 is a 6-Channel Electronic Volume Controller IC
1 10dB/step utilizing CMOS Technology specially designed for the new
generation of AV Multi-Channel Audio System. PT2258
1 0 1 1 A3 A2 A A0 channel No.6- - provides an I2 C Control Interface, an attenuation range of 0
1 1dB/step to -79 dB at 1 dB/step, low noise, high channel separation.
Housed in 20-pin, DIP or SO Package, PT2258s pin
1 0 1 0 0 B2 B B0 channel No.6- - assignments and application circuit are optimized for easy
1 10dB/step PCB Layout and cost saving advantages.
The main features of IC PT2258 are as follows:
1 1 1 1 1 0 0 M 6-Channel, CMOS Technology
M=1 MUTE ON, Low Power Consumption
M=0 MUTE OFF Least External Components
Attenuation Range: 0 to -79 dB at 1dB/step
Operating Voltage: 5 to 9v Low Noise, S/N
Ratio>100dB (A-weighting)
High Channel Separation
I2 C Bus Control Interface
Selectable Address
6-Channel Outputs
www.ijcat.com 252
International Journal of Computer Applications Technology and Research
Volume 6Issue 6, 249-253, 2017, ISSN:-23198656
www.ijcat.com 253