为什么我的arduino不能使用串口?

问题描述:

我正在尝试使用wii nunchuk作为鼠标与arduino。 project在这里。为什么我的arduino不能使用串口?

以下是错误消息:photo

如果你想知道我为什么不网页上张贴这一点,那是因为它是几年老没有人去在那里了。

+1

请不要添加图片,而是文字初始化波特率。 – Jonas

+1

尝试以管理员身份运行shell – Laurijssen

在你的Python脚本,你忘了定义的串行对象“端口”

# The port to which your Arduino board is connected 
port = 'arduino_port' 

时尝试此相反,

# The port to which your Arduino board is connected 
port = serial.Serial('/dev/ttyACM0',9600) 
#or whatever your port is called