Coder Social home page Coder Social logo

mbms's Introduction

micro:bit for the Mad Scientist

Code for my book "micro:bit for the Mad Scientist"

Some of the programs in this book get pretty long and complex, and typing them in is not something that the Mad Scientist in you is likely to be keen to do.

All the Block code is published on the makecode website and shared by a short URL that will open your own copy of the Block code project in your browser. Here are the short URLs for the book's projects and experiments. Just click on them to open the project. Once the project is open, you can click on Download to create the HEX file that then needs to be dragged onto your micro:bit. If you feel like editing the Block code to try your own ideas out, then click on the Edit button.

Projects

Chapter 2

Musical Doorbell

Shout-O-Meter

Chapter 3

Automatic Night-Light

Light Guitar

Magic Mirror

Chapter 4

Compass

Magnetic Alarm

Chapter 5

Toothbrushing Monitor

Acceleration Display

Chapter 6 and 7 don't have any Blocks code

Chapter 8

Lie Detector

Chapter 9

Plant Waterer

Chapter 10

Wireless Doorbell

Rover

Rover Controller

Experiments

Chapter 2

Experiment 1: Generating Sounds

There is no block code for Experiment 2

Chapter 3

Experiment 3: Sensing Light

Chapter 4

Experiment 4: Magnetic Fields

[Link for Google Sheet spreadsheet for Experiment 4)(https://docs.google.com/spreadsheets/d/1qSybk116Zv5qyFtHL0l5jVkicrFcodrefVTEGUbmIYk/edit?usp=sharing)

Chapter 5

Experiment 5: Gestures

There is no block code for Experiments 6 and 7

Chapter 6

Experiment 8: Servomotors

There is no block code for experiments 7 to 12.

Chapter 10

Experiment 12: Radio Range

Cloning and Downloading

If you are an expert developer, used to using git, then you can clone the entire project into your computer. However, if you just want to get the Python code, you can download it as a ZIP file. To do this, click on the green Clone or download button and select Download ZIP.

Copying the Downloaded MicroPython Files

Find the ZIP file (mbms-master.zip) in your downloads area and then extract all the files from it. This will create a directory called 'mbms-master'. Within this directory you will find another directory called 'python' and within this, you will find all of the MicroPython programs for the book as a separate file, each with the extension .py.

Unfortunately Mu is not associated with the file type of .py, so to make it super easy to find the programs for the book when using Mu, I suggest that you copy all the MicroPython programs from the download into the directory where Mu normally expects to find its programs. By default this is a directory called mu_code within your home directory.

Other Downloads

You may also have noticed that there is a directory here called 'other downloads'. This directory contains other files for projects, such as drawing templates.

mbms's People

Contributors

simonmonk avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.