Raspberry Pi与Arduino的通信 [英] Raspberry Pi to Arduino Communication

查看:91
本文介绍了Raspberry Pi与Arduino的通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Raspberry pi 3上使用opencv算法.我需要将数据从raspberry pi输出到Arduino.目前,我正在使用串行接口,只需使用USB连接器将arduino插入树莓派即可.但是我的应用程序需要更快的速度.我想到了探索i2c交流.这是针对机器人应用程序,对于该机器人应用程序,输入传感器值需要快速才能使机器人快速响应.

I am using an opencv algorithm on my Raspberry pi 3. I need to output the data from the raspberry pi to my Arduino. Presently I am using serial, where I simply plug in the arduino to the raspberry pi using the USB connector. But my application requires a faster speed. I thought of exploring i2c communication. It is for a robotic application for which the input sensor values needs to be fast for the robot to respond quickly.

假设我需要将值推送到arduino板(以便它与机器人对话)的约束,什么是在arduino和rasp之间更快的数据流的最佳方法.

Assuming the constraint that I need to push the values to a arduino board (for it to talk to the robot), what can be the best method for a faster data-flow between arduino and rasp.

有人有建议或先前的实施方式可以帮助我吗?

Does anyone has suggestions or prior implementations that can help me?

谢谢.

推荐答案

如果arduino和raspberry pi中有足够的空闲引脚,则可以考虑并行连接raspberry pi和arduino. 在此处进行并行通信

If you have enough free pins in arduino and raspberry pi, you may consider connecting raspberry pi and arduino parallelly. parallel communication here

但是正如我所说,您应该有很多免费的gpio才能使用此方法

But as I said, you should have lots of free gpio to use this method

这篇关于Raspberry Pi与Arduino的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