Core51822

From Waveshare Wiki
Jump to: navigation, search
Core51822
Bluetooth 4.0 NRF51822 Core Board
Core51822

BLE4.0 Bluetooth 2.4G Wireless Module, nRF51822 Onboard
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Introduction

BLE4.0 Bluetooth 2.4G Wireless Module, nRF51822 Onboard

More
  • Core51822 is a wireless module based on nRF51822 - the Multiprotocol Bluetooth® 4.0 low energy/2.4 GHz RF SoC designed for ULP (ultra-low power) wireless applications.
  • Core51822 (B) is a wireless module based on nRF51822 - the Multiprotocol Bluetooth® 4.0 low energy/2.4 GHz RF SoC designed for ULP (ultra-low power) wireless applications.
  • BLE400 is a mother board designed for BLE4.0 Bluetooth 2.4G Wireless Module.

BLE400 Features

  • Onboard battery holder, multi-power supplies are available.
  • All the IOs are accessible for easy expansion.
  • Integrates CP2102 for debugging.
  • LEDs and user keys, compatible with other official boards, easy to use.

Out of box audit

PC development environment deployments

  • WindowsXP or Windows 7
  • nRFgo Studio v1.14 or higher versions
  • Keil MDK-ARM Lite v4.54 or higher versions
  • J-Link Software v4.52b or higher versions

Mobile app download

For iOS: enter App Store and search nRF Utility

For Android (4.3 or later): download nRFToolbox then unzip and install it.

Notice: The development method of Bluetooth 4.0 is different from the traditional one. So your phone can find Bluetooth 4.0 signal only if it supported Bluetooth 4.0 and installed a related App.

How to connect with a mobile phone (Bluetooth to serial demo)

a) Install the CP2102 Driver.

b) Connect the mini USB Port of BLE400 to your PC.

c) Choose and check a corresponding Serial Port which was set as Baud rate -> 38400, Data bit -> 8, Stop bit -> 1.

d) Send a character Y or y and then if the word Start... is received, means that your Bluetooth device is broadcasting. At this time, the LED0 on BLE400 lights up.

Note: The first part of the factory program is for self-test, so the information displayed can be ignored.

e) Open the Bluetooth function on your phone.

f) Open nRFToolbox and enter UART then click the button CONNECT. Select "Nordic_UART" on the list and at this time LED0 off and LED1 on, which means that your phone is successfully connected to the module.

g) Tap the button on the App and some characters will be received by Serial.

Core51822-01.jpg

h) Click Show Log and send a string, e.g. abcdefghijklmnopqrs, by Serial from PC, then the corresponding information will be displayed on the LOG list.

Core51822-02.jpg

Note: the App displays received data only if 19 characters are received.

Program descriptions

SDK

  1. Install Keil MDK-ARM (v4.54 or higher version) and J-Link for Windows.
  2. Save nRF51 SDK and open the nrf51_sdk_v5_2_0_xxxxx.msi file to install. Please ensure the KeilMDK-ARM option is selected.
  3. It is noticed that if there are installation errors of SDK, please download and install Microsoft .NET Framework 3.5.
  4. Install nRFgo Studio (nRFgo Studio win32 for a 32-bit system, and nRFgo Studio win64 for a 64-bit system).

Example application programming explanations

There are a few differences in programming different example applications. In the following two sections, we will take blink_example and ble_app_hrs as two examples to illustrate how to program example applications.

Here are the main differences in programming blink_example and ble_app_hrs applications.

  • The blinky_example is like an application run without OS. So it can be applied directly after Programming Application.
  • The ble_app_hrs is like an application that should be run in an OS. Therefore, both relative firmware and its codes should be downloaded.

How to compile and program blinky_example

  • Before programming, you should apply nRFgo Studio to erase all the programs preinstalled to the development board by the manufactory. The erasure can be easily done by selecting nRF51 Programming and clicking Erase all. Now, it is ready to program the applications.
NRF51822-Eval-Kit-User-Manual-1.jpg
  • Open Blinky Project in Keil μVision under the path of <KEIL path> \ARM\Device\Nordic\nRF51822\Board\PCA10001\blinky_example\arm\blinky.uvproj or ...\code\BLE4.0\nrf51822\Board\pca10001\blinky_example\arm\blinky.uvproj
  • Click the icon Build or press the fast key, F7, to compile Blinkly project.
  • Click the icon Download. Run the Blinky_example after the program download is finished. Then, you can see the LED start to flick.
NRF51822-Eval-Kit-User-Manual-2.jpg

Notice:

Sometimes, Jlink firmware may fail to cooperate with Nordic SDK, causing KEIL cannot download demos.

In this case, please select nRF51 Programming at the bottom left of nRFgo Studio, and click the option Program Application to start programming.

NRF51822-Eval-Kit-User-Manual-3.jpg

How to compile and program ble_app_hrs

  • Program S110 nRF51822 SoftDevice (Bluetooth protocol stack):

