Category: raspberry pi


Tiny Pi Zero

pi-zero-frontpi-zero-back

 

Video from Raspberry Pi Foundation

Most of the steps refer to Kodi (OpenElec) not Raspbmc

Wiring of the TSOP 38238

TSOP38238_raspi

ssh into raspi

>mount /flash -o remount,rw

>nano /flash/config.txt

add the following to your config.txt:

dtoverlay=lirc-rpi

reboot pi

 

Setup the IR-remote. I used this one:

remote

ssh into raspi again

>killall lircd
>irrecord /storage/.config/lircd.conf

follow the instruction of irrecord

 

A known trick to proof if youre IR-remote is basically working (maybe we used dead batteries) is to check it with your smartphone’s camera. The infrared light will be visible.

ir

/storage/.config/lircd.conf:

# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.1-git(default) on Sat Mar 21 14:32:08 2015
#
# contributed by 
#
# brand:                       /storage/.config/lircd.conf
# model no. of remote control: hauppauge! 
# devices being controlled by this remote: Kodi
#

begin remote

  name  /storage/.config/lircd.conf
  bits           13
  flags RC5|CONST_LENGTH
  eps            30
  aeps          100

  one           898   875
  zero          898   875
  plead         898
  gap          114272
  toggle_bit_mask 0x800

      begin codes
          KEY_POWER                0x17FD
          KEY_NUMERIC_1            0x17C1
          KEY_NUMERIC_2            0x17C2
          KEY_NUMERIC_3            0x17C3
          KEY_NUMERIC_4            0x17C4
          KEY_NUMERIC_5            0x17C5
          KEY_NUMERIC_6            0x17C6
          KEY_NUMERIC_7            0x17C7
          KEY_NUMERIC_8            0x17C8
          KEY_NUMERIC_9            0x17C9
          KEY_NUMERIC_0            0x17C0
          KEY_EXIT                 0x17DF
          KEY_MENU                 0x17CD
          KEY_RED                  0x17CB
          KEY_GREEN                0x17EE
          KEY_YELLOW               0x17F8
          KEY_BLUE                 0x17E9
          KEY_UP                   0x17E0
          KEY_DOWN                 0x17E1
          KEY_LEFT                 0x17D1
          KEY_RIGHT                0x17D0
          KEY_OK                   0x17E5
          KEY_MUTE                 0x17CF
          KEY_REWIND               0x17F2
          KEY_PLAY                 0x17F5
          KEY_FASTFORWARD          0x17F4
          KEY_RECORD               0x17F7
          KEY_STOP                 0x17F6
          KEY_PAUSE                0x17F0
      end codes

end remote

 

See: http://wiki.openelec.tv/index.php/Guide_To_lirc_rpi_GPIO_Receiver

To get rid of the crackle when starting audio, follow the steps below:

~$ sudo apt-get update
~$ sudo apt-get upgrade

~$ sudo apt-get install git-core
~$ sudo wget https://raw.github.com/Hexxeh/rpi-update/master/rpi-update -O /usr/bin/rpi-update
~$ sudo chmod +x /usr/bin/rpi-update

~$ sudo cp /boot/start.elf /boot/start.elf.knowngood

~$ sudo rpi-update
~$ sudo reboot

Ah well, sooner or later it brakes! I guess there are dozens of Pies with broken SD card sockets since it is known to be a weak spot…

The first attempt was to fix it as shown on http://raspi.tv/2012/how-to-fix-a-broken-sd-card-slot-on-your-raspberry-pi. This is good solution if you want to fix it rather quick.

 

A more durable repair is to replace the broken SD card socket.

P1020439

Get rid of the broken socket. Unless you have a desoldering station, it’s best to cut the pins with a cutting plier before unsoldering the socket from the Pi.

P1020443

A single spare socket – in most cases – is more expensive than a complete USB-to-SD-Adapter … weird… (don’t cut the pins this time…)

 

P1020447

 

P1020460

…and soldering the salvaged socket.

P1020463

The Pi is working again! (Just in case you wonder about the piggyback… this is an arduino :))