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 & Tria 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
Bluetooth Unleashed Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Bluetooth Unleashed Design Challenge
  • More
  • Cancel
Bluetooth Unleashed Design Challenge
Blog Bluetooth Maze - The supporting actor - BBC Micro Bit
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: carmelito
  • Date Created: 31 May 2018 7:19 AM Date Created
  • Views 838 views
  • Likes 9 likes
  • Comments 3 comments
  • bluetooh
  • bbc microbit
  • bluefruit
  • bluetooth unleashed
  • bluetooth_maze
Related
Recommended

Bluetooth Maze - The supporting actor - BBC Micro Bit

carmelito
carmelito
31 May 2018

As part of project – Bluetooth Maze, I am using BBC Micro Bit as a supporting actor to the Beaglebone wireless which is my Hero board. In this blog post my intention is to test out a couple of features of the BBC Micro bit which I intend to use in my project. Basically, the BBC Micro bit is going to act as the controller, to control the Maze which I going to be sitting on/controlled by the Beaglebone Wireless and servo motors. The Micro bit will be sending magnetometer and accelerometer value to the Beaglebone via BLE. For now I am testing send the values from the Micro Bit to the with Adafruit’s Blefruit Connect App for iOS.

image

 

When I originally planned for the project, I intended to use Micro-Python with the Micro bit, but due the RAM limitation the BLE stack won’t fit on Micro bit 16k RAM image. Here is a exert from the  BBC micro:bit MicroPython documentation - http://microbit-micropython.readthedocs.io/en/latest/ble.html

While the BBC micro:bit has hardware capable of allowing the device to work as a Bluetooth Low Energy (BLE) device, it only has 16k of RAM. The BLE stack alone takes up 12k RAM which means there’s not enough room to run MicroPython.

 

Future versions of the device may come with 32k RAM which would be sufficient. However, until such time it’s highly unlikely MicroPython will support BLE.

 

So , this meant I had to go the Arduino route. Now since the microbit is not 'natively' supported by the Arduino IDE, I followed the awesome guide on the Adafruit Learning system to add board, by adding the following link to the preference - https://sandeepmistry.github.io/arduino-nRF5/package_nRF5_boards_index.json

 

And then in the Board Manager , search for nRF5 and install the "Nordic Semiconductor nRF5 Boards", now if you running a Debain based operating system and don’t want to deal with all the permission issues image , you will have to run the Arduino IDE as sudo, in my case I am running Ubuntu 16.04.

image

 

Next, download/add the following libraries to the Arduino IDE

  • Sparkfun’s Magnetometer library
  • akafugu MMA8653 accelerometer library.
  • BLE Peripheral library
  • Adafruit's Microbit library

 

And, once all the libraries are setup, install Adafruit's Bluefruit connect App iOS App store or the google play store, and then upload the BLE UART demo.  And then finally upload the BLE plotter demo.For more info check out the tutorial on Adafruit learning system at -https://learn.adafruit.com/use-micro-bit-with-arduino?view=all#bluetooth-uart , here is a screenshot of the Bluefruit App with the plotter demo running on the Microbit.

image

 

 

References

Adafruit Learning system for Micro Bit Arduino tutorial - https://learn.adafruit.com/use-micro-bit-with-arduino?view=all

Micro Python using Micro Bit - http://microbit-micropython.readthedocs.io

Micro Bit features - http://microbit.org/guide/features/

  • Sign in to reply

Top Comments

  • genebren
    genebren over 7 years ago +2
    Nice update on your design challenge project. It is a shame the the Micro Bit did not have enough memory to fit in all the pieces that you needed, but it seems as if you found a suitable workaround. I…
  • DAB
    DAB over 7 years ago +2
    Nice update. DAB
  • aspork42
    aspork42 over 7 years ago +2
    that looks like fun to play with
  • aspork42
    aspork42 over 7 years ago

    that looks like fun to play with image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 7 years ago

    Nice update.

     

    DAB

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • genebren
    genebren over 7 years ago

    Nice update on your design challenge project. It is a shame the the Micro Bit did not have enough memory to fit in all the pieces that you needed, but it seems as if you found a suitable workaround.  I look forward to your updates as to proceed with your project.

     

    Thanks,

    Gene

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
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