Yet another Volume controlers and source selections

Sorry about forgetting attachment.
I have tested several rc-5 remotes and same behaviour.
For example for increasing/decreasing volume i need to press twice very fast the designated key to have effect on the controller.
Same for changing input i need to press twice very fast the channel up to change the input. I feel is something related to the freq of the impulses from remote.
All the credits to the attached software to Danzup ;)

I think will be a great combination of Farmtech software with learn feature and my setup wich is described in the attached software.
 

Attachments

  • adrian encoder 4 intrari.zip
    2.7 KB · Views: 166
Last edited:
Hi Adrian,
I like you to try the RC5 tester

I change the lcd and MCU for your setup

now you can run this on your board to test the RC5

see if you have same problems here

see ADDON file

what version of bascom do you use ?
there have been problems with RC5 in some versions
current version is 2.0.7.6 or 2.0.7.5.002
in the ZIP the HEX and BIN is compile with latest version
 

Attachments

  • Adrian_RC5-Test.zip
    6.3 KB · Views: 142
Last edited:
Hi Farmtech and sorry for delayed reply, some stuff more important than DIY unfortunately.
I have programmed my Atmega 8515 with your test software but nothing on display, no sign of anything. I attach again the my working software maybe something is wrong.

Because you asked me i use Bascom 2.0.7.5.003 version Demo.
 

Attachments

  • My preamp working.zip
    4.7 KB · Views: 184
Last edited:
Hi Adrian,

Can't use hex file :)

but I can look at the bas if you PM it to me


And the setup of compiler
$hwstack = ??
$swstack = ??
$framesize = ??

you maybe have it setup in bascom under
menu Options/compiler/chip (M8515)

maybe the SWstack is to low set

Bascom-avr latest is 2.0.7.6

the RC5 tester used the setup for RC5 and lcd
from "adrian encoder 4 intrari.bas"

Code:
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
Config Rc5 = Pind.3
 
Last edited:
Hi again Farmtech!
I have tested again and bad luck.
I'm using Bascom 2.0.5.0 wich is capable to compile sources bigger than 4096k and tried to add that command Wait = 2000 after Config Rc5 = Pind.3 but very strange the Uc is not doing anything , is dead.
Also the same result with the previous software RC5 Test.

What else can be done, sorry i'm not more useful :(

PS. Attached again the running sw
 

Attachments

  • adrian encoder 4 intrari.zip
    2.8 KB · Views: 147
I've flashed your sw and the things are much better. I mean when i keep pressed the Vol+ or - the behaviour is normal but when i'm playing prssing alternatively + and - i need to press twice the desired key to obtain the effect. The same with Channel up/down in order to switch between signal sources.
Things are better now :)
 
Well, i'm using an universal controller and i have a list of Philips codes to choose. I will try to program some other codes from Philips list.
Farmech, can i ask some more help or customization?
Normally i push a swich to enter to Souce Select routine and i would like after certain seconds (5-10) to get out automatically from this souce select mode and to stay in volume level mode.

Also the Source Select to be kind of circular menu cd>dac>phono>aux>cd>dac.......

It's hard to do something to memorize the settings after power off completely ?

A big THANK YOU,
Adrian
 
Adrian,

try this for input
Code:
'---------shift input Left----------
Sub Shiftlf:
Call Bklght
If Inp_sel = 8 Then
   Inp_sel = 1
Else
   If Inp_sel >= 1 And Inp_sel < 8 Then
      Rotate Inp_sel , Left
   End If
End If
Porta = Inp_sel
Call Af_sel
Waitms 200
 W = 0
 Timer1 = W
End Sub
'--------shift input right----------
Sub Shiftrt:
Call Bklght
If Inp_sel = 1 Then
   Inp_sel = 8
Else
   If Inp_sel >= 2 And Inp_sel < 9 Then
      Rotate Inp_sel , Right
   End If
End If
Porta = Inp_sel
Call Af_sel
Waitms 200
 W = 0
 Timer1 = W
End Sub

about the return to volume

you can use the backlight time

addon file with the update :)
 

Attachments

  • adrian encoder 4 intrari_2077_update.zip
    10.7 KB · Views: 129
Last edited:
Circular meniu for souceselections works fine.
Regarding getting out from Source select following thing is happening: i select source> goes automatically out to Adjust Volume and the backlight is on every 1-2 sec after few seconds. Also It shows Select input again without any external influention.
For sure it's a bug :)

PS. Yours are working better than mine :) Bugs are on mine software :)
 

Attachments

  • adrian encoder 4 intrari_2077_circular volume.zip
    2.9 KB · Views: 138
Last edited:
Last question for tonight: wich are the parameters to play in order to have bigger steps for volume up/down (now is 0.5dB) ?

Thank you again for your help!

In sub vol up/down you have +1 and +5 this is the steps in volume

Code:
If L <= 86 Then
        L = L - 5  '<<<<<<<<<
        R = R - 5  '<<<<<<<<
        Gain = L / 2
        Gain1 = -96 + Gain
        Call Spio
Else
        L = L - 1' <<<<<<<<<
        R = R - 1'<<<<<<<<<
        Gain = L / 2
        Gain1 = -96 + Gain
        Call Spio
End If

so from this setup volume
-53db to -95.5 it step 2.5db (+-5)
-53db to +10.5db it steps 0.5db (-+1)
 
Last edited: