Example: barber

こんなふうに使える! Raspberry Pi - ogis-ri.co.jp

ITA ( Raspberry Pi ITA ITA ( Raspberry Pi 1 RaspberryPi ITA ( Raspberry Pi ARM ARM Linux GPIO 2 ITA ( RaspberryPi Model-B 3 ITA ( RaspberryPi Model-B 4 CPU 700 MHz/ARM1176 JZF-S GPU Broadcom VideoCore IV 512MB USB USB HDMI HDMI version , RCA GIOP x8,UART, I2C, SPI 5V 500mA micro USB ITA ( RaspberryPi Amazon 14/2 Model-B 5 ITA ( USB USB HDMI HDMI LAN AC MicroUSB A SDHC GB GB class10 6 ITA ( OS Raspbian Debian GNU/Linux Raspberry Pi Raspbian Fedora,Arch Linux 7 ITA ( NOOBS (offline and network install) ZIP SD SD Ras)))))))))

ITAコミュニティ(東京) Raspberry Piで何ができるの? 1 家電のコントロールを赤外線で実現!制御 は赤外線を読んで覚える!

Tags:

  Raspberry

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of こんなふうに使える! Raspberry Pi - ogis-ri.co.jp

1 ITA ( Raspberry Pi ITA ITA ( Raspberry Pi 1 RaspberryPi ITA ( Raspberry Pi ARM ARM Linux GPIO 2 ITA ( RaspberryPi Model-B 3 ITA ( RaspberryPi Model-B 4 CPU 700 MHz/ARM1176 JZF-S GPU Broadcom VideoCore IV 512MB USB USB HDMI HDMI version , RCA GIOP x8,UART, I2C, SPI 5V 500mA micro USB ITA ( RaspberryPi Amazon 14/2 Model-B 5 ITA ( USB USB HDMI HDMI LAN AC MicroUSB A SDHC GB GB class10 6 ITA ( OS Raspbian Debian GNU/Linux Raspberry Pi Raspbian Fedora,Arch Linux 7 ITA ( NOOBS (offline and network install))))))))))

2 ZIP SD SD Raspberry Pi OS Raspbian 8 OS ITA ( Raspberry Pi Micro USB Linux $ sudo shutdown h now 9 ITA ( ITA ( AquesTalk Pi Raspberry Pi Twitter Mention 11 $ ./AquesTalkPi " " | aplay ITA ( Twitter 12 Raspberry Pi Twitter .. Raspberry Pi ITA ( Raspberry Pi GPIO ITA ( GPIO 26-pin IO 14 ITA ( GPIO /sys/class/gpio/.. WiringPi Python Library (default in Raspbian) Usage.)))))))

3 WebIOPi Scratch 15 ITA ( ITA ( 17 ITA ( 18 ITA ( I2C Inter-Integrated Circuit 2 SCL/SDA GPIO 1 19 RPi LCD ITA ( 20 I2C ITA ( 21 ITA ( 22 Linux input subsystem I2C ITA ( I2C tools 23 $ sudo vi / blacklist spi-bcm2708 #blacklist i2c-bcm2708 i2c-dev $ sudo vi /etc/modules $ sudo apt-get install i2c-tools libi2c-dev $ sudo reboot ITA ( I2C DRV8830 24 $ dmesg |grep i2c [ ] bcm2708_i2c : BSC0 Controller at 0x20205000 (irq 79) (baudrate 100k) [ ] bcm2708_i2c : BSC1 Controller at 0x20804000 (irq 79) (baudrate 100k) [ ] i2c /dev entries driver $ sudo i2cdetect 1 WARNING!)))))))))

4 This program can confuse your I2C bus, cause data loss and worse! I will probe file /dev/i2c-1. I will probe address range 0x03-0x77. Continue? [Y/n] y 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- 64 -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- ITA ( Python 25 python i2c smbus $ sudo apt-get install python-smbus import smbus import time i2c = (1) # sudo i2cdetect 1 adr = 0x64 (adr,0,0x35) # bit 0x0D= , 2bit 0x01 print 'set on' (2) (adr,0,0x34))

5 # bit 0x0D= , 2bit 0x00 print 'set standby' 6bit 2bit ITA ( 26 ITA ( I2C 27 ITA ( 28 ITA ( I2C 29 ITA ( ITA ( I2C ## BMP085 - VCC -- , Pin-1 - SDA -- SDA, Pin-3 - SCL -- SCL, Pin-5 - GND -- GND, Pin-14 ## i2c-bcm2708 $ sudo vi / #blacklist spi-bcm2708 #blacklist i2c-bcm2708 ## i2c-dev $ sudo vi /etc/modules snd-bcm2835 i2c-dev ## reboot BMP085 31 ITA ( I2C ## i2c-tools $ sudo apt-get install i2c-tools # GPIO BMP085 $ sudo i2cdetect -y 0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60.)))))))

6 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- 77 $ dmesg | grep i2c [ ] bcm2708_i2c : BSC0 Controller at 0x20205000 (irq 79) (baudrate 100k) [ ] bcm2708_i2c : BSC1 Controller at 0x20804000 (irq 79) (baudrate 100k) [ ] i2c /dev entries driver 32 ITA ( I2C 21 57 22 62 23 65 pi@pitani:~/Adafruit_BMP085$ sudo python Temperature: C ( ) Pressure: hPa Altitude: C mm 16 m/s h % hPa 11/14/2013 - ## python-smbus $ sudo apt-get install python-smbus 33 ITA ( ITA ( Fritzing Growthforcast MRTG Munin 35 ITA ( GrowthForecast $ sudo apt-get install libcairo2-dev libxml2-dev $ curl -L | perl - --sudo App::cpanminus $ sudo cpanm -n GrowthForecast $ sudo 5125 36))))


Related search queries