[[PageOutline]] = note = * 規格參考: * http://item.taobao.com/item.htm?spm=a230r.1.14.137.dn3xh0&id=21948660179 * http://item.taobao.com/item.htm?id=19030341711&ali_refid=a3_420791_1007:1104801906:7::87a956e4b0f948e2a6c62939556f1359&ali_trackid=1_87a956e4b0f948e2a6c62939556f1359&spm=0.0.0.0.36LCkX * http://detail.tmall.com/item.htm?spm=a230r.1.14.13.QbH1Co&id=15504630386&ad_id=&am_id=&cm_id=140105335569ed55e27b&pm_id= = 無線網路設定 = * WPA 密碼設定: * 設定檔:/etc/network/interfaces {{{ # allow-hotplug wlan0 iface wlan0 inet manual wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf iface default inet static address 10.1.2.20 netmask 255.255.255.0 network 10.1.2.0 gateway 10.1.2.1 }}} * 使用 DHCP 設定 IP: {{{ # allow-hotplug wlan0 iface wlan0 inet manual wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf iface default inet dhcp }}} * 手動設定 IP 設定檔:/etc/wpa_supplicant/wpa_supplicant.conf {{{ ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="Your SSID Here" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP psk="YourPresharedKeyHere" } }}} * 重新啟動無線網路。 {{{ # sudo ifdown wlan0 # sudo ifup wlan0 ioctl[SIOCSIWAP]: Operation not permitted ioctl[SIOCSIWENCODEEXT]: Invalid argument ioctl[SIOCSIWENCODEEXT]: Invalid argument }}} * 觀看無線網路狀態: {{{ # iwconfig lo no wireless extensions. eth1 no wireless extensions. wlan0 IEEE 802.11bg ESSID:"Your SSID Here" Nickname:"" Mode:Managed Frequency:2.442 GHz Access Point: NN:NN:NN:NN:NN:NN Bit Rate:54 Mb/s Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality=100/100 Signal level=95/100 Noise level=0/100 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 eth0 no wireless extensions. }}} = 套件 = == webcam == * http://gsyan888.blogspot.tw/2013/04/raspberry-pi-webcam-server.html * http://pingbin.com/2012/12/raspberry-pi-web-cam-server-motion/ * 設定檔: {{{ #lsusb 看是否抓到 webcam #sudo vim.tiny /etc/motion/motion 設定 daemon : 設定為 on webcam_localhost : 設定為 off #sudo vim.tiny /etc/default/motion start_motion_daemon=yes }}} * 啟動: {{{ #sudo service motion start }}} * 觀看服務狀態: {{{ #netstat -na | grep 8081 tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN }}} * 於 browser 中輸入「http://192.168.2.1:8081」即可觀看 == CNC == * http://bb-lcnc.blogspot.tw/2013/09/new-machinekit-image-available.html == GPIO == * https://pypi.python.org/pypi/pip * http://cheng-min-i-taiwan.blogspot.tw/2013/04/raspberry-pi-python.html * https://code.google.com/p/raspberry-gpio-python/wiki/Outputs * https://pypi.python.org/pypi/RPi.GPIO * http://yehnan.blogspot.tw/2012/07/raspberry-pigpioled.html = 作品 = * http://www.theregister.co.uk/2013/02/13/pi_carbot/ 自走車 = Reference = * http://kerneldriver.wordpress.com/2012/10/21/configuring-wpa2-using-wpa_supplicant-on-the-raspberry-pi/