User Tools

Site Tools


sleepy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sleepy [2015/03/28 13:11] andisleepy [2015/04/24 13:42] (current) 2001:1a80:22a4:a900:97fc:6854:fe65:ef8c
Line 6: Line 6:
   * permissions ''sudo usermod -G i2c pi''   * permissions ''sudo usermod -G i2c pi''
  
 +===== Accelerometer =====
  
  
   * Klinke http://www.produktinfo.conrad.com/datenblaetter/700000-724999/718612-da-01-en-KLINKENBUCHSE_3_5_MM_4_POLIG.pdf   * Klinke http://www.produktinfo.conrad.com/datenblaetter/700000-724999/718612-da-01-en-KLINKENBUCHSE_3_5_MM_4_POLIG.pdf
-    * Pol 4 (oberer Kontakt) -> (braun) VCC + 
-    Pol 3 (hinten oben) -> (Litze) GND +^ RasPI ^ Buchse ^ Sensor ^ 
-    Pol 2 (hinten links) -> (grün) +| 3V (rot) | Pol 4 (oberer Kontakt) (braun) VCC | 
-    Pol 1 (hinten rechts) -> (weiß)+| 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://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing/hardware 
 + 
 +| Orange | 3V | 
 +| Yellow | GPIO #4 | 
 +| Green  | GND | 
 + 
 + 
 +  sudo modprobe w1-gpio 
 +  sudo modprobe w1-therm 
 +  cat /sys/bus/w1/devices/28-000005d40596/w1_slave 
 + 
 +===== 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.1427548284.txt.gz · Last modified: 2015/03/28 13:11 by andi