Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
  • Women in Engineering

Controlling Audio Volume & Tone with a Remote Control

By Dimpal Kumar Kalita

 

Here is the project of controlling audio volume and audio tone (bass and treble) with a remote control designed using microcontroller AT89S52.It is a mono audio controller and to make it stereo similar circuits have to be made for the both LEFT and RIGHT channels. I have not connected the components in a PCB but I have tested the circuit in breadboard. It is working well.
 
COMPONENTS
1.         MICROCONTROLLER , AT89S52
2.         INFRARED RECEIVER, TSOP1738
3.         NPN TRANSISTORS
4.         CAPACITORS 
5.         RESISTORS
6.         POWER SUPPLY (+5V, +12V) DC
7.         CRYSTAL (11.0592 MHz)
 
The need of number of NPN TRANSISTORS, CAPACITORS, RESISTORS depend on the application of number of controls i.e. volume, bass or treble or all the three. Circuit for Controlling audio volume and tone using microcontroller
 

Volume Controller

 
OPERATION
VOLUME CONTROLLER
The input to the volume controller is an analog audio signal from sources like ipod, laptop, PC, microphone etc. The analog output should be fed to an audio amplifier. For each bit coming from the microcontroller at the base of each transistor, the resistor series is short circuited thus reducing the overall resistance between analog input terminal and analog output terminal. volume controller
 

Bass and Treble Controller

 
BASS AND TREBLE CONTROLLER
The circuit consists of a small signal audio amplifier with a feedback circuit. The controlling of bass (in case of bass controller) and treble (in case of treble controller) is done in the feedback part of the respective circuit. Here also analog input signals may be from the sources mentioned above.
Bass ControllerTrebble Controller
For controlling of all the three features at the same with the microcontroller, the output of the volume controller SHOULD be given as input to both the bass and treble controller and the output of the bass and treble controller are tied together and fed to an audio amplifier.
If any of the three controls i.e. volume, bass and treble is not to be used then the respective pins of the microcontroller should be left disconnected. 
 

Power Supply & Remote Control

 
POWER SUPPLY
During my experiment I have used both LMPS and SMPS as power supply but LMPS seems to be noise proof than SMPS. So I recommend to use LMPS specifically for this project.
 
REMOTE CONTROL
I have used a SAMSUNG DVD PLAYER REMOTE CONTROL. The model number is AH5900020E. The controls are arranged like among the lower buttons the left (decrease) & right (increase) are for BASS and up (increase) & down (decrease) are for TREBLE and the middle button is dedicated to MUTE. The buttons above them are for VOLUME, left for decrease & right for increase
Any remote control can be used with changes in the microcontroller program.

 

 

 

Project Source Code

###


ORG 00H

 

IR                            EQU P0.0             ;IR RECEIVER CONNECTED HERE

CMNDCOUNT                    EQU R0

ADDRCOUNT                                     EQU R1

CMNDSTORE                                      EQU R2

ADDRSTORE                       EQU R3

TEMPVAR                            EQU R4

VOL                                        EQU P1                ;VOLUME CONTROLLER CONNECTED HERE

BASS                      EQU P3                ;BASS CONTROLLER CONNECTED HERE

TREBLE                  EQU P2                 ;TREBLE CONTROLLER CONNECTED HERE

VOLSTORE                           EQU       10H

 

CLR      00H

MOV      VOL, #01H

MOV      BASS, #01H

MOV      TREBLE, #01H

ORIGIN:

 

MOV      A, #00

CLR      C

MOV      CMNDCOUNT, #16H

MOV      ADDRCOUNT, #12

MOV      TEMPVAR, #00

JB       IR, $

ACALL    NINE

 

GETADDR:                                                                                           ;GETTING ADDRESS FROM REMOTE CONTROL

JNB      IR, $

ACALL    FIVESIX

JNB      IR, CO

ACALL    FIVESIX

ACALL    FIVESIX

SJMP     CI

CO:

MOV      A, TEMPVAR

CLR      C

RLC      A

MOV      TEMPVAR, A

SJMP     ASTORE

CI:

MOV      A, TEMPVAR

SETB     C

RLC      A

MOV      TEMPVAR, A

SJMP     ASTORE

ASTORE:

DJNZ     ADDRCOUNT, GETADDR

MOV      A, TEMPVAR

MOV      ADDRSTORE, A

MOV      TEMPVAR, #00

 

 

GETCMND:                                                                                         ;GETTING COMMAND FROM REMOTE CONTROL

JNB      IR, $

ACALL    FIVESIX

JNB      IR, SO

ACALL    FIVESIX

ACALL    FIVESIX

SJMP     SI

SO:

MOV      A, TEMPVAR

CLR      C

RLC      A

MOV      TEMPVAR, A

SJMP     CSTORE

SI:

MOV      A, TEMPVAR

SETB     C

RLC      A

MOV      TEMPVAR, A

SJMP     CSTORE

CSTORE:

DJNZ     CMNDCOUNT, GETCMND

MOV      A, TEMPVAR

MOV      CMNDSTORE, A

 

