Micro:bit.

Slides:



Advertisements
Similar presentations
Computer Case Houses computer components Provides physical, environmental and electrostatic protection Source for the following: wikipedia.org-Personal_computer_hardwarewikipedia.org-Personal_computer_hardware.
Advertisements

Cas Craven Nick Paine Glen Rhodes Lev Shuhatovich Joe Zugelter A little black box for your motorcycle.
In this presentation you will:
Travis Reed Todd Hummel Kwan-Truc. Concept USB 1.1 SPI b.
R3R3 Ethan Hall Michael Kelton Greg Wegman Vashisht Lakhmani.
 Main Components:  Sensors  Micro controller  Motor drivers  Chasis.
Parts of a Computer.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
COMPONENTS OF THE SYSTEM UNIT
Silicon Labs ToolStick Development Platform
VEX Robotics Platform and ROBOTC Software
TRANSMILLE PATs The New Alternative To Fast, Easy & Efficient Portable Appliance Testing.
 Chasis / System cabinet  A plastic enclosure that contains most of the components of a computer (usually excluding the display, keyboard and mouse)
Flash Cards Computer Technology.
Administrative Introduction Our goals for this project is for the two robots to work together intelligently using wireless communication Not only did.
RC CAR CONTROLLER BASED ON INTEL GALILEO SOC PLATFORM Nadav Shiloach Sagi Sabag Supervisor: Idan Shmuel Spring 2014 One Semester Project PROJECT’S ENDING.
… but what parts does it have and how do they work? A computer looks like this...
Dan Chambers, Josh Marchi, Jeff King, Paul Rosenberger.
Typical Microcontroller Purposes
Components of a typical full-featured microcontroller.
HOME SECURITY USING WIRELESS SENSOR NETWORK UNDER THE ESTEEMED GUIDANCE OF: P.RAMESH D.SIVOM( ) KANMANI RAVI( ) B.SAI RAJSEKHAR( )
1. PIC ADC  PIC18F877 has 8 analog input channels i.e. port A pins(RA0 to RA5) and port E pins(RE1 and RE2). These pins are used as Analog input pins.
1 Introduction  What is an Embedded System?  Application-specific computer system  Built into a larger system  Why add a computer to the larger system?
Arduino based Automatic Temperature Controlled Fan Speed Regulator.
Computer Hardware Introduction What’s inside that box?
Lecture # 36 Computer Architecture and Organization.
Case Study #1 Microcontroller System. What is a microcontroller? A microcontroller can be considered a self-contained system with a processor, memory.
Arduino.
Introduction to LEGO Mindstorms EV3 What is in the box?
Voice Controlled Robot by Cell Phone with Android App
Lecture 2. A Computer System for Labs
PICK N PLACE ROBOTIC ARM AND MOVEMENT CONTROLLED BY ANDROID WIRELESSLY
Computer Information Systems
Smart Parking Application
Obstacle avoiding robot { pixel }
Arduino Based Industrial appliances control system by decoding dual tone multi frequency signals on GSM / CDMA network. Submitted by:
ARDUINO BASED AUTOMATIC TEMPERATURE BASED FAN SPEED CONTROLLER
Atoll Solutions PVT LTD
An Introduction to Computers and Visual Basic
Arduino Development for Beginners
UNIT – Microcontroller.
DSC - fundamente MPU MCU DSP DSC Alternative Freescale
Discovering Computers 2011: Living in a Digital World Chapter 4
Technology Literacy Hardware.
DIGITAL CALCULATOR USING 8051
ARDUINO LINE FOLLOWER ROBOT
HM30 Product Introduction
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
ECE 477 Group 11 RevGeo Multipurpose Puzzle Box
‘SONAR’ using Arduino & ultrasonic distance sensor
An Introduction to Computers and Visual Basic
Computer Case Houses computer components
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Programming Boe-Bots (Part 1)
Introduction to the Orbit Edu Board
Understand Information Technology activities and careers.
Introduction to Microprocessors and Microcontrollers
Journey: Introduction to Embedded Systems
PICK N PLACE ROBOTIC ARM AND MOVEMENT CONTROLLED BY ANDROID WIRELESSLY
4.03 IT PowerPoint Objective 4.03—Understand Information Technology activities and careers.
CSCI1600: Embedded and Real Time Software
Getting Started with Physical Computing
An Introduction to Computers and Visual Basic
Manual Robotics ..
4.03 IT PowerPoint Objective 4.03—Understand Information Technology activities and careers.
Stem Discovery Week at Kareas High School in Greece
CSCI1600: Embedded and Real Time Software
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Introduction to Arduinos
I/O Experiments Assignment 1.
Presentation transcript:

micro:bit

Features The micro:bit board, an ARM-based development board It is a very easy to use and includes a lot of peripherals No need for soldering or use of external hardware to get started with The processor is an nRF51 It has 16 KB of RAM and 256 KB of FLASH

Features The micro:bit has 19 GPIOs available as assignable. Up to 3 can be assigned as PWM pins and 6 as analog inputs. The ADC of the processor has a resolution of 10 bits The GPIOs also have support for I2C, SPI and Serial communication interfaces The board has a Freescale MKL26Z128VFM4 microcontroller, which is responsible for handling the USB connection between the micro:bit board and a computer, and also for the flashing of new code. The micro:bit board is detected as a USB disk when connected to our computer

Digital / Analog

