Subversion Repositories Projects

Rev

Rev 838 | Rev 840 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
838 - 1
Servo controlled infrared transmitter
2
Based on the nice IR decoder/encoder routines (IRMP/IRSND) from Frank Meyer => http://www.mikrocontroller.net/articles/IRMP
3
 
4
Application examples:
5
- Remote control for a camera on a RC-model through normal servo channels.
6
- Control for a TV at home. Doorbell connected to one input - switches the TV to a surveillance cam.
7
- Control for a stereo at home. Motion sensor connected to one input - pump up the volume to scare a housebreaker.
8
 
9
The idea for this project came up, to control a HD-camcorder on a Mikrokopter with a second radio-transmitter.
10
Gas-Stick: Zooming Camera
11
3-way Switch: Stop/Picture/Movie record
12
Nick-Stick: Cameraholder-Nick
13
Roll-Stick: Cameraholder-Roll
14
 
15
 
16
Inputs:
17
2 channels for servo-signals, switches or other TTL signals
18
1 IR-Receiver to learn new codes (36 - 40 kHz)
19
 
20
Output:
21
Modulated infrared signal at 950 nm
22
 
23
Controls:
24
1 LED to indicate several operating modes
25
1 button to enter/leave the learning mode and switch between single and multi mode
26
 
27
Supply voltage:
28
5V DC @ 50 mA
839 - 29
(Attention when using RC-Receivers with higher voltage)
838 - 30
 
31
 
32
Theory of operation:
33
 
34
Each channel is seperated into 5 states, depending on the positive pulse width:
35
0,00 - 0,74 ms => 0 (switch to GND)
36
0,75 - 1,24 ms => 1 (stick down)
37
1,25 - 1,74 ms => 2 (stick middle)
38
1,75 - 2,24 ms => 3 (stick up)
39
2,25 - more ms => 4 (switch to VCC or open input)
40
 
41
Together with the second input, you get theoretically 25 different combinations, which all can be populated with learned IR-code.
42
 
43
When using servo signals only, you have 3 states per channel, so 9 combinations.
44
When using switch signals only, you have 2 states per channel, so 4 combinations.
45
When mixing both signals, you have 2 states for the switch and 3 states for the servo, so 6 combinations.
46
When using only one channel, you get 2 (switch) or 3 (servo) states.
47
 
48
After power-up, the device checks the inputs the whole time. When a combination was learned with an IR-Code before, this code is sent out through the IR-Diode. Depending on which mode this combination was learned, it is sent out only once (single-mode), or as long as the combination stays active (multi-mode).
49
When the device sends out IR-Code, the red LED lights up.
50
 
51
 
52
Theory of learning:
53
When you press the button on the device, it goes to learning-mode.
54
In this mode, the LED flashes 1 or 2 times (depending of the actual mode) every half second, indicating that the device is waiting for IR-codes.
55
When pressing the button again, you can choose between single- or multi-mode.
56
 
57
When an IR-code is sent to the device, it looks at which state-combination the inputs are, and saves the IR-code for this combination.
58
Saving is confirmed with fast flashing of the LED.
59
You can now learn multiple combinations with different (or same) IR-codes, you can even mix up different IR-protocols and use different modes on different combinations.
60
When you have learned enough, press the button for 2 seconds, to permanently save the data to the EEPROM. This is confirmed with fast LED-flashing.
61
The device goes back to normal operation and is ready for orders.
62
 
63
 
64
Currently supported IR-Protocols
839 - 65
Protocol:   Used by
838 - 66
===================
67
GRUNDIG     Grundig
68
JVC         JVC
69
KASEIKYO    Panasonic, Technics, Denon and more japanese manufacturer, which are member in "Japan's Association for Electric Home Application"
70
NEC         NEC, Yamaha, Canon, Tevion, Harman/Kardon, Hitachi, JVC, Pioneer, Toshiba, Xoro, Orion, NoName and much more japanese manufacturer
71
NIKON       Nikon
72
NOKIA       Nokia, e.g. D-Box
73
RC5         Philips and more european manufacturer
74
RECS80      Philips, Nokia, Thomson, Nordmende, Telefunken, Saba, Technisat
75
SAMSUNG     Samsung
76
SIRCS       Sony
839 - 77
 
78
 
79
The code was compiled using WinAVR-20081205. Other versions generate much bigger code which don't fit in the ATMega8 anymore. To avoid this, use another WinAVR version or disable some IR-protocols in irmpconfig.h and irsndconfig.h
80
 
81
This project is based on the nice IR decoder/encoder routines (IRMP/IRSND) from Frank Meyer => http://www.mikrocontroller.net/articles/IRMP