<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>setting values for accelerometer</title><link>/products/raspberry-pi/b/blog/posts/setting-values-for-accelerometer</link><description>Can anyone tell me how to set the values of a GY-61 ADXL335 accelerometer using a Raspberry Pi 2B? I am using it for a surveillance project to detect an accident and I need the values to be constant when the accelerometer is not moving. Please help. </description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: setting values for accelerometer</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/setting-values-for-accelerometer</link><pubDate>Sat, 16 Apr 2016 10:58:18 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:628b91d5-31e8-4802-86dd-bef63b20d817</guid><dc:creator>michaelkellett</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;First off, this is a question, not&amp;nbsp; a blog so you should have posted it in a suitable group in the Discussions section.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Never mind, you can do that next time.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The accelerometer you have chosen doesn&amp;#39;t have any internal registers you can set so you&amp;#39;ll have to do all the compensation/calibration in your RPi app.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;How are you getting the analogue data from the chip into your PI ?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Can you post some sample data from the setup, then turn it upside down and get some more data so you can see if gravity is affecting the accelerometer as it should.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;MK&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=1355&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>