eBook

www.microbit.org

BBC micro:bit


 FREE DOWNLOAD  eBook  size: 32 MB

 FREE DOWNLOAD examples  size: 6 MB

Ver. 1.0 / 2017        eBooks only for WINDOWS!

Nr.17                 (no further obligation!)

BUY

In this eBook (61 pages) the programming of the BBC micro: bit is explained step by step. The basics of the programming are explained on the basis of many films with the simulator and on the real hardware.
 
BBC micro:bit
In the first example, the classic "Hello world!" is programmed. We will show you all the steps you need to install the software, programming, simulating, downloading and starting the program.

In the second chapter, we show how to transmit measured values ​​from the temperature sensor via the serial interface (USB cable). We explain what an INT-variable is and how to handle text.

BBC micro:bit

In the following chapter, you will get experience with some loops and logic during programming on an example like mean value calculation or how to program a compass with a display on the 5*5 LED-matrix.

How do we react in the program to the keys A and B. We build a cube with random number by pressing the A key. We will use almost all sensors (acceleration, compass, temperature, etc.).

The pins at the edge of micro: bit (0 1 2 etc.) we will also treat and show how to read and write a digital signal. How to measure analog voltages with A/D-converters and output them via PWM-signal. With music and Bluetooth wireless transmission to a smartphone, we finish the eBook.

Content


START
  This eBook
  Software for eBook
  Copyright

----  What is BBC micro:bit? ------------------------
Introduction
What does the board do?
Programming languages
Simulator

---- The first programme -----------------------------
Step (1) => Development environment
Step (2) => Programming languages
Step (3) => Editor
Step (4) => Write program
Step (5) => Save, compile and upload to hardware
What does a compiler do?
Step (6) => Test on hardware
Step (7) => Project and JavaScript
Save program

---- Variables and serial interface ------------
What is a variable?
A counter (eBookaktiv_02.hex)
Program sequence step by step
A counter as JavaScript
A counter and serial interface simulator
How fast is a program?
Serial interface on laptop
Measuring temperature and INT variable
Char or text
CR (carige return)
Join char
Text

---- Loops, Logic and LED ------------------------
Introduction
while-loop
repeat-loop
IF query and compass
Calibrate compass
LED brightness
Touch Switch

---- Event control ----------------------------
Press button A
Press button A or B and A + B
Dice and random numbers
Cube shaken on BBC micro:bit
Touch-Switch
Touch-Switch

---- Peripherie ---------------------------------------
The Microcontroller
GPIO Pins
Digital Input Simulator
Digital Input on Board
Analog Input Simulation
10 Bit A/D-Converter
10 Bit A/D-Converter
What do we measure at the 3V pin?
Digital Output
Analog Output
PWM Signal

---- Music ---------------------------------------
Speaker
play music
Playing a note
Playing multiple notes

---- Bluetooth ---------------------------------
BBC micro:bit exchange data with radio
Bluetooth Basics
Bluetooth Package install
Bluetooth Program on micro:bit
Microbit App Install on Smartphone
Pairing micro:bit with Smartphone

THE END






 


email@ebookaktiv.de


2003-2020
 
ebooksmechatronic.com

Last Update: 04.04.2020


5 Euro

------------------
eBooks      prices
-----------------

  1     5,0€
  3   10,0€

  6   15,0€
  9   20,0€

ALL download
30,0€
-----------------

BBC

microbit

micro:bit

JavaScript

PXT

ARDUINO

UNO

Mikrocontroller

Simulink

MATLAB

Sketch

Board

Elektronik

Sensor

Motor

A/D-Wandler

Interrupt

Timer

RTOS