Arduino Nano 33 Sense | BLE Battery Level Tutorial

Hackster.ioLearning Hardware Community. Projects× Log inSign up ProjectsProjectsChannelsChannelsNewsContestsEventsVideos ×

Embed the widget on your own site

Add the following snippet to your HTML:

Arduino Nano 33 Sense | BLE Battery Level Tutorial

Learn the basics of using BLE with Arduino using this easy example code step by step.

Read up about this project on Hackster.io

Arduino Nano 33 Sense | BLE Battery Level Tutorial

Jithin Sanal7 18,184
  • Overview
  • Things
  • Story
    • Arduino BLE Example Code Explained
    • Arduino Nano 33 BLE Sense
    • Arduino BLE – Bluetooth Low Energy Introduction
    • Arduino BLE Example 1 – Battery Level Indicator
    • Design your own PCBs for your Project
    • PCB Design Tutorial using Altium
  • Credits
  • Comments(1)
Jithin SanalJithin SanalPublished © Apache-2.0Arduino Nano 33 Sense | BLE Battery Level Tutorial

Learn the basics of using BLE with Arduino using this easy example code step by step.

BeginnerFull instructions provided1 hour18,184Arduino Nano 33 Sense | BLE Battery Level Tutorial

Things used in this project

Hardware components

Nano 33 BLE Sense
Arduino Nano 33 BLE Sense
×1
Arduino MKR WiFi 1010
Arduino MKR WiFi 1010
×1
  • Buy from Newark
  • Buy from store.arduino.cc
Arduino Nano 33 IoT
Arduino Nano 33 IoT
×1

Software apps and online services

Arduino IDE
Arduino IDE
nRF Connect SDK
Nordic Semiconductor nRF Connect SDK

Story

Arduino BLE Example Code Explained

In this tutorial series, I will give you a basic idea you need to know about Bluetooth Low Energy and I will show you how you can make Arduino BLE Chipset to send and receive data wirelessly from mobile phones and other Arduino boards. Let’s get started.

Arduino Nano 33 BLE Sense

Today, I am here with a new version of Arduino Nano – Arduino Nano 33 BLE Sense, Nano with BLE connectivity focussing on IOT, which is packed with a wide variety of sensors such as 9 axis Inertial Measurement Unit, pressure, light, and even gestures sensors and a microphone.

It is powered by Nina B306 module that support BLE as well as Bluetooth 5 connection. The inbuilt Bluetooth module consumes very low power and can be easily accessed using Arduino libraries. This makes it easier to program and enable wireless connectivity to any of your projects in no time.You won’t have to use external Bluetooth modules to add Bluetooth capability to your project. Save space and power.

Arduino BLE – Bluetooth Low Energy Introduction

BLE is a version of Bluetooth which is optimized for very low power consuming situations with very low data rate. We can even operate these devices using a coin cell for weeks or even months.

Arduino have a wonderful introduction to BLE but here in this post, I will give you a brief introduction for you to get started with BLE communication.

Basically, there are two types of devices when we consider a BLE communication block.

  • The Peripheral Device
  • The Central Device

Peripheral Device is like a Notice board, from where we can read data from various notices or pin new notices to the board. It posts data for all devices that needs this information.

Central Devices are like people who are reading notices from the notice board. Multiple users can read and get data from the notice board at the same time. Similarly multiple central devices can read data from the peripheral device at the same time.

The information that is given by the Peripheral devices are structured as Services. And These services are further divided into characteristics. Think of Services as different notices in the notice board and services as different paragraphs in each notice board.

If Accelerometer is a service, then their values X, Y and Z can be three characteristics.

Now let’s take a look at a simple Arduino BLE example.

Arduino BLE Example 1 – Battery Level Indicator

In this example, I will explain how you can read the level of a battery connected to pin A0 of an Arduino using a smartphone via BLE. This is the code here. This is pretty much the same as that of the example code for Battery Monitor with minor changes. I will explain it for you.

First you have to install the library ArduinoBLE from the library manager.

Find Complete Code and Explanation for Arduino BLE Battery Level Indicator here.

Design your own PCBs for your Project!

I used Altium designer to draw the circuit and design the PCB. It is a powerful tool that can be used to design and create our own PCBs for our project as well as complex and multi-layer PCBs for industrial use.

If you are a DIY Electronic enthusiast, I bet this is gonna be really useful for you guys. I have been using it for the past 3-4 years and let me tell you guys, this is amazing! You can download the Free Trial of Altium PCB Designer from here.

PCB Design Tutorial using Altium

Check out the below video to start designing your own PCBs in Minutes!

Read more

Credits

Jithin Sanal

Jithin Sanal

88 projects • 333 followersI am Interested in Arduino, Raspberry Pi, Ethical Hacking, Bash Scripting and Python programming. Follow ContactContact

Comments

Related channels and tags
  • Home Automation
  • Home Automation
  • Internet of Things
  • Internet of Things
  • Nordic Semiconductor
  • Robotics
  • Robotics
  • bluetooth
  • bluetooth low energy
  • home automation
  • internet of things
  • robotics

Tag » Arduino Nano 33 Ble Example Code