CHECK_VALID_ADDR:                                                                    ;CHECKING FOR VALID ADDRESS OF REMOTE

 

CJNE     ADDRSTORE, #0CCH, ORIGIN

 

 

ACTIONS:

 

CMD1:                  CJNE CMNDSTORE, #0F7H, CMD2                ;VOLUME DECREASE

MOV A, VOL

CLR C

RRC A

CJNE A, #00H, CON1

SJMP EXIT

CON1:                   MOV VOL, A

SJMP EXIT

 

CMD2:                  CJNE CMNDSTORE, #0E7H, CMD3                ;VOLUME INCREASE

MOV A, VOL

SETB C

RLC A

CJNE A, #0FFH, CON2

SJMP EXIT

CON2:                   MOV VOL, A

SJMP EXIT

 

CMD3:                  CJNE CMNDSTORE, #0F4H, CMD4                ;TREBLE INCREASE

MOV A, TREBLE

CLR C

RLC A

CJNE A, #80H, CON3

SJMP EXIT

CON3:                   MOV TREBLE, A

SJMP EXIT

 

CMD4:                  CJNE CMNDSTORE, #0F2H, CMD5                ;BASS DECREASE

MOV A, BASS

CLR C

RRC A

CJNE A, #01H, CON4

SJMP EXIT

CON4:                   MOV BASS, A

SJMP EXIT

 

CMD5:                  CJNE CMNDSTORE, #0E2H, CMD6                ;BASS INCREASE

MOV A, BASS

CLR C

RLC A

CJNE A, #80H, CON5

SJMP EXIT

CON5:                   MOV BASS, A

SJMP EXIT

 

CMD6:                  CJNE CMNDSTORE, #0E1H, CMD7               ;MUTE

JB 00H, MUTEOFF

MUTEON:            MOV VOLSTORE, VOL

MOV VOL, #00H

SETB 00H

SJMP EXIT

MUTEOFF:          MOV VOL, VOLSTORE

CLR 00H

SJMP EXIT

 

CMD7:                  CJNE CMNDSTORE, #0E7H, EXIT    ;TREBLE DECREASE

MOV A, TREBLE

CLR C

RRC A

CJNE A, #01H, CON7

SJMP EXIT

CON7:                   MOV TREBLE, A

SJMP EXIT

 

EXIT:      LJMP ORIGIN

 

 

FIVESIX:                                                                               ;SUBROUTINE FOR 0.55 MILLISECOND DELAY

MOV      R7, #255

DJNZ     R7, $

MOV      R7, #24

DJNZ     R7, $

RET

 

NINE:

MOV      R5, #16                                 ;SUBROUTINE FOR 9 MILLISECOND DELAY

NINAG: MOV R6, #250

DJNZ     R6, $

DJNZ     R5, NINAG

RET

 

END

 

###

 


Circuit Diagrams

Controlling-Audio-Volume


Filed Under: Electronic Projects
Tagged With: at89s52, audio, ir, microcontroller, remote, tone, video
 

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


Featured Tutorials

  • Introduction to Brain Waves & its Types (Part 1/13)
  • Understanding NeuroSky EEG Chip in Detail (Part 2/13)
  • Performing Experiments with Brainwaves (Part 3/13)
  • Amplification of EEG Signal and Interfacing with Arduino (Part 4/13)
  • Controlling Led brightness using Meditation and attention level (Part 5/13)
  • Control Motor’s Speed using Meditation and Attention Level of Brain (Part 6/13)

Stay Up To Date

Newsletter Signup

Sign up and receive our weekly newsletter for latest Tech articles, Electronics Projects, Tutorial series and other insightful tech content.

EE Training Center Classrooms

EE Classrooms

Recent Articles

  • What is a loop calibrator? 
  • What are the battery-selection criteria for low-power design?
  • Key factors to optimize power consumption in an embedded device
  • EdgeLock A5000 Secure Authenticator
  • How to interface a DS18B20 temperature sensor with MicroPython’s Onewire driver

Most Popular

5G 555 timer circuit 8051 ai Arduino atmega16 automotive avr bluetooth dc motor display Electronic Part Electronic Parts Fujitsu ic infineontechnologies integratedcircuit Intel IoT ir lcd led maximintegratedproducts microchip microchiptechnology Microchip Technology microcontroller microcontrollers mosfet motor powermanagement Raspberry Pi remote renesaselectronics renesaselectronicscorporation Research samsung semiconductor sensor software STMicroelectronics switch Technology vishayintertechnology wireless

RSS EDABOARD.com Discussions

  • Measure AC current accurateley (100mA to 10A)
  • 74HC595 creating Fake output
  • What was before microcontrollers ?
  • NEED HELP FOR OP-AMP IN BGR
  • Check undesired substrate mode...

RSS Electro-Tech-Online.com Discussions

  • Control Bare LCD With ATmega328p
  • Need a ducted soldering fan for solder smoke extraction
  • Sla ir li ion
  • Question about ultrasonic mist maker
  • Best way to reduce voltage in higher wattage system?
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2022 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
  • Women in Engineering