Beaglebone Black GPIO寄存器不更改价值变化电压
我正在尝试打开和关闭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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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_devicesGPIO 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