Yet another Volume controlers and source selections - Page 86 - 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 1st March 2013, 03:15 AM   #851
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
Default 2 encoder version

Hi Ric the first file was for 1 encoder
here is for 2 encoder no volume
Attached Files
File Type: zip RS232_2.zip (13.4 KB, 34 views)
__________________
/Kim - Bascom-AVR user >> My WebChat
My Web Site
  Reply With Quote
Old 1st March 2013, 11:53 AM   #852
simonov is offline simonov  Bulgaria
diyAudio Member
 
simonov's Avatar
 
Join Date: Aug 2005
Location: PZ
Hello guys. What a great thread I'd say. I'm planning to build a simple preamp control module with IR remote control using RC5 code. What I need is only power ON/OFF and volume UP/Down. I have used the source code posted HERE by danzup. I've modified the code to suit my needs because I'm using Atmega ATTINY26L. However my codding capabilities are not that good(poor I'd say) so I will need some help.

At the moment I can only switch power ON/OFF using the remote. However I need to be able to do this by a push-button mounted on the front panel. So what I need is to configure the microcontroller to read a short impulse at some oh its pins and switch the power relay ON/OFF. I don't need debouncing. The impulse will be generated using a simple 555 timer circuit.

Here is the code I'm using - LINK

Regards, Venci
  Reply With Quote
Old 1st March 2013, 01:24 PM   #853
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 simonov View Post
Hello guys. What a great thread I'd say. I'm planning to build a simple preamp control module with IR remote control using RC5 code. What I need is only power ON/OFF and volume UP/Down. I have used the source code posted HERE by danzup. I've modified the code to suit my needs because I'm using Atmega ATTINY26L. However my codding capabilities are not that good(poor I'd say) so I will need some help.

At the moment I can only switch power ON/OFF using the remote. However I need to be able to do this by a push-button mounted on the front panel. So what I need is to configure the microcontroller to read a short impulse at some oh its pins and switch the power relay ON/OFF. I don't need debouncing. The impulse will be generated using a simple 555 timer circuit.

Here is the code I'm using - LINK

Regards, Venci
Hi Venci,
What pins will you use for buttons ??
Power on/off button pin
volume up button pin
volume down pin

do your 555 set (high) when you use it as volume or Reset (LOW) ?

how long puls you sent ?
we can use bitwait pin , set / reset so it only turn volume up down 1 time pr puls

here is what I will do :
Use porta
set pins LOW so you trigger with HIGH puls
pin 0 power on/off
pin 1 Volume UP
pin 2 Volume Down

see bas
Attached Files
File Type: zip CONTROL_FOR_PREAMP_ATTINY26L_buttons.zip (1.3 KB, 51 views)
__________________
/Kim - Bascom-AVR user >> My WebChat
My Web Site

Last edited by FarmTech; 1st March 2013 at 01:51 PM. Reason: added bas
  Reply With Quote
Old 1st March 2013, 11:50 PM   #854
simonov is offline simonov  Bulgaria
diyAudio Member
 
simonov's Avatar
 
Join Date: Aug 2005
Location: PZ
Hi FarmTech,
you are in a great help. i think this code will do excellent job. However I don't need to control volume up/down by any buttons. After all I could just turn the ALPS pot to the right on left

I guess that makes porta.1 and porta.2 redundant. However I could still use this to make a "full digital" control for my preamp and not put a volume knob at the front panel at all

From what I see the HIGH impulse coming from the 555 timer must be at least 500ms. Am I correct? That would be no problem. I could set the correct time with a simple mono stable operation of the 555 timer.
  Reply With Quote
Old 2nd March 2013, 04:48 AM   #855
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 simonov View Post
Hi FarmTech,
you are in a great help. i think this code will do excellent job. However I don't need to control volume up/down by any buttons. After all I could just turn the ALPS pot to the right on left

I guess that makes porta.1 and porta.2 redundant. However I could still use this to make a "full digital" control for my preamp and not put a volume knob at the front panel at all

From what I see the HIGH impulse coming from the 555 timer must be at least 500ms. Am I correct? That would be no problem. I could set the correct time with a simple mono stable operation of the 555 timer.
Hi,
I don't know why you have timer 555 in you'r setup
the buttons for power vol like this :
Click the image to open in full size.

If you dont need buttons for volume just delete code :
Quote:
'Volume UP puls HIGH
If Pina.1 = 1 Then
Call Volup
'Bitwait Pina.1 , Reset
End If
'Volume DOWN puls HIGH
If Pina.2 = 1 Then
Call Voldn
'Bitwait Pina.2 , Reset
End If
the volume will work via Remote if you connect alps as Danzup show in the post #7
Attached Files
File Type: zip ATTINY26_buttons.zip (4.2 KB, 22 views)
__________________
/Kim - Bascom-AVR user >> My WebChat
My Web Site

Last edited by FarmTech; 2nd March 2013 at 04:58 AM. Reason: add bas
  Reply With Quote
Old 2nd March 2013, 09:52 AM   #856
simonov is offline simonov  Bulgaria
diyAudio Member
 
simonov's Avatar
 
Join Date: Aug 2005
Location: PZ
Hi FarmTech,
I figured the code last night and deleted the unused pins.

About the 555 timer. I thought it was a good idea to have the push button debounced. It's a large ON/ON momentary mechanical button but I guess I'll try using it without the timer.

Thank you for your help.
  Reply With Quote
Old 2nd March 2013, 10:44 AM   #857
danzup is offline danzup  Romania
diyAudio Member
 
danzup's Avatar
 
Join Date: Oct 2007
Location: Bucuresti
Quote:
Originally Posted by FarmTech View Post
Hi,
I don't know why you have timer 555 in you'r setup
the buttons for power vol like this :
Click the image to open in full size.

If you dont need buttons for volume just delete code :


the volume will work via Remote if you connect alps as Danzup show in the post #7
More like a Kim / diyaudio copyright for that Bascom code !
Best regards to all .
__________________
There are not better tube than 6P3S and 6N2P for my ears !
  Reply With Quote
Old 2nd March 2013, 12:52 PM   #858
rsavas is offline rsavas  Canada
diyAudio Member
 
Join Date: Aug 2012
Location: Ontario
Default Cheers to Kim!!

Kim (Farmtech), your da man
It is very nice to see someone sharing as you do, keep up the good work.
Rick
  Reply With Quote
Old 3rd March 2013, 06:20 PM   #859
RS232 is offline RS232  United Kingdom
diyAudio Member
 
Join Date: Jan 2006
Location: Swindon
Thanks FarmTech
I was hoping do see the modified .bas file but this is OK.
Going to give up for now, can get the programer (USBASP) to connect to the atmega.
Tried Ponyprog, avrstudio, winavr, extreme burner and a free version from bascom avr and nothing.
Going to look for a serial programer.

Ric
  Reply With Quote
Old 3rd March 2013, 06:34 PM   #860
rsavas is offline rsavas  Canada
diyAudio Member
 
Join Date: Aug 2012
Location: Ontario
I use and swear by the real thing, a AVRISP mkII and Studio 4 for ISP.
  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 07:34 AM
Source for volume knobs? Alois Pass Labs 4 3rd July 2005 05:12 PM
IC Controlers for Class D Power stage frozenpod1 Class D 14 17th May 2005 03:25 PM
Swichable source and volume pot. Whats the best way? sounder Chip Amps 2 22nd September 2003 06:29 PM
detented volume pots... source? Mach_Y Parts 2 1st June 2003 05:23 PM


New To Site? Need Help?

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