我可以将 8 位或 10 位数字加速度计与 16 位微控制器连接吗?
我必须设计一个计步器(理论上,只是为了建议组件),因此设备需要使用加速度计来检测任何运动。然后它将连接到微控制器,以便在 LCD 面板上显示值。
提前感谢
I have to design a pedometer( theoretically, just to suggest the components) so the device needs to detect any movements using an accelerometer. it will be then connected to a microcontroller in order to display the values on a LCD panel.
Thanx in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的。具体连接方式取决于加速度计和微控制器。最简单的方法可能是使用 I2C 串行总线,因此您可以寻找具有该接口的设备。
然而,有多种可能的接口,包括串行和并行。甚至还有带有自己的 ADC 的微控制器——在这种情况下,您可以使用模拟加速度计芯片。
Yes. Exactly how you connect it depends on the accelerometer and the microcontroller. The simplest way might be with an I2C serial bus, so you can look for devices with that interface.
However, there are a wide variety of possible interfaces, both serial and parallel. There are even microcontrollers with their own ADC's -- you could use analog accelerometer chips in that case.
绝对地。只需将不使用的输入拉至地(通过电阻器)即可,除非设备的输入端已具有下拉电阻器。
Absolutely. Just pull the inputs you don't use to ground (via resistor), unless the device has pull-down resistors on the inputs already.