PGA2310 "how to" - Page 2 - diyAudio
Go Back   Home > Forums > Amplifiers > Solid State

Solid State Talk all about solid state amplification.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 3rd December 2008, 04:14 PM   #11
rhysh is offline rhysh  United Kingdom
diyAudio Member
 
rhysh's Avatar
 
Join Date: Sep 2008
Location: Southampton
Send a message via MSN to rhysh
Quote:
Originally posted by rtarbell
"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!

I do not have a scope at this current time, there is no way i can afford to get one of any kind unfortunitly . I am using the AVR ATtiny2313 microchip for this project, as i have never a dev station on hand.

Are you coding your project in C?

To start off with, i am trying to get a push button, connected to a I/O pin directly, to toggle a relay on / off that is also directly connected to a I/O pin, and have the status displayed on screen, can you point me in the right direction (Im a C noob!)

I have no plans to implament local buttons at the moment, as i am trying to keep everything neat and tidy.

If you dont mind, would it be possible for me to have a look at your source code so far (not to copy you, or sell your idea) just to get a insight on what is going on. My email address is rhysATpressure-drop.org (@) if this is okay with you?

Thankyou!
  Reply With Quote
Old 4th December 2008, 05:43 AM   #12
day1118 is offline day1118  Australia
diyAudio Member
 
Join Date: Oct 2008
Hi guys, Im still after an example that explains how the serial communication is done please. If anyone has an example/their own code, or knows where I can find one could you please let me know.
(Any language would be fine!)

Thanks
  Reply With Quote
Old 5th December 2008, 04:54 PM   #13
diyAudio Member
 
Join Date: Sep 2005
Hey guys,

Sorry about the delay - I haven't forgotten about it, I'm just trying to find the code project, and "spruce" it up a little so that it's readable. I wrote it in Microchip's C18/MPLab compiler, so it may not make entire sense to someone using Atmel and the AVRs (GCC compiler probably?).

One nice thing about the C code itself, is that C code is C code (unlike assembly, which can vary widely between microcontroller makers!).
  Reply With Quote
Old 5th December 2008, 05:08 PM   #14
rhysh is offline rhysh  United Kingdom
diyAudio Member
 
rhysh's Avatar
 
Join Date: Sep 2008
Location: Southampton
Send a message via MSN to rhysh
Quote:
Originally posted by rtarbell
Hey guys,

Sorry about the delay - I haven't forgotten about it, I'm just trying to find the code project, and "spruce" it up a little so that it's readable. I wrote it in Microchip's C18/MPLab compiler, so it may not make entire sense to someone using Atmel and the AVRs (GCC compiler probably?).

One nice thing about the C code itself, is that C code is C code (unlike assembly, which can vary widely between microcontroller makers!).
Hi, i am very intrested to see this code! Keep us up to date!

Rhys
  Reply With Quote
Old 6th December 2008, 06:36 AM   #15
day1118 is offline day1118  Australia
diyAudio Member
 
Join Date: Oct 2008
Thanks.

Im still not having any luck, moved to a computer parellel port and VB cos i know the language reasonably well, but still no luck!

Ive noticed that the PGA2310 gets quite hot in a reasonably short amount of time, anyone else found this?
  Reply With Quote
Old 6th December 2008, 06:47 AM   #16
day1118 is offline day1118  Australia
diyAudio Member
 
Join Date: Oct 2008
Also, I just found that I didnt have the right Analog ground connected to anything (Im only working with Right channel atm), but when I connect it, I lose all music, and it sounds like a mix between air and a growling sound!

Any suggestions anyone?

*Cant find shorts or any other problems, but for the moment have disconnected everything on pins 2,3,6,7 til I work out whats going on with the heat and ground connection!
  Reply With Quote
Old 7th December 2008, 01:27 AM   #17
diyAudio Member
 
Join Date: Sep 2005
Okay! See the attached file for an example of my LCD routines. They are very basic, but I have verified that they work. Like I said, these routines I wrote for the PIC 18F2321, so all of the included files (linker scripts, libraries, etc.) are using MPLab and the C18 compiler. You can get both for free from Microchip's website.
Attached Files
File Type: txt example.txt (11.9 KB, 110 views)
  Reply With Quote
Old 7th December 2008, 07:01 AM   #18
rhysh is offline rhysh  United Kingdom
diyAudio Member
 
rhysh's Avatar
 
Join Date: Sep 2008
Location: Southampton
Send a message via MSN to rhysh
Quote:
Originally posted by rtarbell
Okay! See the attached file for an example of my LCD routines. They are very basic, but I have verified that they work. Like I said, these routines I wrote for the PIC 18F2321, so all of the included files (linker scripts, libraries, etc.) are using MPLab and the C18 compiler. You can get both for free from Microchip's website.

Thankyou ever so much for sharing this, do you have the schematic for your dev board / whatever you are using to test this?

Rhys
  Reply With Quote
Old 7th December 2008, 09:14 AM   #19
rhysh is offline rhysh  United Kingdom
diyAudio Member
 
rhysh's Avatar
 
Join Date: Sep 2008
Location: Southampton
Send a message via MSN to rhysh
I have cracked it, with a rotary encoder and without a remote and lcd! No more sucess after that! Im not sure how to display the current gain on the lcd...
  Reply With Quote
Old 11th December 2008, 11:01 AM   #20
ALBQ is offline ALBQ  United States
diyAudio Member
 
Join Date: Dec 2003
Location: Albuquerque
Default Help along the way

rhysh,
Check the following thread Cheers -ALBQ

DIY Remote Control for Everyone
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What makes an amplifier "bright", "warm", or "neutral"? JohnS Solid State 51 13th December 2009 06:42 PM
Charcoal "Supreem" hi-density foam "enclosure" IG81 Multi-Way 0 23rd April 2009 01:34 PM
"Void free" or "no core gaps" plywood rick57 Multi-Way 6 14th March 2007 01:09 PM
Some final pics of "Stacks" revisited and "Askew" with stand Andy G Multi-Way 2 3rd February 2005 06:07 AM
Anyone used Scan-Speak's "Flow Resistors" or "Aperiodic Vents"? Ignite Multi-Way 3 18th November 2001 08:42 AM


New To Site? Need Help?

All times are GMT. The time now is 10:33 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