Hello everyone,
i would like to ask your help.I faced an issue because i found an ir protocol which is not familier with arduino ir library
this config file was automatically generated
using lirc-0.6.3 on Thu Mar 29 17:41:59 2001
contributed by Christoph Bartelmus
brand: BLAUPUNKT
model: RC10
supported devices: car remote control
begin remote
name BLAUPUNKT
flags RAW_CODES
eps 0
aeps 200ptrail 0
repeat 0 0
gap 109400begin raw_codes
name SRC
6875 6850 660name SRC+
8050 8050 660name UP
3850 3850 660name OK
7500 7400 660name DOWN
4450 4400 660name RIGHT
5660 5630 660name LEFT
6280 6200 660name V+
2650 2580 660name V-
3250 3200 660name MUTE
5050 5000 660name .
2050 2000 660end raw_codes
end remote
I would like to use this protocol at a wired transmitter so i use some Pulse Width Modulation technique.
I wonder if my code is correct becuse i could not check in the serial monitor.
Hier is my code:
//name UP
// 3850 3850 660
if(LOW==UpinStatus)
{digitalWrite(2, LOW);
delayMicroseconds(3.85); //digitalWrite(2, HIGH);
delayMicroseconds(3.85); //digitalWrite(2, LOW);
delayMicroseconds(0.66); //}else
if(LOW==DpinStatus)
{
digitalWrite(2, LOW);
delayMicroseconds(4.45); //digitalWrite(2, HIGH);
delayMicroseconds(4.4); //digitalWrite(2, LOW);
delayMicroseconds(0.66); //
}
the signal looks like this:
UP 3.8 ms |_________| ||
Thank you for your kind help