What is your age in binary? I am 12. 12 is a decimal number Use this table to convert a decimal number into a binary number. To make 12 I need to add 8.

Slides:



Advertisements
Similar presentations
Building a Pressure/Temperature Weather Station (Sensor Pack) AEM 1905, Fall 2008.
Advertisements

Assignment 4 Sample problems. Convert the following decimal numbers to binary
Binary numbers. 1 Humans count using decimal numbers (base 10) We use 10 units: 0, 1, 2, 3, 4, 5, 6, 7, 8 and (5.
Decimal Review ,00010,0001, Decimal ~ Base 10 number system 10 different numbers: 0, 1, 2, 3, 4, 5, 6, 7, 8,
ENGR 1181 First-Year Engineering Program College of Engineering Engineering Education Innovation Center First-Year Engineering Program Solar Energy Meter.
IMU Guidance Servoblaster Code for the IMU Going mobile.
Lesson 4-7 Example Example 1 Find 4.32 × Multiply the factors, ignoring the decimal points for now. 432 × 6 = 2592.
Addition and Substraction
Welcome to Week 4 at the Summer Computer Club Raspberry Pi (contd)
INTERNET OF EVERYTHING SDU 2016 Week 4. Simple Digital and Analog Inputs  The Arduino’s ability to sense digital and analog inputs allows it to respond.
BBC MICRO:BIT Lesson 6 Networking. Digital devices can be networked together to exchange data. You are going to create a very simple network using two.
Bbc microbit Lesson 3 – Temperature hot medium.
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
Add and Subtract Negative Numbers
Electromagnetic Motors
Binary Positional Notation
Starter Activity Instructions: Complete the starter sheet Planner
COUNTING IN BINARY Binary weightings 0 x x x x 8
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Display Cards Display Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Display Cards Display Cards
Display Cards Display Cards
Display Cards Display Cards
Music Cards Music Cards
Music Cards Music Cards
Raspberry Pi: External Inputs & Outputs
Music Cards Music Cards
BBC Microbit.
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
Music Cards Music Cards
Lesson 4 Accelerometer.
Music Cards Music Cards
BBC Microbit.
BBC Microbit.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Music Cards Music Cards
Music Cards Music Cards
Hundreds board counting
Display Cards Display Cards
Objective - To add and subtract decimals.
Binary  Name: Class: .
Operations on Functions
Display Cards Display Cards
COUNTING IN BINARY Binary weightings 0 x x x x 8
Music Cards Music Cards
Display Cards Display Cards
Display Cards Display Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
BBC Microbit.
Music Cards Music Cards
Science - Year 3/4B Summer 2 Electric Personalities
Display Cards Display Cards
Display Cards Display Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Makey Makey!.
Addition & Subtraction Addition & Subtraction
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Music Cards Music Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Task 1 You are going to use the Makey Makey arrow inputs to create a joystick / games controller. Step 1: Connect Makey.
Music Cards Music Cards
Display Cards Display Cards
Display Cards Display Cards
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
I/O Experiments Assignment 1.
Music Cards Music Cards
2019 Investing Now Summer Program
Presentation transcript:

What is your age in binary? I am is a decimal number Use this table to convert a decimal number into a binary number. To make 12 I need to add 8 and 4. Put a 1 under these numbers. Put a 0 under the numbers that are not needed 8421 In binary I am 1100 Can you work out your own age in binary?

Can you make your micro:bit count up to 7 in binary? Gnd3V 210 Show the number in decimal on here. Press one of these to make it count up from 0 to Write the number in binary on the pins

If Button is pressed: Increment variable “decimal” by 1 Output Decimal Assign variable “binary” to same value as “decimal” if “binary” >= 4 Make pin0 High Subtract 4 from “binary” else Make pin0 Low if “binary” >= 2 Make pin1 High Subtract 2 from “binary” else Make pin1 Low if “binary” = 1 Make pin2 High else Make pin2 Low

Can you make your micro:bit talk to a Raspberry Pi over the GPIO pins?

Make some GPIO connector wires You will need Male to Female jumpers Paperclips Tin foil Sticky Tape

Put the paperclip, tin foil and male end of the jumper together. Make sure the two loops of the paperclip are pointing outwards.

Wrap it all up tightly with the tinfoil.

Wrap the tinfoil up with sticky tape. Make sure you leave the paperclip clear.

Connect the wires to Gnd, pin0, pin1, pin2. Use a bit more sticky tape to secure them in place. Connect the other ends of the jumpers to the Raspberry Pi GPIO pins. Micro:bit gnd pin Micro:bit pin0 Micro:bit pin1 Micro:bit pin2

Can you program Scratch so that the cat says in decimal the binary number sent from the micro:bit?

Can you give the raspberry pi robot more senses using the micro:bit? How can you get all that data across those 3 wires? DISCUSS Forwards Backwards Left Right Temperature Light Level Compass Heading Buttons pushed Tilt Shake