Inhaltsverzeichnis

Raspberry Pi Peripherals

Device Conn. / Type Interface
Temp. Sensor DS18B20 Chip 1 Wire Interface
MCP3008 10 Bit ADC Chip SPI Interface
Waveshare 1.8" LCD Using ST7735 Controller Chip SPI Interface
Ultraschall-Abstandssensor 4-pol. GPIO
Relais 1x 250V / 10 A Grove 4-pol. ???
Relais 2x 250V / 10 A 4-pol. GPIO
Temperature & Humidity Grove 4-pol. ???
Bodenfeuchtigkeit / Moisture Grove 4-pol. Analog

1 Wire Interface

Temp. Sensor DS18B20

$ cat 28-0000092bd91e/w1_slave 
58 01 4b 46 7f ff 08 10 f9 : crc=f9 YES
58 01 4b 46 7f ff 08 10 f9 t=21500

where crc=.. YES incicates that the data CRC is OK, and t= is the temperature in 1/1000 °C

Links:

SPI Interface

MCP3008 10 Bit ADC

Links:

Waveshare 1.8" LCD Using ST7735 Controller

Pin Raspi GPIO Signal Cable Color
VCC +3.3 V Power Supply violet
GND GND Ground white
DIN MOSI green
CLK SCLK orange
CS SPI0 CS0 yellow
DC GPIO24 Command / Data blue
RST GPIO25 Reset black
BL +5V? red

sudo modinfo fbtft_device  # list module parameters

sudo modprobe fbtft_device name=sainsmart18 busnum=1    # Use SPI0 CS1 instead of SPI0 CS0
sudo modprobe fbtft_device name=sainsmart18 speed=16000000
sudo modprobe fbtft_device name=sainsmart18 speed=16000000 rotate=270

Links:


Martin Burnicki martin.burnicki@burnicki.net 2018-02-11