Skip to the content
2 layers59.2 × 41 mmBluey, the printed circuit board in 3D

Nordic nRF52832 BLE development board with sensors.

Size
59.2 × 41 mm
Copper layers
2
Thickness
1.6 mm
Parts
79
Nets
84
Pads
352
Tracks, vias
1,410, 260
Pours
2
Routed
Yes
KiCad
KiCad 4
Created
23 Feb 2017
Updated
26 Jun 2019

Overview

Bluey is an open-source printed circuit board by electronut, from the electronut/ElectronutLabs-bluey repository on GitHub. It is a 2-layer board of 59.2 × 41 mm with 79 parts on 84 nets, routed with 1,410 tracks and 260 vias.

It is built around the CP2104EK, HDC1010EVM and AP2112K-3.3, with the LSM6DS3, DMG2307L and CR2032 among its other parts. Its parts include 24 capacitors, 17 resistors, 9 ICs, 5 connectors and 3 switches. It belongs with the radio and wireless boards and the nRF52 and nRF5x boards of this library.

Main components

8

README

README.md
Bluey 1.1

What is Bluey?

Bluey is an Open Source BLE (Bluetooth Low Energy) development board with Temperature, Humidity, Ambient Light and Accelerometer sensors.

Bluey uses the Nordic nRF52832 BLE SoC (System on a Chip) which has an ARM Cortex-M4F CPU and a 2.4 GHz radio that supports BLE and other proprietary wireless protocols. It also supports NFC, and in fact the board comes with a built-in NFC PCB antenna.

Specifications

  • Nordic nRF52832 QFAA BLE SoC (512k Flash/ 64k RAM)
  • TI HDC1010 Temperature/Humidity sensor
  • APDS-9300-020 ambient light sensor
  • ST Micro LSM6DS3 accelerometer
  • CREE RGB LED
  • CP2104 USB interface
  • 2 push buttons
  • Coin cell holder
  • Micro SD slot
  • 2.4 GHz PCB antenna
  • NFC PCB antenna

Getting Started with Bluey

Bluey is shipped with either Arduino bootloader or Nordic DFU-OTA bootloader as per the selection at the time of purchase. While Arduino bootloader facilitates programming Bluey using Arduino IDE via serial USB cable, Nordic's DFU-OTA bootloader allows the user to update device firmware using Nordic's software development kit (SDK) and nRF Connect mobile application over bluetooth.

We have created an Arduino library with example projects to help you get started quickly.

Guide: Using Arduino

Guide: Using Nordic SDK [blocked]


Guide: Using Arduino

Bluey 1.1

Installation

Uploading without programmer requires bootloader programmed on the board. The repo electronut/bluey_serial_dfu_bootloader contains the source and precompiled hex file of the bootloader as hex/s132_nrf52_2.0.0_softdevice.hex.

The bootloader has the softdevice s132 in it, so no other action is needed to use the BLE Peripheral library.

Bootloader mode is triggered by pressing and holding both prss buttons on bluey and releasing the reset button. The blue LED will start blinkng at an accelerating rate repeatedly to indicate that the bootloader mode is active.

Board Manager

  1. Download and install the Arduino IDE (At least v1.6.12)
  2. Start the Arduino IDE
  3. Go into Preferences
  4. Add https://raw.githubusercontent.com/electronut/arduino-boards/master/package_electronutlabs_boards_index.json as an "Additional Board Manager URL"
  5. Open the Boards Manager from the Tools -> Board menu and install "Electronut labs nRF5 Boards"
  6. Select 'Electronut labs bluey' from the Tools -> Board menu

NOTE: During installation it takes the Arduino IDE a few minutes to extract the tools after they have been downloaded, please be patient.

Uploading Bootloader

Although Bluey is shipped with the bootloader that enables programming the device using Arduino IDE, in case you erase the bootloader from Bluey, it is possible to flash it again using a Bumpy.

Steps

  1. Download bootloader
  2. Open command prompt and access the directory containing bootloader hex file.
  3. Follow steps as mentioned in the Bumpy github repository to connect and attach to Bluey target.
  4. Issue: load s132_nrf52_2.0.0_softdevice.hex command. Wait for the command to execute and load the file completely.
  5. Issue: detach command to free the target.
  6. Issue: Quit command to close arm-gdb debugger.
  7. Unplug Bumpy.
  8. Connect Bluey to your PC via USB cable. You should notice the familiar blue LED blinkking at an accelerating rate, indicating Bluey is in bootloader mode.

Usage

  • After tools installation, you can now select "Electronut labs bluey" from the tools menu, and other related options.

  • Bluey comes preprogrammed with serial DFU bootloader, which Nordic's nrfjprog utility can program using serial connection. To trigger bootloader, press and hold button1, press the Reset button and then release button1.

  • Bluey's blue LED will start blinking in a 'timebomb' pattern, indicating that it is in DFU bootloader mode. Now you can press upload button in arduino IDE to program your code.

  • Bluey library for arduino is available at ElectronutLabs_Bluey_Arduino_Library repository. Download the zip file from github repository and extract the files to Documents/Arduino/libraries directory for Windows OS.