Features The micro:bit board has several peripherals on board (I2C) It has a Freescale MMA8653FC, a 3-axis accelerometer with a resolution of 10 bits. It also has an on board Freescale MAG3110 magnetometer, which allows to get magnetic field strength measurements (I2C) The nRF51 processor has an integrated temperature sensor with a resolution of, 0.25°C and an accuracy of +-4°C. The board has 2 two buttons for user input. There is an additional button that allows to reset the system. The micro:bit board also has a 5×5 LED matrix for display purposes The micro:bit board has a 2.4 GHz transceiver, which allows it to support Bluetooth low energy to establish communication with other devices Besides Bluetooth, the radio of the board also allows the use of the Nordic Gazell protocol, which is a proprietary protocol that allows communication between devices that support it. This protocol operates on the 2.4 GHz, like Bluetooth.

Programming environments The micro:bit has many development environments available, some of them designed to make it easy for beginners to get started, as Microsoft’s MakeCode This editor offers the possibility of simulating the code execution very easily. A model of the micro:bit board is located at the left side of the code editing window and by the click of a button testing starts In terms of higher level languages, the micro:bit can be programmed in Java, Python or C

MakeCode https://www.dfrobot.com/product-1587.html https://makecode.microbit.org/ https://makecode.microbit.org/offline https://makecode.microbit.org/projects/

The micro:bit - a reactive system There are different types of computing systems, to address different kinds of problems that arise in practice: transaction processing systems are used by banks to handle huge numbers of financial transactions by their customers; distributed systems make a set of networked computers appear as one big computer (like Google’s search engine); there are also parallel systems, such as graphic cards, which perform a huge number of primitive operations simultaneously, using a great number of small processing cores. The micro:bit is a reactive system – it reacts continuously to external events, such as a person pressing the A button of the micro:bit or shaking the device. The reaction to an event may be to perform a computation, update variables, and change the display. After the device reacts to an event, it is ready to react to the next one. If this sounds like a computer game, that’s because most computer games are reactive systems too!

The micro:bit - a reactive system A responsive system is able to do several things at the same time. As the micro:bit only has one CPU it can only execute one program instruction at a time. The micro:bit can execute millions of instructions per second, so it is possible for the device to alternate among instruction sequences of different programs. Let’s think about three sequences of instructions: Sequence S1: contains the instructions (let’s say several hundred thousand or so) that scroll the number 42 across the LED screen. Sequence S2: contains a few instructions to check if button A is pressed. Sequence S3: contains a few instructions to increment a counter. The micro:bit interrupts the execution of sequence S1 periodically to execute the sequence S2, which will check if button A is pressed, which looks like:

The micro:bit - a reactive system The result is that it takes sequence S1 a little longer to complete, due to the interruptions to execute sequence S2, but we are checking often enough to detect a press of button A . When S2 detects a press of button A, then the sequence S3 can be executed before S1 resumes:

Examples Go to https://makecode.microbit.org/projects/ Program examples Flashing Heart Name Tag Rock Paper Scissors Mood Radio Fireflies Go to https://www.dfrobot.com/product-1587.html Program Microbit Project 13:

Maqueen

Maqueen

Maqueen Supply Voltage: 3.5V-5V DC ( Three AAA batteries or 3.6V~3.7V lithium battery ) Infrared Grayscale Sensor(High-low level) x 2 Buzzer x 1 Infrared Receiver (NEC decoder) x 1 LED Lights (High-low level control) x 2 RGB Ambient Light (16 million colors) x 4 SR04, SR04P Ultrasonic Interface(5V) x 1 IIC Interface (3.3V) x 1

Maqueen Gravity Extension Interfaces (P1, P2) x 2 N20 All-metal Gear Motor x 2 Motor Reduction Ratio: 1:150 Maximum Rotate Speed: 133 rpm Motor Drive Mode: PWM motor drive Bracket and Protective Cover Extension M3 Screw Hole x 6 Programming Method: Makecode graphical programming, Mind graphical programming (based on Scratch 3.0) Dimension: 81mm x 85 mm x 44mm/3.19 x 3.35 x 1.73in Weight: 75.55g

Maqueen Go to https://wiki.dfrobot.com/micro:Maqueen_for_micro:bit_SKU:ROB01 48-E(ROB0148) Import the Makecode Graphical Library

Continuation Activities Download the “Terminal” at https://sites.google.com/site/terminalbpp/ Practice the “Serial” commands Use the online help or visit https://makecode.microbit.org/reference/serial Practice the “Text” commands Use the online help or visit https://makecode.microbit.org/reference/text For the sensors “Temperature,” “Acceleration,” and “Compass,” write programs that send the read values to the computer. Try to make the sensor values change; consider using “pause.” For the Acceleration, what is the meaning of the negative values? For the Compass, is there any difference in the readings when the micro:bit is horizontal, compared to when it is vertical?

Continuation Activities This program requires the text terminated with CR+LF. On terminal v1.93 you do this as indicated in the figures below. Check both boxes.

Continuation Activities For the Maqueen Write a program that measure distance and send to the screen Study the object avoidance example Study the line-following example, write your own version.

Continuation Activities This program reads the distance from the ultrasonic sensor and sends the value to the UART

Sending Text Over Bluetooth

Sending Text Over Bluetooth This functions receives “text”, a text argument If the length of text exceeds the Bluetooth capacity, an “X” is shown, and the program gets locked Else “text” is sent over Bluetooth

Sending Text Over Bluetooth This function rounds a number to two decimal places The result is stored in “roundResult” as text, there is not any function to round decimal paces in MakeCode.

Sending Text Over Bluetooth This program calculates the square root of a sequence of numbers “on start” initializes Bluetooth and the first number to obtain the square root Show index is used to provide feedback to the user