diyAudio

diyAudio (http://www.diyaudio.com/forums/)
-   Solid State (http://www.diyaudio.com/forums/solid-state/)
-   -   PGA2310 "how to" (http://www.diyaudio.com/forums/solid-state/134169-pga2310-how.html)

day1118 2nd December 2008 09:59 AM

PGA2310 "how to"
 
Hi guys, I have built a TDA2052 chip amp, and want to impliment a PGA2310 volume control. I have done some (very) simple PIC programming, and wondering if anyone knows of a tutorial or something of the sort for the use of a PGA2310 (most importaintly the serial communication) I have tried google, but the best I got was someones code which was commented in German.

Thankyou!

rhysh 2nd December 2008 10:28 AM

I am looking for exactly the same thing, take a look at this it may help you.

rtarbell 2nd December 2008 01:22 PM

Hello all,

I am doing this right now - it's a good project to start with!

When you say that you have had experience with PICs, did you want to do this project with assembly or C? Do you have a current version of MPLab and a programmer?

rhysh 2nd December 2008 01:23 PM

Quote:

Originally posted by rtarbell
Hello all,

I am doing this right now - it's a good project to start with!

When you say that you have had experience with PICs, did you want to do this project with assembly or C? Do you have a current version of MPLab and a programmer?


Are you using IR remote control? Also are you using a LCD display?

Rhys

rtarbell 2nd December 2008 03:31 PM

I am using an LCD 16X2 display for messages. I was using an infrared remote control (with a PNA4602 as the receiver, and an 18F1221 with 555 Timer in the remote for a transmitter), but I disabled it to focus on other issues. I never got the infrared receiver to receive the messages properly. There were always timing issues that I saw on the receiving end of it, so I just skipped the remote control thing to get the rest of it working.

rhysh 2nd December 2008 03:58 PM

Quote:

Originally posted by rtarbell
I am using an LCD 16X2 display for messages. I was using an infrared remote control (with a PNA4602 as the receiver, and an 18F1221 with 555 Timer in the remote for a transmitter), but I disabled it to focus on other issues. I never got the infrared receiver to receive the messages properly. There were always timing issues that I saw on the receiving end of it, so I just skipped the remote control thing to get the rest of it working.

You should take a look at the sony / philips IR protocol, and use a infared remote control. It would be a lot easier, you can just find the codes on the internet.

rtarbell 2nd December 2008 05:28 PM

"You should take a look at the sony / philips IR protocol, and use a infared remote control. It would be a lot easier, you can just find the codes on the internet."

Indeed! I would suggest, at least for the remote, that

A) Make it the last thing to do on your project (just so that you know that everything else works)
B) Use a simple chip that implements a simple remote control protocol (Sony, Phillips, RCA, etc.) Similarly, Holtek (www.holtek.com) makes some chips
specifically for remote control applications. They can encode and decode for you – very simple!

Instead of using one of these chips, I tried to make my “own” remote control protocol, which is probably why it didn’t work! Just to give you an idea, it looked like this:

Transmitter side
When user presses a button, send 8 bits of volume control data through 18F1220 UART at 9600 baud --> Modulate signal at 38kHz using 555 Timer --> 900nm LEDs used to send infrared

Receiver Side
PNA4602 infrared receiver demodulates signal at 38kHz --> 18F4520 UART receives information and decodes the 8 bits to determine what was sent

day1118 3rd December 2008 05:39 AM

Hi guys, thanks for replies!
Either C or assembly would be fine, hopefully well commented though!!!

I will eventually impliment a remote and LCD's and source selectors and even computer connection as the system will run in every room of the house with the ability to connect to any source, change song or radio frequency and have independent volume in each room.

Thanks heaps!

rhysh 3rd December 2008 06:54 AM

I cant do this :mad: I have tried and tried with assembler but i cant get it to work, all i am trying to do is switch a relay on and off with a remote control string, and have its status displayed on the screen.

rtarbell 3rd December 2008 12:36 PM

"I cant do this. I have tried and tried with assembler but i cant get it to work, all i am trying to do is switch a relay on and off with a remote control string, and have its status displayed on the screen."

Do you have an oscilloscope available to see your data signals? What PIC microcontroller are you using? An oscilloscope would be nice to see the data being sent to the PGA2320.

For my project, I have 8 buttons on the front panel of the unit (“local buttons”), and then the “same” 8 buttons on a remote control. Does your unit have local buttons on the front panel as well? I would get these local buttons working before I tried to get the remote control working. If you are getting messages to display on your LCD, then it sounds like you have the correct underlying functions, so that’s a great step in the right direction!


All times are GMT. The time now is 08:19 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright ©1999-2014 diyAudio


Content Relevant URLs by vBSEO 3.3.2