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
microbit
  • Learn
  • Learning Center
  • STEM Academy
  • microbit
  • More
  • Cancel
microbit
micro:bit Blog Micro:Bit Number Guessing Game / Binary Search
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join microbit to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: dasoussan
  • Date Created: 20 Nov 2018 5:26 PM Date Created
  • Views 1354 views
  • Likes 4 likes
  • Comments 4 comments
  • micro:bit education giveaway
Related
Recommended

Micro:Bit Number Guessing Game / Binary Search

dasoussan
dasoussan
20 Nov 2018

I'm one of two volunteer teachers at a nearby Detroit high school and won one of the classroom packs. The Teals idea is to get teachers able to teach CS independently by pairing them up with industry professionals until they can teach CS on their own. This is the 2nd year for the program here in Michigan and this year most of the students are sophomores or juniors with a couple of seniors. Many have never coded before.

 

The TealsK12 curriculum has them coding in Snap! which is a graphic language that runs in the browser much like the micro:bit environment does.

 

That background aside, I wanted to teach at least one “real” computer science type algorithm and the Micro:Bit has become both the platform we will do it on as well as a practical demonstration on how programmers are often required to switch to new languages, environments, platforms, etc. but the base concepts are the same no matter which world you are in.

 

The students should already be familiar with and able to use variables, conditional statements, loops, the basics of input / output and the concept of an algorithm before introducing this lab.

 

We are close to that point now but I’m afraid we won’t be able to do this lab before the deadline given the holiday break.

 

So here is the binary search lab / game submitted for your use / approval! I included a sample solution in script, graphic, text suitable for copy / pasting, as well as a link to the project itself shared for the instructor to reference.

 

If there are any questions, please feel free to email me.

 

Regards,

David Soussan

Attachments:
imageMicroBitIntroCSSyllabusAndBinarySearchLab.docx
  • Sign in to reply
Parents
  • dasoussan
    dasoussan over 7 years ago

    Today a few students had their code working in the simulator and they pushed them to the Micro:Bits!

     

    image

     

    image

     

    image

     

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • dasoussan
    dasoussan over 7 years ago

    Today a few students had their code working in the simulator and they pushed them to the Micro:Bits!

     

    image

     

    image

     

    image

     

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
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