sleepy
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| sleepy [2015/03/13 22:19] – created andi | sleepy [2015/04/24 13:42] (current) – 2001:1a80:22a4:a900:97fc:6854:fe65:ef8c | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| * Raspi <-> GPIO connector, make sure ribbon cable connected right (silver up at Raspi, blue up at adapter) | * Raspi <-> GPIO connector, make sure ribbon cable connected right (silver up at Raspi, blue up at adapter) | ||
| * permissions '' | * permissions '' | ||
| + | |||
| + | ===== Accelerometer ===== | ||
| + | |||
| + | |||
| + | * Klinke http:// | ||
| + | |||
| + | ^ RasPI ^ Buchse ^ Sensor ^ | ||
| + | | 3V (rot) | Pol 4 (oberer Kontakt) | (braun) VCC | | ||
| + | | GND (schwarz) | Pol 3 (hinten oben) | (Litze) GND | | ||
| + | | SCL (orange) | Pol 2 (hinten links) | (grün) SCL | | ||
| + | | SDA (brown) | Pol 1 (hinten rechts) | (weiß) SDA | | ||
| + | |||
| + | ===== Temperature ===== | ||
| + | |||
| + | https:// | ||
| + | |||
| + | | Orange | 3V | | ||
| + | | Yellow | GPIO #4 | | ||
| + | | Green | GND | | ||
| + | |||
| + | |||
| + | sudo modprobe w1-gpio | ||
| + | sudo modprobe w1-therm | ||
| + | cat / | ||
| + | |||
| + | ===== Speaker ===== | ||
| + | |||
| + | GPIO 18 | ||
| + | |||
| + | right input and output | ||
| + | |||
| + | mono files | ||
| + | |||
| + | |||
| + | gpio mode 1 out | ||
| + | gpio write 1 1 | ||
| + | play test.wav -c 1 repeat 3 | ||
| + | gpio write 1 0 | ||
| + | |||
| + | ===== Buttons ===== | ||
| + | |||
| + | * Button right: GPIO #17 | ||
| + | * Button left: GPIO #27 | ||
| + | |||
sleepy.1426285173.txt.gz · Last modified: by andi