Steps

  • Set the device in bootloader mode. To trigger bootloader, press and hold button1 (SW3) , press the Reset button (RST) and then release button1.

  • Go to: Tools > Boards. Select Electronut labs Bluey.

  • Go to: Tools > Softdevice. Select S132.

  • Ensure Low Frequency Clock is set to Crystal Oscillator under Tools menu.

  • Select appropriate COM Port assigned to Bluey.

  • Click on Upload under Sketch menu or use Ctrl + U combination to upload code to Bluey.

  • Once code is upload, perform a manual reset by pressing RST button once.

Pin mapping

text
                    Connector P3 on bluey

     A0       P0.02/AIN0   | 1   2 | P0.26        D0
     A1       P0.03/AIN1   | 3   4 | P0.27        D1
     A2       P0.04/AIN2   | 5   6 | P0.24/AIN4   A3
     D2            P0.22   | 7   8 | P0.29/AIN5   A4
     D3            P0.23   | 9  10 | P0.30/AIN6   A5
     D4            P0.24   | 11 12 | P0.31/AIN7   A6
     D5            P0.25   | 13 14 | Ex_vin
                     GND   | 15 16 | 3v3
                     GND   | 17 18 | GND


          button D6  - P0.16
              R  D7  - P0.19
              G  D8  - P0.18
              B  D9  - P0.17

      D10     SCL - P0.11    DRDYn - P0.12   D11
      D12     SDA - P0.13      INT - P0.14   D13
      D14    INT1 - P0.15     INT2 - P0.20   D15

              RXD - P0.08    TXD - P0.06
              RTS - P0.05    CTS - P0.07
  • LED and button pins can be referenced by PIN_LEDR, PIN_LEDG, PIN_LEDB ,LED_BUILTIN (red one), PIN_BUTTON in arduino code.

Low Frequency Clock Source (LFCLKSRC)

Bluey has an external 32 kHz crystal connected, thus, it will be used as the source for the low frequency clock. The internal 32 kHz RC oscillator can be used by removing the external crystal. The low frequency clock is used by the delay(ms) and millis() Arduino API's.

Bluey has an additional menu item under Tools -> Low Frequency Clock that allows you to select the low frequency clock source.

BLEPeriphial Arduino Library

  • arduino-BLEPeripheral library can be used creating BLE applications with bluey. Follow installation steps on it's README. See the library's API for more details on usage.

  • Ensure that Softdevice:"S132" is selected under tools menu. This is essential to compile BLE examples.

  • NOTE: Although the description says "nRF8001 or nRF51822", but nRF52832 is also supported because despite changes in CPU and peripherals, the radio interface is identical in both (API is same, but there might be changes in power/sensitivity etc.)

  • Once installed, you can see examples for this in examples menu. You can run most examples without modifications, unless some specify LED or button pins different from bluey's, in which case, just replace pin numbers with LED_BUILTIN, or PIN_BUTTON etc.

  • Use nRF connect (and other apps from nordic on play store) to scan, connect, interact with BLE peripherals created with these examples.


Guide: Using Nordic SDK

To get a project up and running with bluey, you need to first build the code to generate a .hex file and then upload it to the board.

Building code for Bluey

If you are just getting started with the nRF52832, we recommend that you set up and use the Nordic nRF5 SDK for programming bluey. Click here to read our Getting Started with nRF5 SDK guide.

Uploading code to Bluey

Bluey Bumpy

There are two main ways of uploading code into bluey:

  1. Use the built-in OTA (over the air) bootloader which lets you upload code using a phone. Click here to read about this option.

  2. A much more powerful option is to use an external programmer that can both upload and debug your code. Here are a few ways of doing this:

    1. Use our inexpensive Black Magic Probe compatible Bumpy SWD programmer which was designed exactly for this purpose.
    2. Using a cheap programmer loaded with Black Magic Probe firmware. Click here to learn about this option.
    3. Using the Nordic nRF52-DK. Click here to explore this option.

Powering Bluey

You can power bluey in several ways:

  1. Using the 5V micro USB connector (which also gives you the option to print debug messages via UART).
  2. The + / - power supply pins which can take regular 2.54 mm header pins, a JST connector for a 3.7 V LiPo battery, or a 3.5 mm terminal block.
  3. A CR2032 coin cell for low power applications.

The sensors on bluey require a minimum of 2.7 Volts to function properly. Please note that the maximum power supply to bluey is 6 Volts. Do not exceed it! We also have reverse polarity protection on all power supplies, but better not to tempt fate. :-)


What can you do with Bluey?

You can use bluey for a wide range of projects. The BLE part is ideal for IoT projects, or if you want to control something with your phone. The nRF52832 SoC has a powerful ARM Cortex-M4F CPU, so you can use this board for general purpose microcontroller projects as well.

With BLE and useful built-in sensors, bluey is a great platform for learning IoT, BLE programming, ARM, and microcontrollers in general. In fact, it's being currently used in Embedded Systems training courses.

The code folder in this repository has a bunch of interesting demo projects that we have built using bluey - so do take a look!

Parts

