Yet another Volume controlers and source selections - Page 79 - 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 26th December 2012, 06:41 PM   #781
diyAudio Member
 
FarmTech's Avatar
 
Join Date: Mar 2010
Location: Hjørring Denmark
Send a message via MSN to FarmTech Send a message via Skype™ to FarmTech
Quote:
Originally Posted by krojo View Post
it is possible to use the second encoder only to change the inputs and use to encoder button to mute for atmega8515 and pga2311?
Hi,
I think we only have 1 encoder on the board ,
so i dont get what you like to change
can you explain it more
__________________
/Kim - Bascom-AVR user >> My WebChat
My Web Site
  Reply With Quote
Old 26th December 2012, 07:56 PM   #782
krojo is offline krojo  Poland
diyAudio Member
 
Join Date: Jan 2012
We have encoder to volume control with button but isn't used. I'd like to use this button to mute. Second encoder or rotary switch use only to change source. I need 3 pins in atmega but don't known with to use. See part control on schematic. Of course we need to modify the program.
Sorry for my english
Attached Files
File Type: pdf PGA.pdf (49.1 KB, 82 views)

Last edited by krojo; 26th December 2012 at 08:05 PM.
  Reply With Quote
Old 26th December 2012, 08:11 PM   #783
diyAudio Member
 
FarmTech's Avatar
 
Join Date: Mar 2010
Location: Hjørring Denmark
Send a message via MSN to FarmTech Send a message via Skype™ to FarmTech
Hi,
You have to move IR-diode(RC5) to other pin like PC.7
and use INT1 (PD.3) for new encoder + PD.5 or PD.6 for encoder pin
same way as we use it for encoder on INT0

In one of my PGA2311 versions I have MUTE & ON/OFF in same button
short press MUTE long Press ON/OFF

this way you can free up 1 more pin if needed

What version of software for 8515 do you use ?
there is so many versions
__________________
/Kim - Bascom-AVR user >> My WebChat
My Web Site

Last edited by FarmTech; 26th December 2012 at 08:39 PM. Reason: spelling of cause :)
  Reply With Quote
Old 27th December 2012, 02:07 AM   #784
diyAudio Member
 
FarmTech's Avatar
 
Join Date: Mar 2010
Location: Hjørring Denmark
Send a message via MSN to FarmTech Send a message via Skype™ to FarmTech
Just a idea how to do it
Code:
Ddrd = &B10000000
Portd = &B01111111
Config Lcdpin = Pin , Db4 = Portc.2 , Db5 = Portc.3 , Db6 = Portc.4 , Db7 = Portc.5 , E = Portc.1 , Rs = Portc.0

Config Lcd = 16 * 2
Cursor Off
Cls

'rc5  IR OUT to PortC.7
Config Rc5 = Pinc.7 , Wait = 2000

Declare Sub Shiftlf()
Declare Sub Shiftrt()
Declare Sub Volup()
Declare Sub Voldn()                                         '

'encoder 1 volume
Enc_a Alias Pind.1
Set Enc_a
On Int0 Int_0
Enable Int0
Config Int0 = Falling

'encoder 2 select input
Enc_b Alias Pind.5
Set Enc_b
On Int1 Int_1
Enable Int1
Config Int1 = Falling

Enable Interrupts


Do
 If Pind.0 = 1 Then
   'on off
   Waitms 200
 End If
 If Pind.4 = 1 Then
   'mute
   Waitms 200
 End If

 If Pind.6 = 1 Then
   'menu
   Waitms 200
 End If

 'your other code here
Loop
End

'---------shift input Left----------
Sub Shiftlf()
'your code here
Waitms 500
End Sub
'--------shift input right----------
Sub Shiftrt()
'your code here
Waitms 500
End Sub
'-------bring volume up-------------
Sub Volup()
'your code here
Waitms 50
End Sub
'--------bring volume down----------
Sub Voldn()
'your code here
Waitms 50
End Sub

'  ------------------- Int0 & Pind.1  -------------
Int_0:
Disable Int0
If Enc_a = 0 Then
   Call Volup()
