<?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>Part3.1 - Head Impact Detection [ADXL377]</title><link>/challenges-projects/design-challenges/sudden-impact/b/blog/posts/part3-1---head-impact-detection-adxl377</link><description>Title: Total Player MonitoringBy: Md. Kamrul HussainProject Category: Design ChallengeProject Name: Sudden Impact Wearables Design ChallengeBlog post: 08Intro:This is a short update on detecting head impact injury using ADXL377 3 axis accelerometer. </description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Part3.1 - Head Impact Detection [ADXL377]</title><link>https://community.element14.com/challenges-projects/design-challenges/sudden-impact/b/blog/posts/part3-1---head-impact-detection-adxl377</link><pubDate>Mon, 02 Nov 2015 23:39:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e9a391b5-cd8e-4d0b-b4fd-342c5eed47d6</guid><dc:creator>Former Member</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;If I Use your method: &lt;br /&gt;have raw values = (352,352,353)&lt;br /&gt;1)Now say, CalX = 0 , CalY = 0, CalZ = 0 and &lt;/p&gt;&lt;p&gt;2)1024 Values are &lt;span&gt; (352,352,353)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;3) Dividing by 1024 we get (0.350,0.349,0.351)&lt;br /&gt;4)&lt;span&gt;Now , CalX = 0.350 , CalY = 0.349, CalZ = 0.351 &lt;br /&gt;5)Now Next reading Substract Calx,CalY, CalZ from new averaged raw datas(i mean after dividing by 1024) &lt;br /&gt; 6)for each change of one LSB , we add or substract 0.75g , so for each 0.1 change in ADC datas in step 5, we add or substract 0.075. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;Is it correct? I have a doubt , If i get nest raw datas averaged as &lt;span&gt;(0.350,0.349,0.351) and after substracting CalX, calY, CalZ, we get (0,0,0)G, instead of (0,0,1) G.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;Should i manupulate the reading so as to get (0,0,1)G here? &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=20697&amp;AppID=108&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Part3.1 - Head Impact Detection [ADXL377]</title><link>https://community.element14.com/challenges-projects/design-challenges/sudden-impact/b/blog/posts/part3-1---head-impact-detection-adxl377</link><pubDate>Mon, 02 Nov 2015 18:58:03 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e9a391b5-cd8e-4d0b-b4fd-342c5eed47d6</guid><dc:creator>hlipka</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Regarding the calibration: I wrote it for the PSoC4 BLE, and used a ADXL375. So maybe its not really useful to paste my code. The logic I used was:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;set the calibration values to 0&lt;/li&gt;&lt;li&gt;read 1024 values for each axis and add them&lt;/li&gt;&lt;li&gt;divide each result by 1024 (shift-left 10 bits) to get the average&lt;/li&gt;&lt;li&gt;store the result in the calibration values&lt;/li&gt;&lt;li&gt;afterwards, when reading values, substract the calibration values from the result&lt;/li&gt;&lt;/ol&gt;&lt;img src="https://community.element14.com/aggbug?PostID=20697&amp;AppID=108&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Part3.1 - Head Impact Detection [ADXL377]</title><link>https://community.element14.com/challenges-projects/design-challenges/sudden-impact/b/blog/posts/part3-1---head-impact-detection-adxl377</link><pubDate>Mon, 02 Nov 2015 18:52:47 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e9a391b5-cd8e-4d0b-b4fd-342c5eed47d6</guid><dc:creator>hlipka</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;After doing some more math, I think you should use an external ADC with higher resolution. In your setup one LSB of the ADC result corresponds to 4.88mV. And the ADXL377 gives you 6.5mV/g, so that each single bit by which the output changes (and this easily in the noise here given that your 5V power rail is probably not that stable and clean) changes your result by 0.75g,.&lt;/p&gt;&lt;p&gt;Regarding the measured voltages - what is the supply voltage for the ADXL377? Its outputs are ratiometric, meaning that the zero-G output is always half of the supply voltage (+-0.5V according to the data sheet). If your reference is actually 5V, your result of 367 would mean 1.79V which is a little bit high.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=20697&amp;AppID=108&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Part3.1 - Head Impact Detection [ADXL377]</title><link>https://community.element14.com/challenges-projects/design-challenges/sudden-impact/b/blog/posts/part3-1---head-impact-detection-adxl377</link><pubDate>Mon, 02 Nov 2015 15:22:04 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e9a391b5-cd8e-4d0b-b4fd-342c5eed47d6</guid><dc:creator>Former Member</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hello, &lt;span&gt;&lt;br /&gt;I am using this ADXL377 to detect some high rotational motion. I used the following code&amp;nbsp; from Sparkfun &lt;br /&gt;&lt;/span&gt;&lt;a class="jive-link-external-small" href="https://github.com/sparkfun/ADXL377_Breakout/blob/master/firmware/ADXL377_example/ADXL377_example.ino" rel="nofollow ugc noopener" target="_blank" title="https://github.com/sparkfun/ADXL377_Breakout/blob/master/firmware/ADXL377_example/ADXL377_example.ino"&gt;https://github.com/sparkfun/ADXL377_Breakout/blob/master/firmware/ADXL377_example/ADXL377_example.ino&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;However my OUTPUT in the normal scenario (Sensor&amp;nbsp; resting on a table flat on surface) is as follows&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;X: 367&lt;/p&gt;&lt;p&gt;Y: 367&lt;/p&gt;&lt;p&gt;Z: 369&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;X: 8.74 g&lt;/p&gt;&lt;p&gt;Y: 8.74 g&lt;/p&gt;&lt;p&gt;Z: 9.33 g&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;X: 367&lt;/p&gt;&lt;p&gt;Y: 367&lt;/p&gt;&lt;p&gt;Z: 369&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;X: 8.74 g&lt;/p&gt;&lt;p&gt;Y: 8.74 g&lt;/p&gt;&lt;p&gt;Z: 9.33 g&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am using Arduino Mega and selected&amp;nbsp; boolean micro_is_5V = true;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; scaledX = mapf(rawX, 0, 675, -scale, scale); // 3.3/5 * 1023 =~ 675&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; scaledY = mapf(rawY, 0, 675, -scale, scale);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; scaledZ = mapf(rawZ, 0, 675, -scale, scale);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Can you please tell, What is going wrong here? How can i calibrate it to get&amp;nbsp; nearly (0.0.1)G values in standstill condition?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=20697&amp;AppID=108&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Part3.1 - Head Impact Detection [ADXL377]</title><link>https://community.element14.com/challenges-projects/design-challenges/sudden-impact/b/blog/posts/part3-1---head-impact-detection-adxl377</link><pubDate>Tue, 05 May 2015 19:36:13 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e9a391b5-cd8e-4d0b-b4fd-342c5eed47d6</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Good post.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I look forward to seeing your sensor in action.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;DAB&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=20697&amp;AppID=108&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>