Select nRF51 Programming > Program SoftDevice> Browse (choose corresponding Bluetooth protocol stack) > Program (wait for completing Bluetooth protocol stack programming).

Notes: The protocol stack file we used here, s110_nrf51822_6.0.0_softdevice.hex, is decompressed from \Software\s110_nrf51822_6.0.0.zip.

NRF51822-Eval-Kit-User-Manual-4.jpg
  • Enter <KEIL path> \ARM\Device\Nordic\nrf51822\Board\pca10001\s110\ble_app_hrs\arm or <code path>\BLE4.0\nrf51822\Board\pca10001\s110\ble_app_hrs\arm. And then, open Keil project file.
  • Follow the steps mentioned above to compile and download.

Functional descriptions of example programs

  1. All the programs are under the path of <code path>\BLE4.0\nrf51822\Board\pca10001 and all the jumpers are connected.
  2. For the detailed explanations of processes ①, ②, ③, and ④ in the table below, please refer to the remarks at the bottom of the table.
  3. For the operations involving process ②, please refer to the section "How to compile and program ble_app_hrs" to find out the relative program method.
  4. For other demos, please refer to the section “How to compile and program blinky_example” to find out the relative program method.
Program name Operations and phenomenon
blinky_example LED is flickering
uart_example ①, and read back serial output information
at45dbxx_example ①, and connect AT45DBXX DataFlash Board to a SPI

The ID of the module will be shown in the serial debugging assistant.

at24cxx_example ①, and connect AT24CXX EEPROM Board to an I2C interface

Press KEY1 on the development board, and then the data of the assigned address will be shown in the serial debugging assistant.

Press KEY2 on the development board, and then the data of the assigned address will be increased by 1.

button_radio_example\led_radio_example Development board A downloads button_radio_example

Development board B downloads led_radio_example

Press KEY1 on the development board A, and then LED0 starts flickering

Press KEY2 on the development board B, and then LED1 starts flickering

ble_app_beacon ②, ③, ④
ble_app_proximity ②, ③, ④
ble_app_uart ①, ②, ③, ④, and transmit the data in the mobile phone to a serial port

Remarks:

① Connect the development board to a PC via a data cable, and start the serial debugging assistant; Baud rate: 38400, 8-bit data bit, 1-bit stop bit.

② Download the Blue tooth protocol stack from Program SoftDevice.

③ Testing software: LightBlue(iOS).

④ LightBlue displays relative information.

Resources

NRF51822 Software

NRF51822 Design Resources

Mother Board

FAQ

 Answer:

Bluetooth 4.0 development method and traditional Bluetooth are different, traditional Bluetooth can use the phone comes with the Bluetooth manager to search for traditional Bluetooth devices, while Bluetooth 4.0 devices in the general Bluetooth manager are not searchable, you need to use the corresponding APP (such as LightBlue, nRF Toolbox, etc.) to search successfully.

{{{5}}}


 Answer:
  • In general, it can be solved after installing SDK.
  • If the above method does not work, then directly extract nrf51xxx.flm to the corresponding directory of Keil (usually Keil\ARM\Flash).
  • Use nRFgoStudio for full chip erase.

{{{5}}}


 Answer:
*Make sure that J-LINK is connected as follows, the green light is always on when the connection is normal.

Core51822 faq10.jpg

{{{5}}}


 Answer:

1. Firstly, check the relative information on your cell phone to make sure whether it supports BlueTooth 4.0. Here are the common types of cell phones:

  • IOS system: IPhone4S or latest model.
  • Android system: Samsung S4, S5, Note3; HTC one; LG G2; Moto X; Nexus5.

2. Secondly, download the file nRFToolbox to the cell phone:

  • IOS system: search the file nRFToolbox in the App Store, and then download it.
  • Android system: download the file NRFToolbox, and then unzip and install it.
{{{3}}}
{{{4}}}

{{{5}}}


 Answer:
HRM DEMO is the default setting of the module, and you can find the source code at the Demos \nrf51822\Board\pca10001\06 s110\ble_app_hrs
{{{3}}}
{{{4}}}

{{{5}}}


 Answer:
No, ST-LINK can only download ST-LINK chips, nRF51822 is a Nordic chip.

{{{5}}}


 Answer:
This interface is the power supply interface and USB to serial port (non-download interface), in the serial port experiment will be used.

{{{5}}}



 Answer:
  • The source code is modified based on this project in the DEMO package: \nrf51822\Board\pca10001\06 s110\experimental\ble_app_uart
  • Only some simple self-test code was added, which will not be used by general applications. Note: The original project does not need to start the broadcast by sending data to the serial port.

{{{5}}}


Support



Technical Support

If you need technical support or have any feedback/review, please click the Submit Now button to submit a ticket, Our support team will check and reply to you within 1 to 2 working days. Please be patient as we make every effort to help you to resolve the issue.
Working Time: 9 AM - 6 AM GMT+8 (Monday to Friday)