Another Modified PGA2311 kit with Arduino for volume control and input selection - diyAudio
Go Back   Home > Forums > Source & Line > Analog Line Level

Analog Line Level Preamplifiers , Passive Pre-amps, Crossovers, etc.

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 14th August 2014, 02:31 PM   #1
cjkpkg is offline cjkpkg  United States
diyAudio Member
 
Join Date: Aug 2008
Location: Roswell GA
Default Another Modified PGA2311 kit with Arduino for volume control and input selection

I would like to continue my thread about the Apple Remote here since it is no longer really about just the Apple Remote anymore.

Background:
I purchased an ebay PGA2311 kit to play with. Recently I decided that I want to integrate this into an existing Aikido preamp where I wanted to add remote controlled volume and input switching.

Enter the Arudino Uno

I want to turn this kit:
Click the image to open in full size.

Into this:
Click the image to open in full size.

I have been following numerous threads about this and will keep my progress updated here.

I am an Arduino novice - maybe not even a novice so I appreciate any help with coding that may come up.

Pasted below is a response from ElectoNick Thanks!!! It think this is a good starting point to begin the Arduino sketch.

Well, i would do this :
- put parallel LCD on analog ports (no need for a new lcd)
- put rotary encoder on interupts (you want to use them !)
- put PGA2311 on some digital lines, same as IR and relays.

eg on Arduino :
0 = RotaryA (rotary_encoder)
1 = RotaryB (rotary_encoder)
2 = pushbutton (rotary_encoder)
3 = Selection Pin (spi)
4 = MOSI (spi)
5 = MISO (spi)
6 = Clock (spi)
7 = IR_receiver
8 = output for relay_A
9 = output for relay_B
10 = output for relay_C
11 = n.c.
12 = n.c.
13 = n.c.
14 = RS (lcd)
15 = enable display (lcd)
16 = D4 (lcd)
17 = D5 (lcd)
18 = D6 (lcd)
19 = D7 (lcd)
GND = R/W (lcd)
  Reply With Quote
Old 14th August 2014, 02:48 PM   #2
diyAudio Member
 
Join Date: Nov 2013
I have been playing with this idea myself and will be following with great interest.
  Reply With Quote
Old 14th August 2014, 06:14 PM   #3
cjkpkg is offline cjkpkg  United States
diyAudio Member
 
Join Date: Aug 2008
Location: Roswell GA
Good info here on using the IR receiver functions and getting the right remote codes

Then on to here to see about getting the PGA running and working volume

Last will be to be able to switch inputs. Been looking a lot at MaxW's thread HERE

More good info HERE for triggering relays
  Reply With Quote
Old 15th August 2014, 12:42 AM   #4
cjkpkg is offline cjkpkg  United States
diyAudio Member
 
Join Date: Aug 2008
Location: Roswell GA
OK...ran a IR receive decoder on the Uno with the apple remote for fun.

Unfortunately based upon what I have read I am not seeing the same code or code format that others have reported.

UP 77E15004
DOWN 77E13004
LEFT 77E19004
RIGHT 77E16004
CENTER 77E13A04 77E1A004
MENU 77E1C004
PLAY/PAUSE 77E1FA04 77E1A004

I dont think I have seen these codes called out in any "code" that I have seen related to the apple remote.

Sorry for the noob questions...
  Reply With Quote
Old 16th August 2014, 03:14 AM   #5
cjkpkg is offline cjkpkg  United States
diyAudio Member
 
Join Date: Aug 2008
Location: Roswell GA
Update

I got the arduino talking to the new I2C LCD and accepting commands from the apple remote. I converted the above codes to decimal format and it worked. Next up is connecting the pga2311 and switching inputs!
  Reply With Quote
Old 16th August 2014, 05:52 PM   #6
cjkpkg is offline cjkpkg  United States
diyAudio Member
 
Join Date: Aug 2008
Location: Roswell GA
Another update:

I have inserted the PGA2311 into doing full preamp duties for test.

Apple remote works for volume up and down and I tried a version that switches the inputs but no go.

Any advice or suggestions on how to code the arduino to switch relays would be appreciated.
Attached Files
File Type: txt cjk_pga2311_test2.txt (4.9 KB, 40 views)
  Reply With Quote
Old 16th August 2014, 08:42 PM   #7
diyAudio Member
 
ElectroNick's Avatar
 
Join Date: Dec 2002
Location: The Netherlands
You are a quick learner, keep up this enthousiasm

Regards,
Nick
__________________
BOZ & A40
  Reply With Quote
Old 16th August 2014, 09:18 PM   #8
cjkpkg is offline cjkpkg  United States
diyAudio Member
 
Join Date: Aug 2008
Location: Roswell GA
Bench setup...

Funny...the pga2311 is a nice sounding chip...I've never run it alone as a preamp.
Attached Images
File Type: jpg IMG_20140816_164409-1.jpg (247.7 KB, 331 views)

Last edited by cjkpkg; 16th August 2014 at 09:25 PM.
  Reply With Quote
Old 16th August 2014, 11:06 PM   #9
diyAudio Member
 
Join Date: Mar 2007
Location: Bandung
I only try PGA2311 just 0dB. Maybe i'll try +10dB.
Nice Knop btw.

Didiet
__________________
Didiet
WM8805+ESS9023 / SDHC Card I2S audio player + AK4430
  Reply With Quote
Old 16th August 2014, 11:27 PM   #10
diyAudio Member
 
Bob Richards's Avatar
 
Join Date: Feb 2011
Location: Portland Oregon, USA
Quote:
Originally Posted by cjkpkg View Post
Bench setup...

Funny...the pga2311 is a nice sounding chip...I've never run it alone as a preamp.
I love the look of your remote control. Are those available somewhere? I wanted to use Arduino to make remote control for a stereo preamp I built but decided writing code is over my head. It would probably take more time than I can afford right now.
  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
Building a complete Preamp with an Arduino, remote, volume and input control maxw Analog Line Level 103 10th September 2014 05:40 AM
PGA2311 volume control. ian332isport Analog Line Level 4 1st May 2014 10:08 PM
PGA2311 + ATMEGA8 VOLUME CONTROL jash2008 Digital Line Level 9 3rd May 2013 09:31 AM
PGA2311 LCD Volume Remote Control+GOLD RCA Jeff Rowland another_bob Analog Line Level 4 14th November 2012 09:35 AM
Input selection and volume control with balanced output, transportable? jmaurer Solid State 0 11th August 2007 07:08 AM


New To Site? Need Help?

All times are GMT. The time now is 07:51 AM.


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