Beaglebone Black GPIO寄存器不更改价值变化电压

发布于 2025-01-24 02:25:40 字数 293 浏览 3 评论 0原文

我正在尝试打开和关闭Beaglebone上的GPIO标头,但是我无法将物理引脚从高到低点切换到低位,反之亦然。 IVE在我的应用程序中写了一些代码来执行此操作,但是即使我更改命令行中的值,我也有相同的问题。

首先,我要使用的所有引脚都已正确导出。对于此示例,让我们专注于GPIO 117。我能够更改为/sys/class/gpio/gpio117,当我运行猫值时,它符合我对程序的期望。当我运行回声0>值将变为零,当我运行回声1>重视它的1。一切都是预期的。当我去测量该引脚上的电压时,它总是很高,独立于值。

我在这里错过了什么吗?

I'm trying to turn on and off the GPIO headers on the beaglebone, but i'm unable to get the physical pins to switch from high to low and vice versa. Ive written some code within my application to do this but even when I change the values in the command line I have the same issues.

Firstly, all of the pins I want to use have been correctly exported. For this example lets focus on GPIO 117. I'm able to change into /sys/class/gpio/gpio117 and when I run cat value, its in line with what I expected from my program. When I run echo 0 > value it changes to a zero and when I run echo 1 > value its a 1. Everything as expected. When I go to measure the voltage on that pin, it is always high, independent of the value.

Am I missing something here?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

街道布景 2025-01-31 02:25:40

GPIO 117是“ MCSAP0_AHCLKX” PIN上的GPIO3_21。因此,它可能是由某些音频设备(可能是HDMI)使用的。您可以通过添加disable_uboot_overlay_audio = 1将其禁用,请参见 https://elinux.org/beagleboard:beagleboneblack_debian#u-boot-boot_disable_on-board_devices

GPIO 117 is gpio3_21 on the "MCSAP0_AHCLKX" pin. So it is probably used by some audio device, probably HDMI. You can disable that by adding disable_uboot_overlay_audio=1 to your /boot/uEnv.txt file, see https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Disable_on-board_devices

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文