Robofun 機器人論壇

標題: 關於SRF02使用方式 [打印本頁]

作者: daze    時間: 2007-5-29 14:23
標題: 關於SRF02使用方式
1.硬體方面,能直接將RS232的Rx Tx(輸出為8V~9V)直接接sensor的Tx Rx還  是說需要另外降壓?

2.軟體的部分是直接下command就會work回傳值了嗎?
  (比如說RS232傳84以後,sensor就會回傳值?)


3.command的問題,從spec上來看不清楚command 80~82與 83~85的差異
  還有real ranging 與 Fake Ranging上的差異.

不好意思,因為是第一次解sensor,有許多不清楚的地方還請多多包涵!
作者: imas    時間: 2007-5-30 09:10
1.不行,一般元件所使用的 UART 介面都是 TTL 的訊號準位

2.對

3.
800x50Real Ranging Mode - Result in inches
810x51Real Ranging Mode - Result in centimeters
820x52Real Ranging Mode - Result in micro-seconds


我自己看是覺得差別蠻明顯的,這三個命令將造成不同的回傳數值!

860x56Fake Ranging Mode - Result in inches
870x57Fake Ranging Mode - Result in centimeters
880x58Fake Ranging Mode - Result in micro-seconds


至於80~82與 83~85的差異,原文說明的還算詳細,就請您參考一下原文!

these six commands (80 - 85) are called "Real" because they perform a complete ranging.There is another set of six commands (86 - 91) called "Fake". They are the same as the "Real" commands except that they do not send the 8-cycle burst out. These are used where the burst has been transmitted by another sonar. It is up to you to synchronize the commands to the two sonar's. There is a command (92) to transmit a burst without doing the ranging.


資料參考自廠商技術說明
http://www.robot-electronics.co.uk/htm/srf02techSer.htm




歡迎光臨 Robofun 機器人論壇 (https://robofun.net/forum/) Powered by Discuz! X3.2