<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Interfacing nRF52840 with ADXL335 Accelerometer.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44718/interfacing-nrf52840-with-adxl335-accelerometer</link><description>Sir, 
 I have one nRF52840 DK and ADXL335 accelerometer. I need to get the 3-axis values, Xout, Yout &amp;amp; Zout, from the accelerometer and send through BLE to my nRF mobile app. 
 Which program and SDK I want to use for this? 
 Please reply ASAP.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Mar 2019 11:34:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44718/interfacing-nrf52840-with-adxl335-accelerometer" /><item><title>RE: Interfacing nRF52840 with ADXL335 Accelerometer.</title><link>https://devzone.nordicsemi.com/thread/175897?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 11:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:657be00c-dcad-4854-9158-1fac75ad616a</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Note also the &amp;#39;Related&amp;#39; topics which the Forum helpfully finds for you:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1552476826054v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing nRF52840 with ADXL335 Accelerometer.</title><link>https://devzone.nordicsemi.com/thread/175896?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 11:32:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05d86a54-3963-4a32-b552-15913d1273f2</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Have you looked at all?&lt;/p&gt;
&lt;p&gt;See:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44588/nrf52-as-twi-slave/174992#174992"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/44588/nrf52-as-twi-slave/174992#174992&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing nRF52840 with ADXL335 Accelerometer.</title><link>https://devzone.nordicsemi.com/thread/175895?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 11:27:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fef51a9-552b-40d1-b874-80c2b556e5cd</guid><dc:creator>Abhimanyu K K</dc:creator><description>&lt;p&gt;How to configure ADC?&lt;/p&gt;
&lt;p&gt;Is there any example programs which read analogue values and print on uart or ble?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing nRF52840 with ADXL335 Accelerometer.</title><link>https://devzone.nordicsemi.com/thread/175845?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 08:51:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b459328d-8c85-4851-bee4-8d39398c0812</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;&lt;span&gt;nrf_gpio_pin_read() is just a &lt;em&gt;&lt;strong&gt;digital&lt;/strong&gt; &lt;/em&gt;read:&amp;nbsp; ie, it just tells you whether the pin is at a logic low or high level - &amp;#39;0&amp;#39; or &amp;#39;1&amp;#39;; true or false ...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you want to read an &lt;em&gt;analogue&lt;/em&gt; value, you need to use an&amp;nbsp;Analogue-to-Digital Converter (ADC).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing nRF52840 with ADXL335 Accelerometer.</title><link>https://devzone.nordicsemi.com/thread/175810?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 04:40:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9b586ab-d30d-4776-bd80-82104c7edfc1</guid><dc:creator>Abhimanyu K K</dc:creator><description>&lt;p&gt;Sir can we read the sensor values directly using nrf_gpio_pin_read()?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Or whether I need to configure ADC?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing nRF52840 with ADXL335 Accelerometer.</title><link>https://devzone.nordicsemi.com/thread/175683?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 13:36:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4afdb2a-24e3-4112-b955-e5a04643c430</guid><dc:creator>awneil</dc:creator><description>[quote userid="76683" url="~/f/nordic-q-a/44718/interfacing-nrf52840-with-adxl335-accelerometer"]Which program and SDK I want to use for this?[/quote]
&lt;p&gt;If you go to the &lt;strong&gt;Product Page&lt;/strong&gt; for the nRF52840 it has links to the appropriate SDK, SoftDevices, etc ...&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52840"&gt;https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52840&lt;/a&gt;&lt;/p&gt;
[quote userid="73165" url="~/f/nordic-q-a/44718/interfacing-nrf52840-with-adxl335-accelerometer/175665"]You can read the output from the accelerometer by using GPIO as input[/quote]
&lt;p&gt;Specifically, you will need to use the AIN analogue inputs, and the Analogue-to-Digital converter.&lt;/p&gt;
&lt;p&gt;See the&amp;nbsp;&lt;span&gt;nRF52840&amp;nbsp; &lt;strong&gt;Product Specification&lt;/strong&gt; for details, and look at the Examples in the SDK&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing nRF52840 with ADXL335 Accelerometer.</title><link>https://devzone.nordicsemi.com/thread/175665?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 13:00:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d2388c-8028-4fd9-9c44-dceb1c05c539</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The BLE app uart example would be a good starting point. You can read the output from the accelerometer by using GPIO as input. The values can then be sent using &lt;span&gt; &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/group__ble__nus"&gt;ble_nus_data_send()&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>