逢甲大學 自動控制工程學系 林宸生 教授
所開給研究所之練習利用簡易BCB程式與認識基本量測儀器寫出小專題
該實驗為本作者所簡易分享出來
詳細課程內容與範例請參考
http://140.134.32.129/edu/teach/index.html
處理器
|
ARM9
300MHz
|
記憶體
|
16MB快閃記憶體
64MB
RAM
|
作業系統
|
Linux
Base
|
顯示器
|
178*128像素
|
輸出埠
|
4個輸出埠
|
輸入埠
|
4個輸入埠
支援類比通訊
數位通訊460.8Kbit/秒
|
USB傳輸速度
|
480Mbit/
|
USB介面
|
可使用USB線串聯最多四台EV3
可外接Wi-Fi網路卡就能無線上網
|
SD卡插槽
|
支援最高32GB micro SD記憶卡
|
支援智慧型手持裝置
|
iOS/Android/Windows
|
使用者介面
|
6個按鈕
|
程式碼大小(以循跡程式為例)
|
0.950KB
|
感測器通訊能力
|
1,000筆資料/秒
|
資料擷取速度
|
最高可到1,000筆資料/秒
|
藍牙通訊
|
最多可與7個被控端連接
|
測試程式的大小與運作速度
|
2KB
60秒內約可執行10,000次迴圈
|
電力供應
|
可充電電池或6個AA電池
|
角度編碼器回饋
|
正負1度
|
轉速
|
160至170 RPM
|
無負載時扭矩
|
0.21 N*m
|
全負載時扭矩
|
0.42
N*m
|
重量
|
76公克
|
自動識別
|
支援
|
量測距離範圍
|
3~250公分
|
感應角度
|
20度
|
量測距離誤差值
|
正負1公分
|
前方照明
|
燈光:設定超音波
閃爍:接收訊號
|
讀取外界的超音波訊號
|
可
|
量測模組
|
三種量測模式:距離(公分與英吋)、範圍內是否有物體
|
自動識別
|
支援
|
量測
|
只有紅色的反射光,可量測周圍光的亮度值和顏色
|
偵測結果
|
無感測到顏色、白、黑、藍、綠、黃、紅、棕,共八種結果
|
取樣速率
|
每秒1,000次(1kHz)
|
距離
|
15~50mm
|
自動辨別
|
支援
|
最大消耗電力
|
42mA at
4.7V
|
像素
|
88*144pixel
|
取樣速率
|
30fps
|
調整焦距
|
可
|
追蹤物件
|
最多可八個物件(須由使用者定義八個不同的顏色)
|
Commands
|
Action
|
|
ASCII
|
Hex
|
|
A
|
0x41
|
Sort tracked objects by size
|
B
|
0x42
|
Select Object tracking mode
|
C
|
0x43
|
Write to image sensor Registers
Use CAUTION when using command C
since this can stop NXTCam from working properly. In case this happens,
please power off your NXTCam and power it on again.
|
D
|
0x44
|
Disable Tracking
|
E
|
0x45
|
Enable Tracking
|
G
|
0x47
|
Get the Color map from NXTCam Engine
|
H
|
0x48
|
Read data from the image sensor Registers
|
I
|
0x49
|
Illumination on (Future)
|
L
|
0x4C
|
Select Line tracking mode
|
N
|
0x4E
|
Set ADPA mode ON (setting stored in NVRAM)
|
O
|
0x4F
|
Set ADPA mode Off (default) (setting stored
in
NVRAM)
|
P
|
0x50
|
Ping NXTCam Engine
|
R
|
0x52
|
Reset NXTCam Engine
|
S
|
0x53
|
Send the color map to NXTCam Engine
|
T
|
0x54
|
Illumination Off
|
U
|
0x55
|
Sort tracked objects by color
|
V
|
0x56
|
Get NXTCam Engine firmware version
No, Read resulting string at 0x42 (12 bytes).
|
X
|
0x58
|
Do not Sort tracked objects
|
J
|
0x4A
|
Lock tracking buffer
Tracking is going on
continuously, and while you read buffer may be updated by the tracking
engine. You can issue this command to
Lock the buffer updates. After issuing this command allow 25 milliseconds for
any updates in progress to finish. Then read the tracking information.
|
K
|
0x4B
|
Unlock tracking buffer.
If you had locked the buffer before reading, ensure to unlock it after
you are done reading.
|
Register
|
Read
|
Write
|
Comments
|
0x00-0x07
|
Software version – (Vn.nn)
|
-
|
|
0x08-0x0f
|
Vendor Id – mndsnsrs
|
-
|
|
0x10-0x17
|
Device ID – NXTCam
|
-
|
|
0x41
|
-
|
Command
|
This register is command register. A
command written here will be executed.
|
0x42
|
Number of objects detected
|
-
|
Shows how many objects are being tracked.
Zero indicates that there are no objects being tracked.
|
0x43
|
1st object color
|
-
|
This is the first object color as per the
sorting method selected.
|
0x441
|
1st object - X upper left
|
Upper left X coordinate of first object
|
|
0x45
|
1st object - Y upper left
|
Upper left Y coordinate of first object
|
|
0x46
|
1st object - X lower right
|
Lower right X coordinate of first object
|
|
0x472
|
1st object - Y lower right
|
Lower right Y coordinate of first object
|
|
0x48
|
2nd object color
|
||
0x49-0x4C
|
2nd object co-ordinates
|
||
0x4D
|
3rd object color
|
||
0x4E-0x51
|
3rd object co-ordinates
|
||
0x52
|
4th object color
|
||
0x53-0x56
|
4th object co-ordinates
|
||
0x57
|
5th object color
|
||
0x58-0x5B
|
5th object co-ordinates
|
||
0x5C
|
6th object color
|
||
0x5D-0x60
|
6th object co-ordinates
|