Robofun 機器人論壇

 找回密碼
 申請會員
搜索
熱搜: 活動 交友 discuz
查看: 5603|回復: 1
打印 上一主題 下一主題

關於SRF02使用方式

[複製鏈接]
跳轉到指定樓層
1#
發表於 2007-5-29 14:23:18 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
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,有許多不清楚的地方還請多多包涵!
2#
發表於 2007-5-30 09:10:11 | 只看該作者
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
您需要登錄後才可以回帖 登錄 | 申請會員

本版積分規則

小黑屋|手機版|Archiver|機器人論壇 from 2005.07

GMT+8, 2024-12-5 03:13 , Processed in 0.378728 second(s), 7 queries , Apc On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表