Hi guys,
I'm trying to reproduce signals for the Lego Ir Recever but it seem I can't get it working either I don't fully understand the documentation or the program itself that have some problems.
To be specific the signal I'm trying to reproduce is the Combo_PWM Signal and the bits I'm Using to do so are(Using Channel 1):
Start 0100 1000 0100 1001 Stop
I'm not sure the last one 1001 is correct as I don't know exactly what 0xF means in the documentation so I supposed 1111 as I've read somewhere...
Lego IR Documentation : http://www.philohome.com/pf/LEGO_Power_Functions_RC.pdf
The Full Code I'm Trying to Reproduce:
IR Data
All the messages are the same.
N Pulse ON OFF
0 10426 0 10426 //First Delay
1 1170 156 1014 //First Message Start Bit
2 416 156 260 //0
3 702 156 546 //1
4 416 156 260 //0
5 416 156 260 //0
6 702 156 546 //1
7 416 156 260 //0
8 416 156 260 //0
9 416 156 260 //0
10 416 156 260 //0
11 702 156 546 //1
12 416 156 260 //0
13 416 156 260 //0
14 702 156 546 //1
15 416 156 260 //0
16 416 156 260 //0
17 702 156 546 //0
18 1170 156 1014 //Stop Bit
19 41704 0 41704 //Second Delay
20 1170 156 1014 //Second Message
21 416 156 260
22 702 156 546
23 416 156 260
24 416 156 260
25 702 156 546
26 416 156 260
27 416 156 260
28 416 156 260
29 416 156 260
30 702 156 546
31 416 156 260
32 416 156 260
33 702 156 546
34 416 156 260
35 416 156 260
36 702 156 546
37 1170 156 1014
38 41704 0 41704 //Third Delay
39 1170 156 1014 //Third Message
40 416 156 260
41 702 156 546
42 416 156 260
43 416 156 260
44 702 156 546
45 416 156 260
46 416 156 260
47 416 156 260
48 416 156 260
49 702 156 546
50 416 156 260
51 416 156 260
52 702 156 546
53 416 156 260
54 416 156 260
55 702 156 546
56 1170 156 1014
57 36491 0 36491 //Fourth Delay
58 36491 0 36491 //Fourth Delay
59 1170 156 1014 //Fourth Message
60 416 156 260
61 702 156 546
62 416 156 260
63 416 156 260
64 702 156 546
65 416 156 260
66 416 156 260
67 416 156 260
68 416 156 260
69 702 156 546
70 416 156 260
71 416 156 260
72 702 156 546
73 416 156 260
74 416 156 260
75 702 156 546
76 1170 156 1014
77 36491 0 36491 //Fifth Delay
78 36491 0 36491 //Fifth Delay
79 1170 156 1014 //Fifth Message
80 416 156 260
81 702 156 546
82 416 156 260
83 416 156 260
84 702 156 546
85 416 156 260
86 416 156 260
87 416 156 260
88 416 156 260
89 702 156 546
90 416 156 260
91 416 156 260
92 702 156 546
93 416 156 260
94 416 156 260
95 702 156 546
96 1170 156 1014
97 36491 0 36491 //Sixth Delay
98 36491 0 36491 //Sixth Delay
If you guys think the Code is correct I will post the program.