I have a Mini DSP that I'm using in my car that I need to make a master volume control for.......
In this particular unit it HAS to be IR(no hard wire on this one),and as I'm using an HDMI fixed level output from the headunit,this is the only way I can have any sort of volume control.
The sofware interface lets me program almost any IR remote control to do volume control and a few other functions.The problem is that I have used numerous different TV etc remotes,they all say that programming was successful,but none of them actually work to alter the volume in either direction.I have been asking this question on the Mini DSP forums for a long time now without any success from the people who make it.The one exception is the remote for my Cambridge Audio soundbase,that both programs AND turns the volume up and down as required.
So using the standard IR libraries supplied with Arduino,I have managed to record what I believe to be the correct information that is transmitted by the CA remote that looks like this......
Volume up..............0x2F5708F
Volume down..........0x2F5C03F
I then transfer the above to an IR send program as below......
//---------Program developed by R.Girish--------//
#include <IRremote.h>
IRsend irsend;
const int button1 = 4;
const int button2 = 5;
const int button3 = 6;
void setup() {
pinMode(button1, INPUT);
pinMode(button2, INPUT);
pinMode(button3, INPUT);
}
void loop()
{
if (digitalRead(button1) == HIGH)
{
delay(50);
irsend.sendNEC(0x2F5708F, 32);
delay(200);
}
if (digitalRead(button2) == HIGH)
{
delay(50);
irsend.sendNEC(0x2F5C03F, 32);
delay(200);
}
if (digitalRead(button3) == HIGH)
{
delay(50);
irsend.sendRC5(0x820, 32);
delay(200);
}
}
//---------Program developed by R.Girish--------//
I use this one because it gives me the push buttons I need for this to work in my car.
I go to learn it to my DSP and it says that both up and down have been learnt successfully,but when I push the buttons again to turn the volume up and down,nothing happens.The IR LED is working ok if I view it through a digital camera.The odd thing is that the CA remote still works both ways when I've learnt it with the Arduino.
I'm I missing something really obvious here and need to give it more information,or should it work as it is?
How critical is the flash rate of the IR LED as it's a LOT faster on the CA remote than it is from the Arduino? I have tried speeding it up by taking the delay down 5ms at a time,but this still hasn't made a difference.