Using the AT-09 BLE module with the Arduino

The AT-09 module

Introduction

Rear view of the AT-09 module

Connecting the Arduino with the module

? is our AT-09

Sending our first command from the Arduino to the module

  • Connect the TXD and RXD pins of the module to any pair of Arduino pins other than 1 and 2.
  • Ask the Arduino to convert that pair of pins into a serial interface.
  • Send AT commands to the module and receive their responses.
Connecting the AT-09 with the Arduino
We have an OK Huston !

Configuring the AT-09 as a BLE peripheral

  • Set the module as peripheral
  • Set the service UUID
  • Set the characteristic UUID
  • Set a nice name to the peripheral
  • Set the module as peripheral if not set yet: AT+ROLE0 where 0 is for peripheral and 1 is for central.
  • Set the service UUID: AT+UUIDuuid where uuid is the UUID of the service. It ranges from 0x0001~0xFFFE and defaults to 0xFFE0
  • Set the characteristic UUID: AT+CHARuuid where uuid is the UUID of the characteristic. It ranges from 0x0001~0xFFFE and defaults to 0xFFE1
  • Set a nice name to the peripheral: AT+NAMEnew_name where new_name is the new name that we want to set
  • Role: peripheral
  • Name: bluino
  • Service UUID: 0xFFE0
  • Characteristic UUID: 0xFFE1
  • AT+ROLE0
  • AT+UUID0xFFE0
  • AT+CHAR0xFFE1
  • AT+NAMEbluino
Configuration output
The name of the peripheral was changed after the configuration step
The UUIDs of the service and the characteristic

Reading the data on the AT-09’s characteristic

Writing data on the AT-09 characteristic

Application; sending temperature to the smartphone through BLE

Conclusion:

References:

--

--

--

Mobile app developer at Worldline, teacher and PhD. I love programming, videos games and manga. Trying hard to learn some Japanese.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How To Provision Infrastructure on AWS With Terraform

How to spin up a local MySQL database on MacOS

Is A.I. the Future of Content Writing?

What is Python?

Ordering Laravel middleware priority

Automatic scale-up (or down) for App Service Plans with Azure DevOps

Advance Url Navigation for Flutter Web

Easily add Bootstrap alerts to Laravel

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yassine Benabbas

Yassine Benabbas

Mobile app developer at Worldline, teacher and PhD. I love programming, videos games and manga. Trying hard to learn some Japanese.

More from Medium

Installing and Configuring Inertia.js with Vue3 on Laravel 9

How to build a CRUD App on Heroku with Php & Pdo & Github Deployment & ClearDB & MySQL Workbench

Back to Laravel Homestead from Sail / Docker

How to Solve Spatie/laravel-sitemap installation issue