2012-9-11 16:34:57 [显示全部楼层]
4105浏览
查看: 4105|回复: 3

[已解决] 求助MB7062超声波模块串口输出问题

[复制链接]
本帖最后由 zcbc 于 2012-9-11 16:38 编辑

MB7062超声波模块,
接+5V电源,和GND,
TX经SP3223驱动后接到计算机串口。
串口参数为9600,8,N,1
可是,收到的是乱码。
但是模拟量AN脚输出是对的。
请教各位大侠,这个问题是什么回事啊?

zcbc  学徒
 楼主|

发表于 2012-9-11 18:20:19

原来要反相。
回复

使用道具 举报

zcbc  学徒
 楼主|

发表于 2012-9-11 18:20:28

When Pin 1 is open or held high, the Pin 5 output delivers
asynchronous serial with an RS232 format, except voltages are 0-Vcc.
The output is an ASCII capital “R”, followed by three ASCII character
digits representing the range in centimeters up to a maximum of 765,
followed by a carriage return (ASCII 13). The baud rate is 9600, 8 bits,
no parity, with one stop bit. Although the voltage of 0-Vcc is outside the
RS232 standard, most RS232 devices have sufficient margin to read 0-
Vcc serial data. If standard voltage level RS232 is desired, invert, and
connect an RS232 converter such as a MAX232.
When Pin 1 is held low, the Pin 5 output sends a single
回复

使用道具 举报

Ricky  NPC

发表于 2012-9-11 21:27:32

问题解决了吗?
回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

为本项目制作心愿单
购买心愿单
心愿单 编辑
[[wsData.name]]

硬件清单

  • [[d.name]]
btnicon
我也要做!
点击进入购买页面
关于楼主
上海智位机器人股份有限公司 沪ICP备09038501号-4

© 2013-2022 Comsenz Inc. Powered by Discuz! X3.4 Licensed

mail