GithubHelp home page GithubHelp logo

cobooguo / arduino-ble-gadget Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sensirion/arduino-ble-gadget

0.0 1.0 0.0 9.72 MB

Create your own Do-It-Yourself BLE enabled sensor gadget on the ESP32 platform.

License: BSD 3-Clause "New" or "Revised" License

C++ 100.00%

arduino-ble-gadget's Introduction

Sensirion Gadget BLE Lib

This library enables you to create your own Do-It-Yourself BLE enabled sensor gadget on the ESP32 platform.

Key features are

  • Live sensor value broadcasting without requiring a BLE connection
  • Simultaneous monitoring of sensor data from multiple BLE clients
  • Sensirion MyAmbience CO2 App compatibility - allows you to monitor your gadgets, plot the sensor values and share/export the data.
  • Buffering of sensor data for later download (sensor history download)

Please see the examples provided as reference on how to use this library.

Important points to keep in mind:

  • writeXX writes the corresponding sensor values to the library. But the values are not published to the BLE stack until commit has been called
  • Keep the loop delay at 3ms, to allow the library to provide history data to the smart phone applications and other BLE clients nearby. Increasing this delay will slow down the download process.
  • To allow history data downloads, you need to have the handleEvents function within the loop.

Recommended Hardware

This project was developed and tested on Espressif ESP32 DevKitC hardware (see e.g. ESP32-DevKitC-32D)

Mobile App Support

Download the Sensirion MyAmbience CO2 App to monitor your gadget, plot the sensor values and share/export the data:

Getting Started

  1. Download Arduino IDE and setup the environment for ESP32 platform
  2. Connect your ESP32 DevKit to your computer and launch the Arduino IDE
  3. In the Arduino IDE, make sure you have the ESP32 Dev Module selected and the PSRAM Disabled
  4. Download the library's release zip and unpack it into your Arduino's library path.
  5. Select File -> Examples -> Sensirion Gadget BLE Lib -> Example 1
  6. Click the upload button

Create your own CO2 Monitor

Follow the instructions in this tutorial.

Repository Contents

  • /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
  • /src - Source files for the library (.cpp, .h).
  • library.properties - General library properties for the Arduino package manager.

License

See LICENSE.

arduino-ble-gadget's People

Contributors

mbjoern avatar rnestler avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.