element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • 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
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • 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
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs Micro: Bit code club post 5: Compass and Radio systems
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ashutosh_pandey
  • Date Created: 15 Sep 2019 10:54 AM Date Created
  • Views 454 views
  • Likes 3 likes
  • Comments 0 comments
  • join the micro:bit summer code club challenge
  • summer code club challenge
  • micro bit
  • bbc micro bit
Related
Recommended

Micro: Bit code club post 5: Compass and Radio systems

ashutosh_pandey
ashutosh_pandey
15 Sep 2019

As a kid, I learnt how a compass worked. It was almost magical to a 7 year old me to see a suspended bar magnet reorient itself. Now that I get to teach the kids here how to code, they often surprise me with their creations. One student came forward with such an interesting project, that I decided it just had to be documented here.

 

The Compass and radio combination

The Micro:Bit board has an inbuilt compass that can tell the direction. The MakeCode editor makes it incredibly easy to use this compass, and Asmit of class 8 decided to take this a step further by combining the compass with the radio. The Micro:Bit board has built in radio courtesy its Nordic Semiconductor nRF51822 processor. He made a system of two Micro:bit devices that can communicate with each other and send their direction to each other. So if both the people are on a hike on a mountain trail and their directions match, the radio sends a tick mark. If their directions are different, it sends a cross. The user can also press A and B buttons together to send an SOS signal. Although it is true that the range of the Micro:Bit radio is much too short to be used on an actual hike, his product is based on sound principles.

 

Here's a copy of his code

image

 

Here's him and his friend showing how it works and giving a demo

The code itself is relatively simple, the different directions are denoted by the amount of rotation in degrees that the Micro:Bit undergoes.

 

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
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 © 2023 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube