Yet another Volume controlers and source selections - Page 63 - 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 September 2011, 02:38 PM   #621
diyAudio Member
 
Join Date: Mar 2010
Here is my code : http://ge.tt/89oox98?c

I would like to give me some hints to manage the problem with the clock as i had describe in post 618.
  Reply With Quote
Old 26th September 2011, 08:58 PM   #622
Leon08 is offline Leon08  Germany
Banned
 
Join Date: Sep 2010
Location: at Home
I think your problem is because you used the "case else" for this subroutine

Select Case Command
Case 16 : Call Vol_up
Case 17 : Call Vol_dw
Case 13 : Call Mute
Case 12 : Call Poweronoff
Case 62 : Call Menu
Case Else : Call Datetime
End Select
End If

The compiler translate it into an assembler code and it looks then completly different.
To make things worser this "select case works" different with other compilers.So I'm not sure how your compiler does translate it.
I would try a different approach like this:

Call Datetime

Select Case Command
Case 16 : Call Vol_up
Case 17 : Call Vol_dw
Case 13 : Call Mute
Case 12 : Call Poweronoff
Case 62 : Call Menu
End Select
End If

In this way the routine Datetime is separated from other routines.
  Reply With Quote
Old 27th September 2011, 12:12 PM   #623
diyAudio Member
 
Join Date: Mar 2010
I had try this too but nothing happen still the same problem...
thanks for your help
  Reply With Quote
Old 27th September 2011, 12:47 PM   #624
Leon08 is offline Leon08  Germany
Banned
 
Join Date: Sep 2010
Location: at Home
What is your problem exactly?
  Reply With Quote
Old 27th September 2011, 02:41 PM   #625
diyAudio Member
 
Join Date: Mar 2010
When i'm increasing the volume with rc5 remote control and because the control sends low pulses i'm getting the clock between the numbers on my lcd

I have the volume : 15 , if i want to change the volume from 15 to 20, i'm holding the volume up button on the RC5 and start increasing but while i'm holding the button i'm getting the time between the numbers like 15-time-16-time-17-time-18-time-19-time-20... I'm try to fix this.
In general, i want the time to be on the screen only when i'm not using the remote control, when i'm increasing or decreasing or changing the balance of my speakers i want the time to be "hide"

Last edited by alexisk10; 27th September 2011 at 02:44 PM.
  Reply With Quote
Old 27th September 2011, 02:52 PM   #626
danzup is offline danzup  Romania
diyAudio Member
 
danzup's Avatar
 
Join Date: Oct 2007
Location: Bucuresti
Try this
Attached Files
File Type: zip LcdVol.zip (1.7 KB, 161 views)
__________________
There are not better tube than 6P3S and 6N2P for my ears !
  Reply With Quote
Old 27th September 2011, 04:37 PM   #627
diyAudio Member
 
Join Date: Mar 2010
it does not work this too.
  Reply With Quote
Old 28th September 2011, 09:55 PM   #628
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
Code:
Dim Time_call As Byte

If Pwr = 1 Then
    Getrc5(address , Command)
    If Address = 0 Then
'************************************************
    Time_call = 5 ' <<<<<<<<<<<< set to 5 or more
'************************************************
    Command = Command And &B01111111
    End If

  Select Case Command
  Case 16 : Call Vol_up
  Case 17 : Call Vol_dw
  Case 13 : Call Mute
  Case 12 : Call Poweronoff
  Case 62 : Call Menu
  End Select
'**********************
  If Time_call > 0 Then
   Decr Time_call
  Else
   Call Datetime
  End If
'**********************
 End If
  Reply With Quote
Old 29th September 2011, 10:27 AM   #629
diyAudio Member
 
Join Date: Mar 2010
thank you FarmTech it's working and to danzup and Leon08 for their time
  Reply With Quote
Old 6th October 2011, 04:11 PM   #630
diyAudio Member
 
linuxworks's Avatar
 
Join Date: Jul 2008
Location: santa clara, CA
Quote:
Originally Posted by alexisk10 View Post
Has anyone did a digital volume control or preamp with Real time clock?
the one I designed does have all that: The LCDuino-1 Display I/O Processor (also search the delta1 and delta2 for the attenuator and input selector). all open source and with a huge amount of functionality.
__________________
My Photostream:http://www.flickr.com/photos/linux-works/
  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 07:53 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