composants:rpi_osmc

This is an old revision of the document!


OSMC Media Center

La Raspberry pi est idéal pour se construire un media center personnel, par exemple en couple avec un NAS.

IR remotes generally emit in a wavelength around 940nm, so we need a IR sensor. It's invisible to the eye but cameras (such as smartphones) can see a dim purple light.

  • MyOSMC > Pi Config > Hardware Support
    • Note GPIO pins
    • we need gpio_in_pin
  • Plug the IR sensor accordingly (see below)
    • Vin on 3.3V or 5V
    • GND on RPi GND
    • OUT on gpio_in_pin (18 on mine in 12/2017)
  • MyOSMC > Remotes
    • Active appropriate script according to your remote
    • If no script exists, clone a script and edit it or create one with irrecord command

Log into a shell : EXIT » Esc. key (default user/pass : osmc/osmc)

Stop lircd service

sudo systemctl stop lircd_helper@lirc0

Launch irrecord specifying correct device (here /dev/lirc0)

irrecord -d /dev/lirc0 /home/osmc/lircd.conf

Reboot lircd service

sudo systemctl start lircd_helper@lirc0

Script will ask to press certain buttons. Full list can be found here (2017)

ir38dm.jpg

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

To wake up the RPi after halt, short pin #05 and GND

  • composants/rpi_osmc.1569169054.txt.gz
  • Last modified: 2020/06/01 16:36
  • (external edit)