Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带arduino uno的9轴运动护罩_Arduino - Fatal编程技术网

带arduino uno的9轴运动护罩

带arduino uno的9轴运动护罩,arduino,Arduino,我以前使用过Arduino Uno的旧9轴运动防护罩,效果很好,但最近购买了新版本的9轴运动防护罩,它只返回零,不改变角度。看起来中断和复位引脚不同。这是不是意味着我不能再在Arduino Uno上使用护盾了?我正在使用NineAxesMotion库()。如果不知道您正在使用的板卡版本的详细信息,我无法给您一个明确的答案 如果两个版本都作为Arduino护罩出售,则它们必须与Arduino硬件兼容 因此,如果您说两个版本之间的管脚都发生了变化,那么如果硬件正常,只需更改库代码中的管脚编号即可 /

我以前使用过Arduino Uno的旧9轴运动防护罩,效果很好,但最近购买了新版本的9轴运动防护罩,它只返回零,不改变角度。看起来中断和复位引脚不同。这是不是意味着我不能再在Arduino Uno上使用护盾了?我正在使用NineAxesMotion库()。

如果不知道您正在使用的板卡版本的详细信息,我无法给您一个明确的答案

如果两个版本都作为Arduino护罩出售,则它们必须与Arduino硬件兼容

因此,如果您说两个版本之间的管脚都发生了变化,那么如果硬件正常,只需更改库代码中的管脚编号即可

//GPIO pins used for controlling the Sensor
#define RESET_PIN       4       //GPIO to reset the BNO055 (RESET pin has to be HIGH for the BNO055 to operate)

#if defined(__AVR_ATmega32U4__) //Arduino Yun and Leonardo
#define INT_PIN         4       //GPIO to receive the Interrupt from the BNO055 for the Arduino Uno(Interrupt is visible on the INT LED on the Shield)
#elif defined(ARDUINO_ARCH_SAM)   //INT_PIN is the interrupt number not the interrupt pin
#define INT_PIN         2
#elif defined(ARDUINO_ARCH_SAMD)
#define INT_PIN         7
#else
#define INT_PIN         0
#endif

谢谢你的提问!我不知道答案,但我猜你不能同时使用它们。如果您能提供uno和盾牌的型号/类型,您可能更有可能得到其他答案。如果您详细说明了试图找到答案所采取的步骤,您也更有可能得到答案。请提供零件号、数据表、接线图、表格或说明、产生问题的最简单形式的代码以及准确的示例输出。这些是我们需要有机会帮助你的事情。