【问题标题】:Setting up a Raspberry Pi with a Gertboard to use the Arduino Pins使用 Gertboard 设置 Raspberry Pi 以使用 Arduino 引脚
【发布时间】:2020-12-01 16:46:00
【问题描述】:

这一次不是特别的问题。它更多的是问题的组合。我正在尝试使用 Gertboard 设置 Raspberry Pi 3B+,因此我使用此网站 (https://projects.drogon.net/raspberry-pi/gertboard/arduino-ide-installation-isp/) 作为指南。 (找不到我可以使用的更新信息)使用 rasbian 设置 Raspberry 没有问题。接下来的问题是安装avrdude。 该行: sudo dpkg -i avrdude_5.10-4_armhf.deb

产生以下错误:

(正在读取数据库...当前安装的 103938 个文件和目录。) 准备解压 avrdude_5.10-4_armhf.deb ... 在 (1:5.10-4) 上解压 avrdude (1:5.10-4) ... dpkg:依赖问题阻止了 avrdude 的配置: avrdude 依赖于 libncurses5 (>= 5.5-5~);然而: 软件包 libncurses5 未安装。

dpkg: 错误处理包 avrdude (--install): 依赖性问题 - 未配置 处理 man-db (2.8.5-2) 的触发器 ... 处理时遇到错误: 好听

要继续使用该指南,这很重要。

附加问题:完成上面的 guid 是否可以在 python 代码中使用 Gertboards Arduino 引脚,或者是否有必要为 Arduino 编写代码来写入/读取值并将它们返回给 python 脚本?

【问题讨论】:

标签: python arduino raspberry-pi


【解决方案1】:

我看到您解决了您的问题,您是否设法初始化 gertboard 并使用 arduino IDE 运行代码?

我们目前正在尝试使用 Raspberry Pi4B 进行此操作,但它不起作用。运行 avrsetup 时出现此错误:

avrsetup 

Initialising a new ATmega microcontroller for use with the Gertboard.

Make sure there is a new ATmega chip plugged in, and press
.. 1 for an ATmega328p or 2 for an ATmega168: 1
Initialising an ATmega328p ...
gpio/direction: No such file or directory

你有类似的问题吗?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-30
    • 2013-11-13
    • 1970-01-01
    相关资源
    最近更新 更多