Else
   Call Voldn()
End If
Gifr = 64
Enable Int0
Return

'  ------------------- Int1 & Pind.5 ------------------
Int_1:
Disable Int1
If Enc_b = 0 Then
   Call Shiftlf()
Else
   Call Shiftrt()
End If
Gifr = 64
Enable Int1
Return
__________________
/Kim - Bascom-AVR user >> My WebChat
My Web Site
  Reply With Quote
Old 27th December 2012, 04:49 PM   #785
diyAudio Member
 
FarmTech's Avatar
 
Join Date: Mar 2010
Location: Hjørring Denmark
Send a message via MSN to FarmTech Send a message via Skype™ to FarmTech
Edit !!!

in Int_1 sub
wrong Gifr = 64

Int1 use Gifr = 128

Code:
'  ------------------- Int1 & Pind.5 ------------------
Int_1:
Disable Int1
If Enc_b = 0 Then
   Call Shiftlf()
Else
   Call Shiftrt()
End If
Gifr = 128
Enable Int1
Return
__________________
/Kim - Bascom-AVR user >> My WebChat
My Web Site
  Reply With Quote
Old 27th December 2012, 05:42 PM   #786
krojo is offline krojo  Poland
diyAudio Member
 
Join Date: Jan 2012
Hi
Your idea with MUTE and ON/OFF in the same button is very good. I'm modify schematic can you see thet will by good? I moved IR-diode to PINC.7, RELAY-ON/OFF to PINC.6, for second encoder I use PIND.6, and PIND.5. I try to modify your program form post 370. I don't build this volume control yet but the schematic will be ok I start know.
Attached Files
File Type: pdf PGA.pdf (51.3 KB, 39 views)
  Reply With Quote
Old 27th December 2012, 06:09 PM   #787
diyAudio Member
 
FarmTech's Avatar
 
Join Date: Mar 2010
Location: Hjørring Denmark
Send a message via MSN to FarmTech Send a message via Skype™ to FarmTech
Quote:
for second encoder I use PIND.6, and PIND.5.
thats wrong you must use INT1 (Portd.3) & PinD.5
thats S+ to INT1 PD.3 and S- to PD.5
I'll check more later on my way home now
__________________
/Kim - Bascom-AVR user >> My WebChat
My Web Site

Last edited by FarmTech; 27th December 2012 at 06:18 PM. Reason: spelling of cause :)
  Reply With Quote
Old 27th December 2012, 06:22 PM   #788
krojo is offline krojo  Poland
diyAudio Member
 
Join Date: Jan 2012
I change schematic
Attached Files
File Type: pdf PGA.pdf (51.3 KB, 73 views)
  Reply With Quote
Old 27th December 2012, 07:32 PM   #789
diyAudio Member
 
FarmTech's Avatar
 
Join Date: Mar 2010
Location: Hjørring Denmark
Send a message via MSN to FarmTech Send a message via Skype™ to FarmTech
hi,
Ok got some time to look at it now
I moved RELAY_ON/OFF back to PD.6
See addon zip new sch and bas
Attached Files
File Type: zip pg.zip (79.4 KB, 101 views)
__________________
/Kim - Bascom-AVR user >> My WebChat
My Web Site
  Reply With Quote
Old 27th December 2012, 08:35 PM   #790
krojo is offline krojo  Poland
diyAudio Member
 
Join Date: Jan 2012
Ok schematic change as you said, the pbc upload maybe in Saturday
  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
source selector / volume hum in Aikido cbutterworth Tubes / Valves 1 28th March 2007 08:34 AM
Source for volume knobs? Alois Pass Labs 4 3rd July 2005 06:12 PM
IC Controlers for Class D Power stage frozenpod1 Class D 14 17th May 2005 04:25 PM
Swichable source and volume pot. Whats the best way? sounder Chip Amps 2 22nd September 2003 07:29 PM
detented volume pots... source? Mach_Y Parts 2 1st June 2003 06:23 PM


New To Site? Need Help?

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