Maker Portal

View Original

MakerBLE — A Tiny nRF52840 Bluetooth Arduino Board

“As an Amazon Associates Program member, clicking on links may result in Maker Portal receiving a small commission that helps support future projects.”

See this content in the original post

See this content in the original post

The MakerBLE board will be the centerpiece for this tutorial series. We will also use a few other essential maker components, which we have listed below for reference:

  • 1x MakerBLE Arduino Board - $22.00 [Our Store]

  • 1x Mini Breadboard - $3.00 [Our Store]

  • 4x Male-to-Male Jumper Wires - $0.60 [Our Store]

  • 1x Mini Electronics Enclosure Box - $3.00 [Our Store]

The components above allow users to test the MakerBLE and a few of its capabilities. There is a capacitive touch sensor example script on our GitHub page, which will verify I/O functionality of the board when testing for the first time.

See this product in the original post

Below is the pinout reference for the MakerBLE Arduino Board:

See this content in the original post

It is indisputable based on the diagram above, that the MakerBLE board has an impressive range of peripherals available to it based on its miniature size: I2C, UART, SPI, BLE, interrupts, ADCs, GPIOs, among others. Consequently, this tutorial series intends to explore many of these capabilities through direct testing with sensors, motors, and wireless communication devices. The goal of which is to explore making at the compact scale, think: IoT, wearables, portable sensors, battery-powered pocket devices. We are interested in shrinking down projects to fit the size of everyday devices, and we’re starting with the MakerBLE Arduino Board.

See this content in the original post

See this content in the original post

Nordic’s nRF52840 Bluetooth Low Energy (BLE) chip is at the center of the MakerBLE. Fortunately, we can use many of the same nRF52840 libraries to control the board, interface with an array of sensors, and communicate with a range of BLE devices. To get started developing with the MakerBLE, users will need to download Maker Portal’s board package and add it to the Arduino IDE’s “Additional Boards Manager URLs” under its Preferences menu. The process for downloading, installing, and using the MakerBLE Arduino board is given in the subsequent series of screenshots and steps below.

The MakerBLE board should have been successfully installed. If this is the case, follow the next steps below:

See this content in the original post

At this point, the MakerBLE is a working Arduino microcontroller with many classic capabilities and peripherals. The board’s functionality can be verified by uploading any of the classic Arduino scripts directly within the IDE (File → Examples → Basics): BareMinimum, Blink, AnalogReadSerial, Fade, etc. Any of these should work within the limits of the MakerBLE and nRF52840, with the appropriate pins corresponding to the pinout diagram delineated in the previous section.

We also created a GitHub repository for the MakerBLE board that houses many of our custom scripts used to call Bluetooth functions, read sensors, interact with BLE smartphone apps (BLExAR), along with other unique functions of the board:

The GitHub repository will be periodically updated as we continue to develop experiments, tutorials, projects, sensor compatibility, and general capabilities for the MakerBLE board. If a feature or interaction between the MakerBLE board and a sensor is desired, please use our contact page to notify us of your request.


See this content in the original post

The Arduino platform established its own Bluetooth Low Energy (BLE) library a while back, called ArduinoBLE, that supports SAMD, MegaAVR, nRF, Mbed, Apollo3, Mbed_nano, Mbed_portenta, and Mbed_nicla architectures (learn more about system architectures here). BLE peripherals & centrals are supporting, allowing us to create peripheral and central nodes for communication between Arduino boards, smartphones, and other BLE-enabled devices. Since the MakerBLE uses an nRF52840 chip, we can use the ArduinoBLE library to take advantage of many of its baked-in functions to create unique projects.

The full ArduinoBLE library support page can be found at the following link:

The simplest foray into Bluetooth Low Energy (BLE) with Arduino is to setup a BLE characteristic that sends text back and forth from a smartphone app. We’ll be using the BLExAR app for iOS to demonstrate simple communication between the MakerBLE and an iPhone. BLExAR is an integrated app that uses BLE to connect and transfer data between iOS devices and Arduino boards. BLExAR allows the smartphone user to control digital and analog pins, acquire and visualize data in real-time, and communicate and monitor input and output using a terminal window. The BLExAR app is intended for makers, students, and engineers interested in controlling their Arduino board whether for hobby or professional purposes.

BLExAR App for Android and Apple Smartphones

Below is a simple script that transfers and displays text between the BLExAR iOS app and MakerBLE board, and turns on the appropriate on-board LED if the correct text is sent from the smartphone:

See this content in the original post

The way to test whether there is a valid BLE connection between the BLExAR app and MakerBLE board is to send a message from the BLExAR app console window. If ‘red’ ‘green’ or ‘blue’ are sent, the corresponding RGB LED will turn on for that color. Users should also verify the following when sending text from the iPhone to MakerBLE:

  1. The BLExAR app shows the outgoing message

  2. The text is printed out on the Arduino serial monitor window

  3. The response from the MakerBLE shows up on the BLExAR console window

  4. If ‘red’ ‘green’ or ‘blue’ are sent, the corresponding LED is turned on

These four components verify the connection and communication between BLExAR and MakerBLE, and that the MakerBLE is behaving as expected on the hardware side of things (if the LEDs are working).

See this content in the original post

See this content in the original post

In this tutorial, the MakerBLE board was introduced as a tiny, versatile, BLE-enabled microcontroller integrated into the Arduino ecosystem. With an nRF52840 BLE SoC at its core, the MakerBLE allows users to receive and send messages, collect data, control GPIO pins, and read from sensors — just to name a few capabilities. This is the first entry in a series of projects centered around low-power, Bluetooth-enabled, mini microcontroller projects. The intention is to explore remote control of motors, data collection from I2C, SPI, UART, I2S sensor peripherals, message and string text analyses, BLE peripheral/central communication protocols, and general electronics testing with the MakerBLE. The aim of this series is to reduce average component size for maker projects to improve scalability of wearables and portables in the DIY electronics space.

See this content in the original post

See More in Arduino and BLE:

See this content in the original post