2013-4-4 更新爲雙語版。 見笑
Red text for english speaker
2013-4-7:更新一些細節,見8樓
2013-4-7: some update for detail, goto floor 8
2013-5-24更新:升級了下下車車身,馬力更增強勁,並且省去了L298N驅動板,改成使用原小車自帶的電路板,直接將驅動信號線焊接其Rx-2芯片的針腳。外形看起來不那麼骨感了,溫溼度傳感器和超聲波測距也啓用了。圖片見文末。
2013-5-24:upgrade the body. See Pics at the end.
第一次的架構
1st arch
第二次的架構,隔斷用的泡沫,增大摩擦力,防止移動電源或cubie滑動,去掉了透明膠,只用橡皮筋
2nd arch, add foam, increasing friction, to prevent mobile power or cubieboard sliding; remove the tape; only with a rubber band
Web 控制端(tornado+motion), 滑動條控制攝像頭方向
下面的箭頭控制小車運動
Web control panel(tornado+motion), slider to move video
The following arrows are used to control the car's movement
2013-4-6更新:增長了溫溼度傳感器,超聲波測距
2013-4-6 update: add SR04 & DTH11
視頻:http://v.youku.com/v_show/id_XNTM2NjU2NDY0.htmlphp
功能簡介:
Features:
cubieboard做爲上位機,職責:
As a host computer,the responsibilities of cubieboard:
經過串口和arduino通訊,usb攝像頭視頻捕捉,wifi鏈接到局域網,web環境用於人機交互;
後期我再加上圖像識別,再加上一個mic,再實現簡單的語音識別,再加兩個小喇叭,實現TTS。而後運行數據庫,保存收集到的歷史數據,以及從數據庫提供一些網絡抓取到的信息,好比播報天氣預報、講笑話等。
Communicate with arduino via a TTL serial line; capture video via USB cam; connect to a wireless lan via USB wifi card; create a website for Human-Computer Interaction;
In the future, I add the following features: image recognition, simple speech recognition, TTS, save sensor data to database, crawl infomation from internet and save to database (eg. weather forecasts, jokes... ) then TTS that.
arduino做爲下位機,職責:
經過l298n電機驅動板控制小車運動;控制兩個舵機轉動攝像頭;經過溫溼度傳感器回傳溫溼度數據給cubie;收集各類傳感縮小編輯框器的數據……
As a lower machine, the responsibilities of arduino:
dirve the motor on the car via L289N board; Control 2 servos to move the cam; Collecting data from sensor (eg.temperature and humidity from DTH11) for cubieboard.
組裝配件以及成本:
Accessories and cost:html
cubieboard ¥360 +
web
arduino nano ¥45 +
數據庫
nano擴展板- Expansion board for arduino nano ¥26 + (這個便宜貨不建議購買,供電有問題,只能勉強使用,各位買個好一點的吧)
網絡
雲臺(和兩個舵機)- Nylon head & 2 servos ¥40 +
架構
攝像頭(隨便買的,而後拆開) - usb cam ¥20 +
less
1W毫安移動電源 - Mobile Power 10Ah ¥100 +
ide
小車底盤(玩具遙控車裏拆出來的)- Car chassis( hacked out from a toy car ) ¥50 +
tornado
L298N電機驅動版 - L289N motor driver board ¥18 +
測試
杜邦線等雜物 - DuPont line and so on ¥10 +
無線網卡 - USB WIFI card ¥30+
複製代碼
加上各類運費,一共約¥750+,主要是cubieboard和 移動電源 比較貴,還有就是小車底盤。
另外還買了一些傳感器(好比超聲波測距,溫溼度,光環境,人體熱感應),還沒接上去,就不算在內了
Include freight, costs about ¥ 750.
In addtion,I bought some of the sensors(such as SR04, DTH11, Light Sensor...),haven't connect yet.
關於電源:我買1W毫安雙輸出移動電源的目的就是想小車持續運行久一點,只用一套供電系統供電,目前測試在小車(電機)徹底不運動的狀況下,能夠支撐24小時。但願能把cubie在空閒時的功耗降到更低,能像ipad同樣待機N天的話,就完美了。之後更深刻的發展就是(目前只還在設想):把移動電源內部的電量檢測引出來經過arduino收集,當檢測到電量不足時,它本身開去充電(在家裏的固定位置,採用mac book那樣的磁性接頭,只要位置基本準確,就能連上),充滿以後再本身開走。
(目前的供電方案,5v 1A給cubieboard,cubieboard只帶usb攝像頭和wifi;5V 2.1A給擴展板供電,擴展板帶Arduino,舵機,電機)
about the power:The purpose of my purchasing 10Ah power is that I hope the system last longer with only one power suplying.But less than ideal. I want a lower-power solution on cubieboard,at least when it is idle.
(now the power provide 5V 1A to cubieboard(with cam and wifi), 5V 2.1A to extension board(with arduino & 2 servo & l289n & 2 motor) )
目前存在的問題:移動電源過重,並且輸出的是5v電壓,裝在小車上面帶小車電機很吃力,若是額外再加7v或12v電池給電機獨立供電的話,小車負重就更重了. 還有,我買這個arduino nano擴展板沒有獨立的對外供電,而是和arduino共用的,電機要是用電量過大,可能致使arduino供電不足而重啓。
issue: the mobile power is too heavy for my motors which is feed by 5V 2A. Since the rated voltage of my motor is more than 6V. But I don't want to add separate power for motor. so the car moved so slowly. other problem is , the nano extension board did not provide separate power-pin for servo or motor. It may cause a rebooting of arduino when excessive current is going.
2013-4-7:更新一些細節,見8樓
2013-4-7: some update for detail, goto floor 8
2013-5-24更新附圖:
2013-5-24 update pic:
更新一些細節:
硬件部分:
小車+驅動板
arduino+擴展板+雲臺舵機攝像頭
移動電源+Cubieboard+usb無線網卡 (cubie和arduino經過uart進行鍼腳鏈接,串口通訊)
原文做者:WindLand
原文連接:http://forum.cubietech.com/forum.php?mod=viewthread&tid=219