element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Design For A Cause 2021
  • Challenges & Projects
  • Design Challenges
  • Design For A Cause 2021
  • More
  • Cancel
Design For A Cause 2021
Blog Smart Exhibit: Blog #6: BLE connection
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: alexandru.cohal
  • Date Created: 25 May 2021 10:13 PM Date Created
  • Views 568 views
  • Likes 3 likes
  • Comments 0 comments
  • ble
  • smart exhibit
  • bluetooth low energy
  • design for a cause
Related
Recommended

Smart Exhibit: Blog #6: BLE connection

alexandru.cohal
alexandru.cohal
25 May 2021

Hello! image

 

Here are my latest updates:

  • I tested the Bluetooth Low Energy (BLE) connection between the Arduino Nano 33 IoT board and an Android smartphone. Using the ArduinoBLE library, I created a Sanity Check program. In this program, the Arduino Nano 33 IoT board acts as a Peripheral device and the Android smartphone as a Central device. The Arduino defines a service with a String type characteristic. This String characteristic is an undocumented but available part of the ArduinoBLE library (check the GitHub repository of the library and this example). The characteristic is readable and can provide notifications when the values are changed. The content of the this characteristic is changed between 2 predefined messages every 10 seconds. The size of the String characteristic is set to 512 bytes but the notification payload can handle only 20 bytes of payload. So, when the notification mechanism is enabled on the smartphone, the received message is truncated if it is too long. For reading the full message, the classic reading should be triggered.
  • I created the BLE connection module for the SmartExhibit project which you can see in action in the screenshots below image. This connection is used for providing a better interaction between the public and the exhibits of the museum.
    • When a visitor connects via BLE to the exhibit using an app like LightBlue, different facts are sent every 10 seconds using a readable characteristic.
      • This is how the provided facts look like. Every 10 seconds a new fact is available. As it can be seen, even if the Read button is pressed multiple times within the same 10 seconds interval, the same fact will be provided.
      • image
    • Using a different characteristic, questions can be asked to the exhibit by the visitors. If the questions are one of the standard ones, to which the exhibit "knows" how to answer image, then a reply will be provided. Otherwise, the exhibit will let the visitor know that it doesn't know the answer.
      • This is how the discussion with the painting "The Scream" by Edvard Munch can look like image. Questions are asked in a short form (in the bottom part) (e.g. name, author, age) and the answers are provided (in the top part).
      • image
    • The facts, questions and answers are defined in a header file. Thus, the scalability is very simple because the code remains the same, only the header is needed to be changed for each exhibit of the museum.
    • The User Interface of this app is not the most attractive but a separate app can be created for the museum in order to have an even better interaction with the public image
  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube