我正在尝试从我的arduino发送一个字符串到串行监视器。我使用的是带有arduino UNO的sparkfun bluesmirf芯片。
我的代码非常简单:
void setup() {
Serial.begin(115200); // begin serial communication at 115200 baud rate
}
void loop() {
Serial.println("hello world"); // write hello world
delay(1000); // delay one second
}当我打开监视器时,我收到胡言乱语。当我用USB线连接到arduino时,一切正常。
有谁能给我指个方向吗?
发布于 2012-09-01 01:55:01
根据您的bluesmirf版本,默认波特率为9600或115k。下面是如何为不同版本设置波特率的another project that mentions。
或者,通过将arudiono代码和串行监视器设置为9600进行测试。
https://stackoverflow.com/questions/12151284
复制相似问题