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
STEM Academy
  • Learn
  • Learning Center
  • STEM Academy
  • More
  • Cancel
STEM Academy
Blog Treasure Hunt with MicroBit - Radio
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join STEM Academy to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mikedavis
  • Date Created: 2 May 2018 3:23 PM Date Created
  • Views 989 views
  • Likes 4 likes
  • Comments 1 comment
  • education
  • microbit
  • bbc microbit
  • stem education
  • microbit bbc
Related
Recommended

Treasure Hunt with MicroBit - Radio

mikedavis
mikedavis
2 May 2018

This is a Treasure Hunt game that is designed to teach students how to use the Radio functions of the MicroBit, with one Bit sending a signal, and the other receiving it.  Before making anything, I try to come up with an 'I Want' statement, and I try to make it specific.  If it is clear, its makes it easy to create the program.

 

Treasure Hunt

 

Description: The Treasure Hunt game consists of two groups.  One group is a set of treasure hunters, the other is a group of treasure hiders.  The treasure hiders will hide a treasure somewhere, and will then post a series of MicroBits as sign posts.  The treasure hunters will approach a signpost signal it for information. When it is received, they will proceed to the next sign post.  The game is over when the treasure hunters find the treasure.

 

Treasure Hunters:  The treasure hunters have Microbits that can signal a Sign Post for directions.  They will press a button, and see what the signpost tells them.

 

I want: The MicroBit will be in a rest state, and it will be on a radio channel.  When the ‘A’ button is pressed it will send a variable. The SignPost will receive the variable, and display the direction and number of paces.  Then it will go back to a rest state.

 

Code for Treasure Hunters:

image







Sign Post: The sign posts are meant to be little stations that will let the treasure seeker know how far, and in what direction they should go to find the next signpost or the treasure. 

 

I want:  The MicroBit will be in a rest state, and it will be listening on a radio channel.  When it receives a variable, it will show an arrow pointing in some direction. Then it will pause for three seconds, and display the number of paces to the next signpost or treasure.  It will pause for three seconds, and then go back to a ‘rest’ state, where a diamond is shown.

 

Block Code for a Sign Post

image

 

  • Sign in to reply
  • neilk
    neilk over 7 years ago

    Great idea. Do you have it working?

     

    Neil

    • Cancel
    • Vote Up 0 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