完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,我买了LIS3DH开发套件。
我想将它用作传感器,当有人移动我的电路板或倾斜它时,它将用中断唤醒我的MCU。 我有一些约束: 我现在的蝙蝠需要低消耗电流。 我不能假设董事会的初始条件是什么。 我想控制灵敏度。 我尝试了很多开发套件的选项,但所有这些都没有给我带来的情况。 你能帮我理解LIS3DH是否是这项任务的正确选择并提出解决方案? 谢谢! 以上来自于谷歌翻译 以下为原文 Hi ALL, I bought the LIS3DH development kit. I want to use it as a sensor that will wake my MCU with interrupt when someone moved my board or tilt it. I have some constrains: 1. I need low consumption current with my current bat. 2.I can't assume what is the initial condition that the board will be. 3.I want to control the sensitivity. I tried a lot of option with the development kit but all of them didn't give me the desiered situation. will you help me understand if the LIS3DH is the right choice for this task and suggest solutions? thank you! |
|
相关推荐
10个回答
|
|
你好,
如果你想分别检测运动(加速度)和倾斜,其中一个 http://www.st.com/en/mems-and-sensors/inemo-inertial-modules.html?querycriteria=productId=SC1448 可能是更好的解决方案。例如,LSM6DS3的功耗为:组合正常模式下为0.9 mA,组合高性能模式下为1.25 mA,最高为1.6 kHz。 但是,也可以仅使用加速度计测量倾斜度,请参阅此内容 http://www.st.com/content/ccc/resource/technical/document/application_note/d2/d6/22/4f/b9/8f/45/59/DM00119046.pdf/files/DM00119046.pdf/jcr:内容/翻译/ en.DM00119046.pdf 。这完全取决于您的要求,然后是设备设置。可以为任何范围生成中断,但也有一个时间变量,该值高于加速/倾斜阈值多长时间。 (例如,如果你设置4克1秒,可能很难做到,除非你是在战斗机中。) 在你的情况下,我会建议一步一步的方法。将设备设置为连续测量模式并尝试移动设备,估算一些对您的应用有意义的加速度阈值。然后尝试为此阈值设置中断(具有适当的持续时间)。如果您遇到任何困难,请粘贴所有设置代码并描述具体行为,以便我们可以看到可能出现的问题。 大卫 以上来自于谷歌翻译 以下为原文 Hello, If you want to separately detect movement (acceleration) and tilt, one of http://www.st.com/en/mems-and-sensors/inemo-inertial-modules.html?querycriteria=productId=SC1448 might be a better solution.LSM6DS3, for example, features power consumption: 0.9 mA in combo normal mode and 1.25 mA in combo high-performance mode up to 1.6 kHz. However, it is also possible to measure tilt using just an accelerometer, see this http://www.st.com/content/ccc/resource/technical/document/application_note/d2/d6/22/4f/b9/8f/45/59/DM00119046.pdf/files/DM00119046.pdf/jcr:content/translations/en.DM00119046.pdf .It all depends on your requirements and then the device setup. The interrupt can be generated for any range, but there is also a time variable, for how long the value is above the acceleration / tilt threshold. (For example if you set 4 g for 1 second, it might be difficult to do, unless you are in a fighter jet.) In your situation, I would suggest a step by step approach. Set the device into continuous measurement mode and try moving the device, estimate some acceleration threshold that is meaningful for your application. Then try to set an interrupt (with proper time duration) for this threshold. If you have any difficulties, paste all your setup code and describe the specific behaviour, so we can see what might be wrong. David |
|
|
|
首先 - 谢谢。
我的目标是10-20uA的功耗......即使费率很低也是如此 LSM6DS3会好吗? 2.我做了实验,但问题是,如果初始条件......当初始g为0时,我将阈值设置为0.1g,持续20毫秒,并且运行良好..但现在我开始使用0.8g并且中断识别我通过0.1g ..所以我试图把0.9 ..但我希望它也适用于0.7 ..所以...它不能正常工作.. 以上来自于谷歌翻译 以下为原文 first of all - thank you. 1. I aimed to 10-20uA power consumption..even if the rate will be low.. does LSM6DS3 will be ok? 2. I did the experiment but the problem is that if the initial conditions.. when the initial g is 0 i set the threshold to 0.1g for 20msec and it worked well.. but now I started with 0.8g and the interrupt recognized i passed the 0.1g.. so i tried to put 0.9.. but i want that it work with 0.7 too.. so... it didn't work well.. |
|
|
|
我把系统放在轴上的加速度为x = 0,y = 1000,z = 0 mg
现在我在z轴上将阈值设置为〜+ -100mg,当我倾斜它时,它没问题。 下次,我把我的系统放在x = 0,y = 0,z = 1000mg。 现在我将阈值设置为100mg并且总是在......我应该将阈值设置为&gt; 1100,&lt; 900 ...但我不能这样做...... 以上来自于谷歌翻译 以下为原文 i put the system where the acceloration in the axis will be x=0, y=1000, z=0 mg now i set the threshold to ~+-100mg at z axis and when i tilt it, it was ok. next time, i put my system at x=0, y=0, z=1000mg. now i set the threshold to 100mg and it allways on... I should want to set the threshold to >1100, <900... but i can't do that... |
|
|
|
关于功耗:
这是摘录 http://www.st.com/content/ccc/resource/technical/document/datasheet/3c/ae/50/85/d6/b1/46/fe/CD00274221.pdf/files/CD00274221.pdf/jcr:内容/翻译/ en.CD00274221.pdf :和类似的 http://www.st.com/content/ccc/resource/technical/document/datasheet/a3/f5/4f/ae/8e/44/41/d7/DM00133076.pdf/files/DM00133076.pdf/jcr:内容/翻译/ en.DM00133076.pdf 与仅加速度计相比,陀螺仪似乎增加了大量的功耗。此外,需要尽可能低的Vdd。 我不确定我完全理解你描述的测试情况。 0.1 g触发中断,但不是0.8?你能分享用来设置控制寄存器的代码吗? 大卫 以上来自于谷歌翻译 以下为原文 Regarding the power consumption: Here is an extract from http://www.st.com/content/ccc/resource/technical/document/datasheet/3c/ae/50/85/d6/b1/46/fe/CD00274221.pdf/files/CD00274221.pdf/jcr:content/translations/en.CD00274221.pdf :And similar for the http://www.st.com/content/ccc/resource/technical/document/datasheet/a3/f5/4f/ae/8e/44/41/d7/DM00133076.pdf/files/DM00133076.pdf/jcr:content/translations/en.DM00133076.pdf It seems that the gyroscope adds significant amount of power consumption compared to just an accelerometer. Also, as low Vdd as possible is needed. I am not sure I fully understand the test situation you described. 0.1 g triggeres an interrupt, but 0.8 not? Could you share the code or values that you use to set the control registers? David |
|
|
|
哦,现在我明白了。重力触发你的中断,因为1克高于你的100毫克阈值。
我认为您需要在设备中启用高通滤波器,请参阅 http://www.st.com/content/ccc/resource/technical/document/application_note/77/ed/e7/e1/28/5a/45/d6/CD00290365.pdf/files/CD00290365.pdf/jcr:内容/翻译/ en.CD00290365.pdf ,4.3节高通滤波器。这将从读数中删除DC值.David 以上来自于谷歌翻译 以下为原文 Oh, now I understand. The gravity is triggering your interrupt, because 1 g is above your 100 mg threshold. I think you need to enable a high pass filter in your device, please see http://www.st.com/content/ccc/resource/technical/document/application_note/77/ed/e7/e1/28/5a/45/d6/CD00290365.pdf/files/CD00290365.pdf/jcr:content/translations/en.CD00290365.pdf , section 4.3 High-pass filter. This will remove the DC value from the readings.David |
|
|
|
哦谢谢!我会尝试..只是我不明白当我启用高通参考例如...它发生哪个轴?我们有3轴,只有1个参考..
以上来自于谷歌翻译 以下为原文 oh thanks! I will try it.. just i didn't understand when i enable high pass with reference for example..which axis it takes place? we have 3 axis and only 1 reference.. |
|
|
|
高通文件管理器是如何使其按预期工作的正确方法。
您可以启用高通滤波器,使用正常模式HPM1 = 1,HPM0 = 0,它将从信号中删除直流分量,而无需设置参考。 否则,参考对所有三个轴都有效。 你也可以考虑使用 http://www.st.com/content/st_com/en/products/mems-and-sensors/accelerometers/lis2dw12.html 这是超低功率。 以上来自于谷歌翻译 以下为原文 The high pass filer is the right way how to make it working as you expect. You can enable high pass filter, using normal mode HPM1 = 1, HPM0 = 0, it will remove the DC component from the signal, witnout need to set the reference. Otherwise the reference is valid for all three axis. You can also consider usign http://www.st.com/content/st_com/en/products/mems-and-sensors/accelerometers/lis2dw12.html which is super low power. |
|
|
|
我自己没有尝试过这种模式,但根据图表,似乎滤波器适用于ADC,它是所有输出寄存器的源。
D. 以上来自于谷歌翻译 以下为原文 I haven't tried that mode myself, but according to the diagram, it seems that the filter works for the ADC which is a source for all the output registers. D. |
|
|
|
谢谢!它按我想要的方式工作!开发套件的软件真棒!
我还有2个问题: 1.根据数据表,最大vdd为3.6v,但最大缺口为4.8。我希望使用没有电压调节器的锂离子棒(4.2v)。可以吗? LIS3DH能正常工作吗? 2.当我将INT1_CFG寄存器设置为中断时X,Y,Z将在事件上变为高电平或低电平(该寄存器为0x3f)时,器件始终产生中断..仅当我在“高”事件中使用中断时( 0x2a)它工作正常,所以 - 为什么?当它改变时我想要中断 - 低或高.. 谢谢! 以上来自于谷歌翻译 以下为原文 Thanks! it works as i wanted! the software to the development kit is awesome! I have 2 more questions please: 1. by the data sheet the maximum vdd is 3.6v but the maximum abselute is 4.8. i wish to use a li-ion bat (4.2v) without a voltage regulator. is it avaliable? the LIS3DH will work fine? 2.when I set the INT1_CFG register to put an interrupt when X,Y,Z will go high or low on events (0x3f at this register) the device allways make an interrupt.. only when I used interrupt at 'high' event (0x2a) it works fine, so - why is that? i want interrupt when it changes - low or high.. thanks! |
|
|
|
这是我的答案:
1.如果您通过Vdd(max)的较高电压为设备供电,设备将工作但参数无法保证。 长时间暴露在最大额定条件下也可能 影响设备可靠性。我建议你使用电压调节器。如果将条件设置为高OR 低,总是如此。 这就是为什么总是触发中断的原因。请注意,加速度的绝对值与所选阈值(对于阈值中断)一致,因此在您的情况下,只有“高”条件才能正常工作。 以上来自于谷歌翻译 以下为原文 Here are my answers: 1. If you will power the device by higher voltage that Vdd (max) the device will work but the parameters are not guaranteed. Exposure to maximum rating conditions for extended periods may also affect device reliability. I would recommend you to use voltage regulator.2. If you set the condition to high OR low, than it is always true. That is the reason why the interrupt is always triggered. Please be aware that the absolute value of the acceleration is compered with the selected threshold (for the threshold interrupt) so in your case only 'high' condition should work fine. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2635 浏览 1 评论
3208 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1783 浏览 1 评论
3610 浏览 6 评论
5988 浏览 21 评论
939浏览 4评论
1316浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
584浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1303浏览 3评论
1359浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-23 06:48 , Processed in 1.476331 second(s), Total 95, Slave 78 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号