<?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>Starting out</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52850/starting-out</link><description>Hi, I&amp;#39;ve being using an arduino to collect pressure measurements from the BOSCH BMP280 pressure sensor over I2C. I want to do the same using the nRF52840 and miniturize my device. I want to send the data over bluetooth to my PC. Where are the tutorials</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Oct 2019 13:14:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52850/starting-out" /><item><title>RE: Starting out</title><link>https://devzone.nordicsemi.com/thread/214854?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 13:14:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e28bc52-d76f-4a8e-bb28-de60b5f887e3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi John,&lt;/p&gt;
&lt;p&gt;ARDUINO_SCL_PIN and&amp;nbsp;ARDUINO_SDA_PIN are by default mapped to 27 and 26, respectively. So the connections are correct. The test you did with the scanner example also confirms this. The sensor would not have been detected otherwise.&amp;nbsp;That said, VCC must be the same as the nRF IO voltage +-0.3V to not exceed the maximum voltage ratings of the chip (&lt;a title="Absolute maximum ratings" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/abs_max_ratings.html?cp=3_0_0_8"&gt;Absolute maximum ratings&lt;/a&gt;). 5 volt&amp;nbsp;can actually&amp;nbsp;cause damage to the HW. You can use the output labeled with &amp;quot;VDD&amp;quot; on the DK as supply to the sensor. This will ensure the same voltage level on both sides. VDD ranges from ~1.8v - 3v depending on your power configuration.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The bosch sensor has its own register addresses and commands that the example needs to be adapted to. The datasheet should include more information about how you can interact with the sensor.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have access to a logic analyzer or scope? It&amp;#39;s very helpful to be able to inspect the TWI transfers on the bus lines to verify that data is transmitted and received according to the datasheet.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting out</title><link>https://devzone.nordicsemi.com/thread/214442?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2019 14:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95ab3bbc-16b1-4d74-8f75-784b0bf36c02</guid><dc:creator>JAC</dc:creator><description>&lt;div class="gmail_default"&gt;Hi Vidar and awneil,&lt;/div&gt;
&lt;div class="gmail_default"&gt;&lt;/div&gt;
&lt;div class="gmail_default"&gt;The example&lt;/div&gt;
&lt;div class="gmail_default"&gt;examples\peripheral\temperature\pca10056\blank\ses\temperature_pca 10056&lt;/div&gt;
&lt;div class="gmail_default"&gt;&amp;nbsp;works for me. It outputs temperature.&lt;/div&gt;
&lt;div class="gmail_default"&gt;&lt;/div&gt;
&lt;div class="gmail_default"&gt;For the TWI example twi_sensor&lt;/div&gt;
&lt;div class="gmail_default"&gt;&amp;nbsp;I need the mbed board which I have ordered.&lt;/div&gt;
&lt;div class="gmail_default"&gt;&lt;/div&gt;
&lt;div class="gmail_default"&gt;In the meantime, I have connected my Bosch BMP280 pressure sensor board to the Nordic nRF5 DK board.&lt;/div&gt;
&lt;div class="gmail_default"&gt;VCC 5V&lt;/div&gt;
&lt;div class="gmail_default"&gt;GND GND&lt;/div&gt;
&lt;div class="gmail_default"&gt;SCL P027&lt;/div&gt;
&lt;div class="gmail_default"&gt;SDA P026&lt;/div&gt;
&lt;div class="gmail_default"&gt;&lt;/div&gt;
&lt;div class="gmail_default"&gt;When I run&amp;nbsp;examples\peripheral\twi_scanner\pca10056\blank\ses&lt;/div&gt;
&lt;div class="gmail_default"&gt;twi_scanner_pca10056&lt;/div&gt;
&lt;div class="gmail_default"&gt;I get TWI device detected at address 0x76&lt;/div&gt;
&lt;div class="gmail_default"&gt;&lt;/div&gt;
&lt;div class="gmail_default"&gt;However, when I run twi_sensor (no mbed board but with the BMP280 pressure sensor connected), I don&amp;#39;t see any readings although I get the output &amp;quot;TWI sensor example started.&amp;quot;&lt;/div&gt;
&lt;div class="gmail_default"&gt;&lt;/div&gt;
&lt;div class="gmail_default"&gt;I can see two possible reasons why I&amp;#39;m not seeing any output.&lt;/div&gt;
&lt;div class="gmail_default"&gt;That example is trying to get output from an accelerometer?&lt;/div&gt;
&lt;div class="gmail_default"&gt;&lt;/div&gt;
&lt;div class="gmail_default"&gt;Or that example is configured with different pins for the SCL and SDA?&lt;/div&gt;
&lt;div class="gmail_default"&gt;&lt;/div&gt;
&lt;div class="gmail_default"&gt;Have you any ideas how I might get reading from the pressure sensor by modifying this example?&lt;/div&gt;
&lt;div class="gmail_default"&gt;&lt;/div&gt;
&lt;div class="gmail_default"&gt;Best regards,&lt;/div&gt;
&lt;div class="gmail_default"&gt;John A.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting out</title><link>https://devzone.nordicsemi.com/thread/213254?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 16:48:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfca6207-6479-4c38-8e5c-d12cdb65162d</guid><dc:creator>awneil</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/52850/starting-out/213250"]It&amp;#39;s certainly not&amp;nbsp;the most straightforward example to start with[/quote]
&lt;p&gt;Ha ha - no kidding!!&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f603.svg" title="Smiley"&gt;&amp;#x1f603;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;To be fair, the Thingy is a pretty complex system - certainly not a beginning example!&lt;/p&gt;
&lt;p&gt;I wouldn&amp;#39;t be surprised to find that most people just buy it and use it as-is ... ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting out</title><link>https://devzone.nordicsemi.com/thread/213250?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 16:39:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e968ee41-c84d-41e1-8e2d-d7f7ef828d27</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The thingy FW is not a part of our regular SDK release. It&amp;#39;s built on an older SDK version. Also, it doesn&amp;#39;t include project files for Segger Embedded Studio IDE, requiring you to either Makefiles or Keil uVision to build it.&amp;nbsp;It&amp;#39;s certainly not&amp;nbsp;the most straightforward example to start with. Again, my advice is to do it in smaller steps. I would have started developing the FW on an nRF52840 DK connected to a&amp;nbsp;&lt;span&gt;BMP280&amp;nbsp;breakout board (or an Arduino type shield if that exists) and get the I2C part to work first. The development kits, unlike the thingy:52, include an onboard Jlink lite debugger that you can&amp;nbsp;later use to program your custom boards.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Our&amp;nbsp;online power profiler makes it easy to estimate current based on various parameters:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/power"&gt;https://devzone.nordicsemi.com/nordic/power&lt;/a&gt;. It does not include the sensor, but it&amp;nbsp;will likely have little impact on the average power consumption. It depends on how frequent you need&amp;nbsp;an updated reading&amp;nbsp;and what the sensor&amp;#39;s standby current is. For actual measurements on the DK, see&amp;nbsp;&lt;a title="Measuring current" href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/nrf52840_DK/hw_measure_current.html?cp=3_0_4_8"&gt;Measuring current&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting out</title><link>https://devzone.nordicsemi.com/thread/213242?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 15:18:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19957b1f-9552-4843-ab73-a1906dde8f00</guid><dc:creator>JAC</dc:creator><description>&lt;p&gt;That doesn&amp;#39;t sound reassuring from a respected company like Nordic!&lt;/p&gt;
&lt;p&gt;Are there not a lot of people requesting the same thing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting out</title><link>https://devzone.nordicsemi.com/thread/213230?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 14:09:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49bace3d-d37b-4d9a-bf3b-a1c01d1c11ae</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The Thingy code is not up-to-date - I gave up even trying to get it to build.&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting out</title><link>https://devzone.nordicsemi.com/thread/213227?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 14:06:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eea61c96-2587-4365-be6f-1deb59991fda</guid><dc:creator>JAC</dc:creator><description>&lt;p&gt;Thank you both very much for your advice.&lt;/p&gt;
&lt;p&gt;Initially, I was also looking at the Thingy:52 as a way of getting something up and running quickly.&lt;/p&gt;
&lt;p&gt;Can you tell me if there are an example of adding a sensor to the GPIO and I2C on the Thingy:52. Would the mobile application be capable of showing the data coming through from that sensor?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is it possible to then evaluate the power consumption?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting out</title><link>https://devzone.nordicsemi.com/thread/213212?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 13:28:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f11beeaa-cc9b-46fe-9fda-a41cf2baf138</guid><dc:creator>awneil</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/52850/starting-out/213210"]I think it&amp;#39;s best to do it in smaller steps[/quote]
&lt;p&gt;&lt;strong&gt;Absolutely - &lt;span style="text-decoration:underline;"&gt;&lt;em&gt;always&lt;/em&gt;&lt;/span&gt; !&lt;/strong&gt;&lt;strong&gt;&lt;span class="mceItem mceNonEditable mceQuote" id="mceQuote2"&gt;...&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/52850/starting-out/213210"]The&amp;nbsp;&lt;a title="TWI Sensor Example" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/twi_sensor_example.html?cp=5_1_4_6_43"&gt;TWI Sensor Example&lt;/a&gt;&amp;nbsp;can be modified to read data from the bosch sensor[/quote]
&lt;p&gt;before that, use the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/twi_scanner_example.html" rel="noopener noreferrer" target="_blank"&gt;TWI Scanner Example&lt;/a&gt;&lt;span&gt;&amp;nbsp;to verify that you can address the sensor at all.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting out</title><link>https://devzone.nordicsemi.com/thread/213210?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 13:27:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac9c86a0-6f9f-4eda-b351-391d10461005</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I think it&amp;#39;s best to do it in smaller steps, so&amp;nbsp;I would suggest that you start getting the sensor reading over I2C to work first, then&amp;nbsp;once that&amp;#39;s done you can start with the BLE part. The&amp;nbsp;&lt;a title="TWI Sensor Example" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/twi_sensor_example.html?cp=5_1_4_6_43"&gt;TWI Sensor Example&lt;/a&gt;&amp;nbsp;can be modified to read data from the bosch sensor. Also, see&amp;nbsp;&lt;a title="TWI master" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/hardware_driver_twi.html?cp=5_1_2_0_17"&gt;TWI master&lt;/a&gt;&amp;nbsp;for documentation of the driver itself.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting out</title><link>https://devzone.nordicsemi.com/thread/213165?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 10:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05c28c14-d901-442e-be25-f009e8ce8b07</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1570098528421v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/introduction-to-bluetooth-low-energy-and-ble-devel"&gt;devzone.nordicsemi.com/.../introduction-to-bluetooth-low-energy-and-ble-devel&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/examples.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/examples.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>