Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

[Library] Nordic Semiconductor nRF8001 Bluetooth LE


  • Please log in to reply
5 replies to this topic

#1 Michiel

Michiel

    Member

  • Members
  • PipPip
  • 13 posts
  • LocationZwolle, The Netherlands

Posted 25 April 2014 - 11:21 AM

Hi everyone,

 

For a little project I'm doing I needed a way to do Bluetooth LE with my Netduino Plus, and I found the nRF8001 by Nordic.

Turns out it's a nice chip with good documentation (as most Nordic stuff tends to have).

However, I found out there wasn't a .NET library written for it yet!

 

So I decided to write one and put it on GitHub for everyone to use, because I can't imagine other people aren't interested in using this great BLE device.

 

It may be a little premature, seeing how most functionality isn't implemented yet, but I'm expanding this library every time I need more functionality from the nRF8001. For now at least, it is possible to get the device initialized and connect to a peer device.

 

I hope someone can make good use of it!

 

Link: https://github.com/m...s/nrf8001-netmf

 



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 25 April 2014 - 12:40 PM

Thanks for sharing this Michiel!

Chris

#3 Frode

Frode

    Advanced Member

  • Members
  • PipPipPip
  • 202 posts
  • LocationNorway

Posted 13 November 2014 - 09:03 PM

Hi Michiel, I've downloaded your code from GitHub, and have connected my board.

 

The code doesn't go beyond the first couple of lines in DoSetup(), it seems to be stuck in the Resetting stage.

 

I see in the program you use D0 and D6, as _trigger and _reload. Should I connect anything to Digital 0 and Digital 6 pins?



#4 Michiel

Michiel

    Member

  • Members
  • PipPip
  • 13 posts
  • LocationZwolle, The Netherlands

Posted 14 November 2014 - 09:56 AM

Hi,

 

That could be alot of things.

 

Did you create a new services.h with the nRFGo tool, or are you using the setup data in the BtTest program?

What is the exact part number of your nRF8001?

 

The BtTest program is just a test program I've written, the _trigger and _reload fields are not necessary for the functioning of the chip.



#5 Frode

Frode

    Advanced Member

  • Members
  • PipPipPip
  • 202 posts
  • LocationNorway

Posted 14 November 2014 - 01:28 PM

Hi, 

no I haven't used the "nRFGo tool". Never heard of it. Downloaded the nRFgo studio now, but I'm not really sure what it's for, and what I'm supposed to do in it.

 

I'm using v1.0 of Adafruits breakoutboard - http://www.adafruit.com/product/1697

 

The state printed out at line 119 in Nrf80001.cs is '64', and by backtracking in the code, I see that this is the first byte that is read via SPI. It reads the bytes 64, 1, 0, 1 from SPI, and as far as I can tell 64 isn't a valid state.



#6 BobL

BobL

    New Member

  • Members
  • Pip
  • 5 posts

Posted 22 March 2016 - 09:18 PM

Hi all,

 

I also did some work on the combination of NETMF and the nRF8001. My goal was to connect my Gadgeteer device to the Adafruit nRF8001 breakout. Since I could not find a driver I wrote it myself, based on the 'getting started' project that can be found on the Adafruit site. But if had known of your project ...  <_<

 

My effort is described here: https://devzone.nord...or-the-nrf8001/

The library could well be used for a Netduino device.

 

Cheers.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.