求助MB7062超声波模块串口输出问题
本帖最后由 zcbc 于 2012-9-11 16:38 编辑MB7062超声波模块,
接+5V电源,和GND,
TX经SP3223驱动后接到计算机串口。
串口参数为9600,8,N,1
可是,收到的是乱码。
但是模拟量AN脚输出是对的。
请教各位大侠,这个问题是什么回事啊? 原来要反相。
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 问题解决了吗?
页:
[1]