Purpose: Remote control decoder

Status: * Decoding part – done.

  • Encoding part – not working – I need to check the 555 timer via scope(which i dont have) to verify the modulated frequency.

BOM:

  • 1 BASIC Stamp 2e processor PBASIC; variant Basic Stamp 2e
  • 1 Electrolytic Capacitor package 100 mil [THT, electrolytic]; capacitance 1µF; voltage 6.3V
  • 1 Ceramic Capacitor package 100 mil [THT, multilayer]; capacitance 0.01µF; voltage 6.3V
  • 1 TSOP312.., 314.. package THT; row single; pin spacing 0.1in (2.54mm); pins 3
  • 1 Infrared LED - 5mm package 5 mm [THT]; leg yes; color Infrared (940nm)
  • 1 150 Ω Resistor package THT; tolerance ±5%; bands 4; resistance 150Ω; pin spacing 400 mil
  • 3 220 Ω Resistor package THT; tolerance ±5%; bands 4; resistance 220Ω; pin spacing 400 mil
  • 1 470 Ω Resistor package THT; tolerance ±5%; bands 4; resistance 470Ω; pin spacing 400 mil
  • 1 Rotary Potentiometer (Small) maximum resistance 10kΩ
  • 1 555 Timer package DIP8 [THT]

Schematic

Captured IR code using a IR phototransistor connected to a PC/Laptop sound card.

Sample decoding session using Basic Stamp Editor debug terminal.

Measuring Start bit:
Press several random keys 15 times at least 1 second apart
15 of 15
Start pulse range: uS , units
LOW: 2916us - 3672us , 1474-1842
High: 4104us - 4104us , 2059-2062
Skip pulse histogram:[Y/n] n
Press a several random keys repeatedly
00: Width units         0       Width us        0-36     60
12: Width units         216     Width us        432-468  25
13: Width units         234     Width us        468-504  37
14: Width units         252     Width us        504-540  12
15: Width units         270     Width us        540-576  2
16: Width units         288     Width us        576-612  3
17: Width units         306     Width us        612-648  6
43: Width units         774     Width us        1548-1584       20
44: Width units         792     Width us        1584-1620       204
45: Width units         810     Width us        1620-1656       14
62: Width units         1116    Width us        2232-2268       105
Enter low bit max width (in cycles,see histogram): 288
Enter high bit max width (in cycles,see histogram): 810
Press a key to decode
Bit Count: 32
LSB to MSB: %11111101 %00000010 %00000111 %00000111 FD020707
Transmit code LSB->MSB:[Y/n] n
Retransmit code LSB->MSB:[Y/n] n
Bit Count: 32
LSB to MSB: %11111011 %00000100 %00000111 %00000111 FB040707
Transmit code LSB->MSB:[Y/n] n
Retransmit code LSB->MSB:[Y/n] n
Bit Count: 33
LSB to MSB: %11111011 %00000100 %00000111 %00000111 FB040707
Transmit code LSB->MSB:[Y/n]