如何成為Open Hardware的 Maker( 香蕉派篇 )- 哈爸雜記

編輯歷史

時間 作者 版本
2015-09-11 11:25 – 11:34 wuulong sheu r1485 – r1499
顯示 diff
- 如何成為Open Hardware的 Maker( 香蕉派篇 )- 新手入門篇
-
- 建議
- *預設 SD 卡內的 image 的相關資料要寫入 User manual 中,預設帳號/密碼要指出
-
- *需要 data sheet
- *需要 layout 的 PDF, 起碼 top level
-
- *建議在 BPI-WiringPi2-Python 放入 spi, i2c 的 example
-
- 新手問題
- *wiringpi.GPIO.WPI_MODE_PINS 中 mode 的設定與如何解讀不同 mode 的 pin id 的定義
- *wiringPiSetupGpio()
+ 如何成為Open Hardware的 Maker( 香蕉派篇 )- 哈爸雜記
- *為何 PIN2,4 說是 5V, 用電錶量起來是 0v, PIN1 3.3v 量起來就正常
- *
初步使用步驟
(42 行未修改)
- *用 GrovePi + Grove-LCD RGB Backlight 可以讀到 i2c devices, 不知為何不容易接穩。但是接好時,就很穩
- *
+ *用 GrovePi + Grove-LCD RGB Backlight 可以讀到 i2c devices,*
*>i2cdetect -y 2
* 0 1 2 3 4 5 6 7 8 9 a b c d e f
(39 行未修改)
*
StWifi 開機自動連上
- *其他經驗udy 有趣的周邊與應用
-
-
- *
-
-
+ *其他經驗u
Raspberry Pi超炫專案與完全實戰(深入Raspberry Pi的全面開發經典) : 快讀過
*線上書
(12 行未修改)
*範例錯誤
*Face Detect example : PASS
-
- SimpleCV 研究
- *
*
*
(5 行未修改)
2015-08-30 06:26 – 07:47 wuulong sheu r1279 – r1484
顯示 diff
(77 行未修改)
- *lcd.sh 目前測試 write fail, 改 i2cbus =2 , 也同樣失敗
+ 44*lcd.sh 目前測試 write fail, 改 i2cbus =2 , 也同樣失敗
*sudo i2cget -y 2 0x62 0 => 0x11 i2c read register PASS
*addr(0): 0x11
*addr(1):0x05
- *addr(2):0x00
+ 44*addr(2):0x00
*addr(3):0x00
*addr(4):0x00
(31 行未修改)
*走一遍 Ch14 擴增實境影像辨識系統
*SimpleCV
+ *book Practical_Computer_Vision_with_SimpleCV_supplemental_files.zip
*Practical Computer Vision with Simplecv.pdf
+ *羅技 C170 視訊攝影機
+ *install (luvcview)
+ *luvcview -s 320x240 : PASS
+ *SimpleCV installation
+ *sudo apt-get install python-opencv python-scipy python-numpy python-pip python-pygame
+ *sudo pip install https://github.com/ingenuitas/SimpleCV/zipball/master
+ *SimpleCV installation : PASS
+ *範例錯誤
+ *Face Detect example : PASS
+
+ SimpleCV 研究
+ *
+ *
+ *
*
(3 行未修改)
2015-08-29 06:55 – 07:42 wuulong sheu r1236 – r1278
顯示 diff
(107 行未修改)
StWifi 開機自動連上
*其他經驗udy 有趣的周邊與應用
+
+
+ *
+
+ Raspberry Pi超炫專案與完全實戰(深入Raspberry Pi的全面開發經典) : 快讀過
+ *線上書
+ *走一遍 Ch14 擴增實境影像辨識系統
+ *SimpleCV
+ *Practical Computer Vision with Simplecv.pdf
*
+
(1 行未修改)
2015-08-27 03:31 – 03:32 wuulong sheu r1227 – r1235
顯示 diff
(105 行未修改)
*Host use VNC to connect bananapi, ex: readvnc, jollysfastvnc
*
- Study 有趣的周邊與應用
+ StWifi 開機自動連上
+ *其他經驗udy 有趣的周邊與應用
(4 行未修改)
2015-08-26 22:37 – 00:33 wuulong sheu r1076 – r1226
顯示 diff
(17 行未修改)
初步使用步驟
- 閱讀 user manual , 開機登入,當一般 linux 使用
+ 安裝殼 : PASS閱讀 user manual , 開機登入,當一般 linux 使用
在 M1+ 用內核提供的方式點燈
安裝設定BPI-WiringPi2-Python
(70 行未修改)
*addr(11):0xe8
*addr(12):0xe0
- *etup ssh
- Remote X 或是遠端桌面
+ *etsetup sshe: PASS
+ *boot with sshd ready - OK
+ *fix eth interface with 192.168.168.168 - OK (with boot ready)
+ *boot with internet ready by eth and fix ip - WIPmote X 或是遠端桌面
+ : WIP
+ *install xrdp
+ *sudo apt-get install xrdp
+ *apt-get install tightvncserver
+ *Host use VNC to connect bananapi, ex: readvnc, jollysfastvnc
+ *
Study 有趣的周邊與應用
(5 行未修改)
2015-08-26 01:47 – 01:53 wuulong sheu r984 – r1075
顯示 diff
(29 行未修改)
*wiringpi.pinMode(22,1)
*wiringpi.digitalWrite(22,0)
- -------------------------- 計畫中 -------------------------------
+
run gpio readall
*./build OK, ./pintest can run, but show some faults detected. also show
*Oops - unable to deteremine board type .... model : 7
- 驗證 Glove shield
+ 驗證 Glove shield : Quick PASS
*GlovePi
+ *I2C can be read by GlovePi shield - quick PASS
*
驗證 SPI
+ *WiringPi2Python
*serial = wiringpi2.serialOpen('/dev/ttyS2',115200) # Requires device/baud and returns an ID
*wiringpi2.serialPuts(serial,"hello")
*wiringpi2.serialClose(serial) # Pass in ID
-
+ *
+ *Code 可 run, 沒 error, 需check output
*不知道為何要使用 ttyS2? UART可能在是 PIN8,1
GPIO 14,15*
驗證 I2C
-
+ : Quick PASS
*I2C 可能接在 PIN 27/28*I2C RPI tool
(53 行未修改)
2015-08-25 21:08 – 00:29 wuulong sheu r411 – r983
顯示 diff
(2 行未修改)
建議
*預設 SD 卡內的 image 的相關資料要寫入 User manual 中,預設帳號/密碼要指出
+
+ *需要 data sheet
+ *需要 layout 的 PDF, 起碼 top level
+
+ *建議在 BPI-WiringPi2-Python 放入 spi, i2c 的 example
新手問題
*wiringpi.GPIO.WPI_MODE_PINS 中 mode 的設定與如何解讀不同 mode 的 pin id 的定義
*wiringPiSetupGpio()
+
+ *為何 PIN2,4 說是 5V, 用電錶量起來是 0v, PIN1 3.3v 量起來就正常
*
(7 行未修改)
*pin detail definition by code
*在內核點燈中 GPIO22, 在40 pin 中的 PIN 15 Match
- -------------------------- 計畫中 -------------------------------
run BPI-WiringPi2-Python/test.py
- *需確定 test.py 中, 這個是否能點燈,以驗證 WiringPi2 工作正常
+ *需確定 test.py 中, 這個能點燈,驗證 WiringPi2 工作正常
*wiringpi.wiringPiSetupGpio()
*wiringpi.pinMode(22,1)
*wiringpi.digitalWrite(22,0)
-
+ -------------------------- 計畫中 -------------------------------
run gpio readall
+ *./build OK, ./pintest can run, but show some faults detected. also show
+ *Oops - unable to deteremine board type .... model : 7
+ 驗證 Glove shield
+ *GlovePi
+ *
驗證 SPI
*serial = wiringpi2.serialOpen('/dev/ttyS2',115200) # Requires device/baud and returns an ID
*wiringpi2.serialPuts(serial,"hello")
*wiringpi2.serialClose(serial) # Pass in ID
+
+ *不知道為何要使用 ttyS2? UART可能在是 PIN8,1
+ GPIO 14,15*
驗證 I2C
- *I2C RPI tool
- *Try similar code with Grove - LCD RGB Backlight
- *import wiringpi2
+
+ *I2C 可能接在 PIN 27/28*I2C RPI tool
+
+ *Tool installed. need to setup i2c BPI kernel module. How?
+ *參考香蕉派 LCD
+ *vi /etc/modprobe.d/raspi-blacklist.conf should be bpi-blacklist.conf
+ **Try similar code with Grove - LCD RGB Backlight
+ datasheet*import wiringpi2
*i2c = wiringpi2.I2C()
*dev = i2c.setup(0x20) ( not sure about what to pass into the setup function, but presumably a device address? )
*i2c.read(dev)
+
+
+ *用 GrovePi + Grove-LCD RGB Backlight 可以讀到 i2c devices, 不知為何不容易接穩。但是接好時,就很穩
+ *
+ *>i2cdetect -y 2
+ * 0 1 2 3 4 5 6 7 8 9 a b c d e f
+ *00: 03 -- -- -- -- -- -- -- -- -- -- -- --
+ *10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+ *20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+ *30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+ *40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+ *50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+ *60: -- -- 62 -- -- -- -- -- -- -- -- -- -- -- -- --
+ *70: 70 -- -- -- -- -- -- --
+
+ *i2c address 0x62 confirmed for LCD, but should have 0x3e, not detected, why? 另外為何有 0x3, 0x70
+
+
+ *lcd.sh 目前測試 write fail, 改 i2cbus =2 , 也同樣失敗
+ *sudo i2cget -y 2 0x62 0 => 0x11 i2c read register PASS
+ *addr(0): 0x11
+ *addr(1):0x05
+ *addr(2):0x00
+ *addr(3):0x00
+ *addr(4):0x00
+ *addr(5):0x00
+ *addr(6):0xff
+ *addr(7):0x00
+ *addr(8):0x00
+ *addr(9):0xe2
+ *addr(10):0xe4
+ *addr(11):0xe8
+ *addr(12):0xe0
+ *etup ssh
+ Remote X 或是遠端桌面
+
+
Study 有趣的周邊與應用
(6 行未修改)
2015-08-25 01:48 – 03:22 wuulong sheu r3 – r410
顯示 diff
(1 行未修改)
建議
+ *預設 SD 卡內的 image 的相關資料要寫入 User manual 中,預設帳號/密碼要指出
+
+ 新手問題
+ *wiringpi.GPIO.WPI_MODE_PINS 中 mode 的設定與如何解讀不同 mode 的 pin id 的定義
+ *wiringPiSetupGpio()
+
+ *
+
+ 初步使用步驟
+ 閱讀 user manual , 開機登入,當一般 linux 使用
+ 在 M1+ 用內核提供的方式點燈
+ 安裝設定BPI-WiringPi2-Python
+ M1+ 4G pin IO 義
+
+ *pin detail definition by code
+ *在內核點燈中 GPIO22, 在40 pin 中的 PIN 15 Match
+ -------------------------- 計畫中 -------------------------------
+ run BPI-WiringPi2-Python/test.py
+ *需確定 test.py 中, 這個是否能點燈,以驗證 WiringPi2 工作正常
+ *wiringpi.wiringPiSetupGpio()
+ *wiringpi.pinMode(22,1)
+ *wiringpi.digitalWrite(22,0)
+
+ run gpio readall
+
+ 驗證 SPI
+ *serial = wiringpi2.serialOpen('/dev/ttyS2',115200) # Requires device/baud and returns an ID
+ *wiringpi2.serialPuts(serial,"hello")
+ *wiringpi2.serialClose(serial) # Pass in ID
+ 驗證 I2C
+ *I2C RPI tool
+ *Try similar code with Grove - LCD RGB Backlight
+ *import wiringpi2
+ *i2c = wiringpi2.I2C()
+ *dev = i2c.setup(0x20) ( not sure about what to pass into the setup function, but presumably a device address? )
+ *i2c.read(dev)
+
+ Study 有趣的周邊與應用
+
+
+ *
+
+
+ *
2015-08-25 01:48 (unknown) r2
顯示 diff
(3 行未修改)
2015-08-25 01:48 wuulong sheu r1
顯示 diff
如何成為Open Hardware的 Maker( 香蕉派篇 )- 新手入門篇
+
+ 建議
2015-08-25 01:48 (unknown) r0
顯示 diff
-
+ 如何成為Open Hardware的 Maker( 香蕉派篇 )- 新手入門篇