<?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>How to connect NRF 8001 BLE with Arduino</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1569/how-to-connect-nrf-8001-ble-with-arduino</link><description>Can anyone tell me how to connect NRF 8001 with Arduino mega 2560. I have developed an iPhone application and just want to connect with NRF 8001.Please tell me how to connect NRF 8001 with Arduino mega 2560 and make the BLE chip discoverable?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Feb 2014 13:48:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1569/how-to-connect-nrf-8001-ble-with-arduino" /><item><title>RE: How to connect NRF 8001 BLE with Arduino</title><link>https://devzone.nordicsemi.com/thread/6948?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2014 13:48:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6597d6b1-0d07-44d7-9244-dd4dbd1edf0c</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;The lib_aci_init function allows you to choose the pins to  be used for interfacing to the nRF8001.&lt;/p&gt;
&lt;p&gt;The SPI pins of the nRF8001 need to be connected to the SPI pins of the Arduino Mega, however since the Arduino Mega is a 5v board and the nRF8001 is a 3.3v chip (the olimex module is also 3.3v) , some level conversion is preferred. To make the design low power you can use a 3.3v based Arduino clone like &lt;a href="http://www.seeedstudio.com/depot/Seeeduino-Mega-p-717.html"&gt;this&lt;/a&gt;  that has a 5v and 3.3v switch so both the micro-controller and the nRF8001 operate at the same voltage level.&lt;/p&gt;
&lt;p&gt;The module does not have any Services or Characteristics pre-loaded, all the Services and Characteristics get loaded from the micro-controller i.e from the services.h and do_aci_setup() , using ACI Setup Commands.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect NRF 8001 BLE with Arduino</title><link>https://devzone.nordicsemi.com/thread/6947?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2014 12:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0f4b267-474b-45ed-a185-cf284892ce50</guid><dc:creator>Saurabh Gulia</dc:creator><description>&lt;p&gt;Thanks for the awesome reply. It has made most of the things clear,now i can start development on this project.I have ordered my pcbs for manufacturing but in the mean time i want to start using Olimex Module so that i can start programming.Can this module be directly connected with Arduino Mega?Which pins i have to connect? And when connected with Arduino will my iPhone be able to discover it and connect with it?
Will this module has its services and characteristic?&lt;/p&gt;
&lt;p&gt;Thanks in advance.You are awesome!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect NRF 8001 BLE with Arduino</title><link>https://devzone.nordicsemi.com/thread/6943?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2014 10:49:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05fe8a5a-06c7-4e29-b546-b4ed507d70f7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Saurabh,&lt;/p&gt;
&lt;p&gt;Regarding L1, C8 and C15 value, they belong to the PI tuning network and their values are to be calculated when tuning the antenna using a network analyzer. You can refer to our white papter nWP17 &lt;a target="_blank" href="http://www.nordicsemi.com/eng/nordic/download_resource/20347/2/18867584" rel="nofollow"&gt;http://www.nordicsemi.com/eng/nordic/download_resource/20347/2/18867584&lt;/a&gt; for more detail on antenna tuning.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect NRF 8001 BLE with Arduino</title><link>https://devzone.nordicsemi.com/thread/6946?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2014 10:08:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da7a33e9-04bc-4568-a59b-16b5dd72a1a6</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;You should read the nRF8001 datasheet here , &lt;a href="http://www.nordicsemi.com/eng/Products/Bluetooth-R-low-energy/nRF8001"&gt;www.nordicsemi.com/.../nRF8001&lt;/a&gt; .
You should also take a look at the example Arduino projects and the documentation for the BLE library available . The simplest example is the ble_uart_project_template. ( A hello world example will be added in the next release)
The lib_aci.h contains the required functions to be used to send and receive data. These functions are direct mappings to the ACI messages or utility functions.
For example lib_aci_send_data is used to send data and this is the ACI Send Data command (see the datasheet for details).&lt;/p&gt;
&lt;p&gt;The nRF8001 uses the nRFgo studio as the visual editor for Bluetooth GATT, GAP and hardware settings, these settings are saved in an XML file.&lt;/p&gt;
&lt;p&gt;The batch file runs the nRFgo studio in command line mode to generate the services.h file from the XML file. This batch file is required to be run every time a change is made in the XML file so a new services.h can be generated
You can also manually generate the services.h from nRFgo studio -&amp;gt; nRF8001 Configuration , nRF8001 Setup -&amp;gt; Generate source files -&amp;gt; Generate only Services.h
This services.h contains ACI Setup messages used to load the setup created into the nRF8001 as #defines.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;So the nRF8001 does not need to be connected to the PC at any point.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;You should then #include the services.h in your Arduino project or any other micro controller project
The #defines in the services.h are used in the lib_aci_init  to initialize the data structures for the BLE library. The do_aci_setup function is then used to setup the nRF8001.
See the example project and documentation for more details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect NRF 8001 BLE with Arduino</title><link>https://devzone.nordicsemi.com/thread/6945?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2014 19:50:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af4ae8b8-96ff-4b12-bc35-2bdb15bc1693</guid><dc:creator>Saurabh Gulia</dc:creator><description>&lt;p&gt;I have one last question, suppose i have connected nRF 8001 to arduino using BLE duino schematic and my iPhone is able to discover the BLE. Now how will i be able to communicate with arduino + BLE through iPhone. Like Red Bear labs people has developed their own libraries and i simply use BLE_Read() and BLE_WRITE() etc function to read and write in Arduino IDE. How will i be able to communicate? This is my major concern.&lt;/p&gt;
&lt;p&gt;Secondly,what is use of services.h file,you guys have also included this file in your Arduino compatible libraries and Red bear Lab have also included this?&lt;/p&gt;
&lt;p&gt;Third,what is the need of running any &amp;quot;setup.bat&amp;quot; file in nrfStudio? will nRF 8001 chip be connected to pc when we should run this file. If yes then how to connect nRF 8001 with pc when running this .bat file?&lt;/p&gt;
&lt;p&gt;Please each of the above question, you can call me stupid but i need these answers then only it will make things clear in my mind.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect NRF 8001 BLE with Arduino</title><link>https://devzone.nordicsemi.com/thread/6944?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2014 14:51:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fa5a4c5-170d-4623-9147-68882ac13edb</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;See comment above for the values for L1, C8 and C5
Look at bleduino.cc to understand the use of the ATmega32u4 .&lt;/p&gt;
&lt;p&gt;You can also use the Nordicsemi reference layout files for the nRF8001 and use that part in the BLEduino design. (so the nRF8001 block in BLEduino uses the Nordic reference layout)
&lt;a href="http://www.nordicsemi.com/eng/Products/Bluetooth-R-low-energy/nRF8001#Downloads"&gt;www.nordicsemi.com/.../nRF8001&lt;/a&gt;
See nRF8001 Reference Layout Files&lt;/p&gt;
&lt;p&gt;Alternatively you can use a nRF8001 module to quickly get started , using the &lt;a href="http://www.insightsip.com/bluetooth-smart-module.html"&gt;Insight SIP module&lt;/a&gt; or the &lt;a href="https://www.olimex.com/Products/Modules/RF/MOD-nRF8001/"&gt;Olimex module&lt;/a&gt; . The Olimex module can be soldered on to your design as well. The InsightSIP module is FCC/CE qualified in addition so your design can directly enter production.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect NRF 8001 BLE with Arduino</title><link>https://devzone.nordicsemi.com/thread/6942?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2014 13:57:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2ef76c5-9bbc-4e68-a5d4-11157df5ea2d</guid><dc:creator>Saurabh Gulia</dc:creator><description>&lt;p&gt;Yes i had already gone through this schematic, what exactly is the use of ATmega32u4. And you are saying i should remove this? And in this schematic they have connected BALUN Antenna, is it necessary to connect? And values of L1, C8 and C15 are not given in this schematic. what will be the values of these components, i should know these if i give this schematic to manufacture. Please tell me the values of this or provide the schematic which have all the values. It will be a great help, will really appreciate this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect NRF 8001 BLE with Arduino</title><link>https://devzone.nordicsemi.com/thread/6941?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2014 13:45:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7515334e-7c2b-46cc-9e81-0278341b1687</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;See updated with edits.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect NRF 8001 BLE with Arduino</title><link>https://devzone.nordicsemi.com/thread/6940?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2014 13:13:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee15c3b3-bd4b-40d7-bda7-912853f46758</guid><dc:creator>Saurabh Gulia</dc:creator><description>&lt;p&gt;Yes, i had BLE shield that is developed by Red Bear Labs. And i had successfully connected it with my iPhone app. But now i want to make my own, Red bear labs is also using NRF 8001 BLE chip. Please tell me which pins are to be used to connect NRF 8001 with Arduino mega or please provide the schematics to connect BLE with Arduino Mega. And then how to program NRF 8001 with Arduino IDE. Please help??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect NRF 8001 BLE with Arduino</title><link>https://devzone.nordicsemi.com/thread/6939?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2014 13:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:418e2782-e669-4166-a65f-435d4f308723</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;You can use the &lt;a href="http://www.seeedstudio.com/depot/Bluetooth-40-Low-Energy-BLE-Shield-v20-p-1631.html"&gt;Bluetooth low energy shield&lt;/a&gt; with the Arduino mega 2560 and use the Bluetooth low energy SDK for Arduino that is available &lt;a href="https://devzone.nordicsemi.com/arduino"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Edit: Use the ble_uart_project_template to get started with the nRF UART iOS app.&lt;/p&gt;
&lt;p&gt;When starting with your own design I suggest that you look at the BLEduino schematics &lt;a href="https://github.com/BLEduino/bleduino-hardware"&gt;github.com/.../bleduino-hardware&lt;/a&gt; , you can use only the parts for the nRF8001 and ATmega328 and remove the ATmega32u4. You should be able to replace the ATmega328 with the ATMega used for the Arduino mega. Remember to remove the level converters if you want a real low power design and make sure your design can run at 3.3v.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/BLEduino/bleduino-hardware"&gt;github.com/.../bleduino-hardware&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>