Hi Adrian ,
If the Remote have to low volt on battery then it can be a problem
you did not addon any files in post so what version do you use
If the Remote have to low volt on battery then it can be a problem
you did not addon any files in post so what version do you use
code for Rda5807 FM Stereo Digital Radio Module
If you need a simple radio modul I tested this
Rda5807 FM Stereo Digital Radio Module it can be found on Ebay
link to datasheet & ebay in the file
Addon Test code
it use 2 buttons to setup freq +-0.1 Mhz steps as simple test
If you need a simple radio modul I tested this
Rda5807 FM Stereo Digital Radio Module it can be found on Ebay
link to datasheet & ebay in the file
Addon Test code
it use 2 buttons to setup freq +-0.1 Mhz steps as simple test
Attachments
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.
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
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
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
Last edited:
I will try to write de software tomorrow. What results i should expect ?
Right now i'm using a universal remote and i choose my own codes but for near future i ordered and plan to use this one Chunghop Universal Learning Remote Control L102 Silver | eBay
Right now i'm using a universal remote and i choose my own codes but for near future i ordered and plan to use this one Chunghop Universal Learning Remote Control L102 Silver | eBay
Hi Adrian,
This is a image of the lcd from remote tester
it show Address / Command & some text
more info in page 28 post #271
This is a image of the lcd from remote tester
An externally hosted image should be here but it was not working when we last tested it.
it show Address / Command & some text
more info in page 28 post #271
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.
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
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"
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 Adrian,
try change RC5 setup to :
Config Rc5 = Pind.3 , Wait = 2000
the Wait , is now setup as older versions of Bascom
see help Config RC5
try change RC5 setup to :
Config Rc5 = Pind.3 , Wait = 2000
the Wait , is now setup as older versions of Bascom
see help Config RC5
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
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
I tested the code (,wait = 2000) and it works here on a M32 and M8
are you sure you have setup fusebit as internal 8Mhz ?
Low = E4 High = D9
try addon hex compiled with latest Bascom-avr
are you sure you have setup fusebit as internal 8Mhz ?
Low = E4 High = D9
try addon hex compiled with latest Bascom-avr
Attachments
Last edited:
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 🙂
Things are better now 🙂
Hi, I just programed a ATMEGA8515 wirh the code
and it works OK 1 push on remote step volume up/down and input input up down
this must be your remote that have problem
and it works OK 1 push on remote step volume up/down and input input up down
this must be your remote that have problem
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
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
about the return to volume
you can use the backlight time
addon file with the update 🙂
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
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 🙂
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
Last edited:
PS. Yours are working better than mine 🙂 Bugs are on mine software 🙂
I dont have the bug !! update to latest bascom-avr 🙂
see video HERE
download latest file again (adrian encoder 4 intrari_2077_update.zip)
your code its not same code as what I used see diffrens in bas 🙂
timer1 start stop
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!
Thank you again for your help!
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:
- Home
- Source & Line
- Analog Line Level
- Yet another Volume controlers and source selections