如何用Arduino读取陀螺仪数据?
我有一个陀螺仪,http://www.xheli.com/wag0diadpiin.html 。
它有 6 个引脚 3,3。我担心我可能会损坏设备,所以我想在这里询问。
我应该如何将它连接到Arduino?我应该使用什么代码?
I got one of these gyros, http://www.xheli.com/wag0diadpiin.html.
It has 6 pins 3,3. I'm afraid I might harm the device, so I wanted to ask here.
How should I connect it to Arduino? And what code should I use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我从我的旧华克拉直升机上抢救了其中一个,并想做同样的事情。如果没有人在这里发布帮助,我会尝试解决这个问题并发布另一个回复。
就其价值而言,3 针母头连接器可连接至 Walkera 有刷速度控制器(进而连接至 6-15 V 电池电源)。其他三个引脚连接到具有无线电控制和伺服输出的主电路。该连接器必须有引脚进行采样。我正在猜测,但我猜想将其连接到 Arduino 上的
Int0
或Int1
可能效果最好,而不是尝试轮询它。我猜想两个轴值可能来自芯片,但问题是知道数据如何在单个输出引脚上编码/复用。
如果我发现更多信息,我会发布更新。祝你好运。
I have salvaged one of these off my old Walkera helicopter and want to do the same thing. If no one has posted help here, I will try to sort this out and post another reply.
For what it's worth, the female 3 pin connector connects to a Walkera brushed speed controller (which in turn connects to 6-15 V battery power). The other three pins connected to the main circuit that had radio control and servo outputs. This connector must have the pin to sample. I am speculating, but I would guess that it would probably work best to connect it to
Int0
orInt1
on the Arduino, instead of trying to poll it.I would guess that two axis values might come from the chip, but the problem is knowing how the data encoded/muxed on the single output pin.
If I find out more, I will post an update. Good luck.