measuring jack themes technologies tooltips linux measuring jack themes technologies tooltip linux limejack claim limejack limejack

Start | Sprache  de en fr | Menü | Übersicht | Suche

Sie befinden sich hier: start » de » tooltips » raspi

Raspberry Pi

7" Display

Rotate Display

To get a 90 degrees rotated screen and a resolution of 1024×768 @60Hz add to /boot/config.txt:

display_rotate=3
hdmi_mode=16

1-wire for DS18B20 (Temperature)

  • sudo modprobe w1-gpio pullup=1
  • sudo modprobe w1-therm
  • cd /sys/bus/w1/devices
  • cd 10-000801b5*
  • cat w1_slave

You get a valid value (see YES) and the temperature 7,375°C:

0f 00 4b 46 ff ff 06 10 0c : crc=0c YES
0f 00 4b 46 ff ff 06 10 0c t=7375 

DS18B20 (Ansicht auf die Pins):

   __
  / o| VCC
 |  o| DQ
  \_o| GND

Raspberry PI GPIOs

PIN Bel. Bel. PIN
1 3V3 5V 2
3 SDA 5V 4
5 SCL GND 6
7 GPIO-4 TXD 8
9 GND RXD 10
11 GPIO-17 GPIO-18 12
13 GPIO-27 GND 14
15 GPIO-22 GPIO-23 16
17 3V3 GPIO-24 18
19 MOSI GND 20
21 MISO GPIO-25 22
23 SCLK CE0 24
25 GND CE1 26
          ______     [RPI]              [MAG3110]
      ---|_4.7k_|---(1:3V3)---------------(VCC)
     |              (3:SDA)---------_     (GND)------
     |              (5:SCL)-----_    -----(SDA)      |
     o--------------(7:GPIO-4)    --------(SCL)    __|__
     |           ---(25:GND)              (INT)
     |          |
     |        __|__
     |
     o----------------
     |     __         |    __
     |    / o|---     |   / o|---
      ---|--o|   |    ---|--o|   |
          \_o|---o        \_o|---o
                 |               |
               __|__           __|__
                                      
  • add in /boot/config.txt for jessie: dtoverlay=w1-gpio,gpiopin=4,pullup=on (Update 06.03.2017)

I2C for MAG3110 (Magnetic Field)

  • apt-get install i2c-tools
  • unblacklisted in /etc/modprobe.d/raspi-blacklist.conf:
    • place # as first character on line: blacklist i2c-bcm2708
  • load module by adding the lines to /etc/modules:
    • i2c-bcm2708
    • i2c-dev

After a reboot, the I2C devices /dev/i2c* exists.

Run i2cdetect -y <port> where <port> is 0 for Revision 1 Raspberry Pis and with 1 for Revision 2 boards.

On/Off Switch

Connect gpio=3 and ground on '#':

  _____________________
 | O ::#:::::::  O     |
 |     GPIOs ...       |
 |                 USB |
 |   Raspi             |
 |                 LAN |
 |O______________O_____|

Add to /boot/config.txt :

  • dtoverlay=gpio-shutdown,gpio_pin=3, active_low=1,gpio_pull=up
Disclaimer | Impressum | Privacy | Copyleft