Raspberry Pi 到 Arduino 通信 [英] Raspberry Pi to Arduino Communication

查看:35
本文介绍了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有足够的空闲pins,你可以考虑并行连接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天全站免登陆