This is an old revision of the document!
OSMC Media Center
Résumé
La Raspberry pi est idéal pour se construire un media center personnel, par exemple en couple avec un NAS.
Mettre une télécommande
Remote controls typically use a 940 nm wavelength and this setup requires a receiver diode capable of sensing in that spectrum. It is invisible to human eye but video cameras see it as if it produces purple light.
Installation steps :
- Enter MyOSMC > Pi Config > Hardware Support
- Note the GPIO pins
- The one we need is gpio_in_pin
- Cable the diode to the board
- Vin to 3.3V or 5V accordingly
- GND to RPi GND
- OUT to pin gpio_in_pin (18 when deployed in 12/2017)
- Go to MyOSMC > Remotes
- Activate the script for the remote you are using
- If it doesn't exist, clone a script and make your own or learn one using the irrecord command
Using irrecord
You must be in a shell : EXIT » esc-key (default user/pass : osmc/osmc)
Stop the lircd service
sudo systemctl stop lircd_helper@lirc0
User irrecord specifying the correct device node
irrecord -d /dev/lirc0 /home/osmc/lircd.conf
Start the lircd service again
sudo systemctl start lircd_helper@lirc0
During the record you will be asked to specify keys formatted as such KEY_1, KEY_2, etc. A full list https://www.ocinside.de/modding_en/linux_ir_irrecord_list/ (2017)
Ressources
IR38-DM pinout
Specifications
- output form: active low
- supply voltage: 4.5V ~5.5V
- low level output voltage: 0.2V
- power consumption: 0.6mA
- wavelength: 940nm
- BPF center frequency: 38kHz
- operating temperature: -10°C ~ +60°C
- soldering temperature: 260°C, t< 5sec
- signal range: max. 10m
- case: 7.3 x 7.6 x 5.2mm ±0.3mm
- weight: 0.68g