79
QtyValueFootprintReferences
910KResistors_SMD:R_0603R5, R6, R9, R10, R13, R14, R15, R16, R17
6TEST_1Pble-tracker:TPDRDYn, INT, INT1, INT2, SCL, SDA
50.1uFCapacitors_SMD:C_0603C2, C21, C22, C23, C26
412pFCapacitors_SMD:C_0402C8, C9, C16, C19
30.1uFCapacitors_SMD:C_0402C7, C12, C13
31uFCapacitors_SMD:C_0603C1, C3, C5
34.7KResistors_SMD:R_0603R4, R7, R8
20RResistors_SMD:R_0603R11, R12
2100RResistors_SMD:R_0603R2, R3
24.7uFCapacitors_SMD:C_0603C4, C14
2DMG2307LTO_SOT_Packages_SMD:SOT-23Q1, Q2
2SW_PUSHbluey:peter-switchSW2, SW3
2TBDCapacitors_SMD:C_0402C10, C11
10.8pFCapacitors_SMD:C_0402C15
11.0uFCapacitors_SMD:C_0603C20
1100pFCapacitors_SMD:C_0402C17
110uHInductors_NEOSID:Neosid_Inductor_SM0603CGL1
115nHbluey:L_0402L2
12.2uFCapacitors_SMD:C_0603C6
1200RResistors_SMD:R_0603R1
13.5mm STTerminal_Blocks:TerminalBlock_Pheonix_PT-3.5mm_2polP5
13.9nHbluey:L_0402L3
132.768KHzbluey:ABS07_crystalY1
132MHzbluey:32MHz_crystalY2
1AP2112KTO_SOT_Packages_SMD:SOT-23-5U2
1APDS9300-020bluey:APDS9301U5
1CONN_02X09Pin_Headers:Pin_Header_Straight_2x09_Pitch2.54mmP3
1CP2104bluey:CP2104_QFN-24_4x4mmU1
1CR2032bluey:BT2032BT1
1FUSEbluey:Fuse_PTCF1
1HDC1010bluey:HDC1010U4
1JSTbluey:JST-2-PTHP4
1JTAGPin_Headers:Pin_Header_Straight_2x03_Pitch2.54mmP2
1JUMPER3bluey:Pin_Header_Straight_1x03_Pitch2.54mmJP1
1LOGObluey:electronutlabs_logoG***
1LSM6DS3bluey:LSM6DS3U6
1Led_RGB_CAbluey:CREE-CAD2
1MBR120bluey:S.DiodeD1
1MicroSDbluey:MicroSD_CardHolderU9
1NCCapacitors_SMD:C_0402C18
1NFC_Antennabluey:nfcU7
1ON/OFF Switchbluey:tactile_switchSW1
1RF_Antennabluey:Antenna-2.45GHZ_mirrorU8
1USB_OTGbluey:Micro_USB_5.9mmP1
1nrf52832bluey:nrf52832U3

The 77 most common of 79 parts.

Similar boards

  • 2 layers47.5 × 56.8 mmEsp32wroomOled V01, the printed circuit board in 3D

    Esp32wroomOled V01

    erkanCil/esp32wroomOled_V01

    esp32wroomOled_V01 kiCaD files

    63 parts2
  • 4 layers127 × 96.5 mmKicad pulse supply rev B, the printed circuit board in 3D

    Kicad pulse supply rev B

    adilet2109/current-sensor

    Bare-metal code base for current sensor board

    181 parts1
  • 2 layers79.8 × 66.8 mmRemote, the printed circuit board in 3D

    Remote

    edgecollective/co2-remote-and-gateway

    64 parts
  • 4 layers54 × 35 mmBike, the printed circuit board in 3D

    Bike

    InfinityTech100/Bike-Mini-speedo

    67 parts
  • 2 layers89 × 76.1 mmGSRT Badge, the printed circuit board in 3D

    GSRT Badge

    ril3y/GSRT-ATL-Badge

    GSRT Badge - 2018 Atlanta

    62 partsMIT
  • 2 layers70 × 140 mmPCB V1, the printed circuit board in 3D

    PCB V1

    Jonathan-0101/skeletonKey

    BEng Dissertation; Penetration-testing device to highlight security system vulnerabilities

    46 parts1GPL-3.0
  • 2 layers83.6 × 76.7 mmControle, the printed circuit board in 3D

    Controle

    mbouyer/domotique

    gestion du chauffage et aération d'une habitation

    94 partsBSD-3-Clause
  • 2 layers40 × 51.5 mmMyFirstPCB, the printed circuit board in 3D

    MyFirstPCB

    tvaala93/PCB-Class

    Files for PCB design class

    31 parts

Questions

How big is the Bluey PCB?

It measures 59.2 × 41 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Bluey use?

79 parts, built around the CP2104EK, HDC1010EVM, AP2112K-3.3 and LSM6DS3. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Bluey KiCad files?

From the electronut/ElectronutLabs-bluey repository on GitHub, at the commit this page was made from: the board is pcb/ver1.1/bluey.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Bluey design in my own project?

Its repository states no licence, so its author keeps all rights: ask electronut before reusing the design.