博文

目前显示的是 一月, 2018的博文

Micro:bit Game: Flappy Bird

图片
Take flight and achieve your pipe dreams with your own version of the notoriously challenging Flappy Bird game, using nothing but a micro:bit (no extras needed) and some Python code. Made by Cheryl from Raffles Institution. Warning: heavy dosage of bird puns included. Goals We’re going to create a full-fledged interactive game on your 5x5 LED screen, playable for ages 9 days to 90 years old. In the process, you’ll learn how to: First step is to import the micro:bit library into Python. Then, let a ‘READY’ message scroll across the screen and initiate countdown that shows when the game starts. Line 1: This imports the micro:bit program. Line 4: This initiates the ‘READY’ message that scrolls across the screen. Double quotation marks indicate a string (in this case ‘READY’). Lines 5-10: This flashes each number on the screen for 1 second (or 1000 milliseconds, the measurement involved) by using the sleep() function. Line 11: clears the screen for us to draw the bird and walls la

Finger Dexterity Micro:bit Game

图片
Are your psychomotor skills as bad as mine? Goals We are going to create a game where the player must click on a key (on the ADKeypad) that corresponds to the column on which a random LED lights up (A for the first column and E for the last). The pace at which the LED lights up gets quicker and quicker as the game goes on. You’ll learn how to: use an  ADKeypad  with the  BBC micro:bit . use functions recursively. use while loops. improve your finger dexterity!   Materials and Pre-requisites 1 x  BBC micro:bit 1 x Micro USB cable 1 x F-F Jumper Wires 1 x  ADKeypad Or ElecFreaks Micro:bit Tinker Kit  (contains all components in the above.) You also need some experience about if-else statements, variables etc. Procedure Step 1 Plug in your ADkeypad to Pin0, making sure the positive lead is connected to the yellow signal pin and the negative lead is connected to the black ground pin on the breakout board. Step 2 In order for the ease of random

Bravo! Now We are A partners of Micro:bit Official!

图片
Today, I am going to tell you an exciting news: BBC Micro:bit Foundation has included us as one of their partners! You can read this page  http://microbit.org/resellers/  for more details. Since the establishment of micro:bit, we Elecfreaks always keep a close cooperative relationship with micro:bit foundation: First of all, we have developed more than 20 types of micro:bit related products like  octopus:bit , motor:bit , ring:bit , starter kit , Tinker kit  and so on. Except for these alreay on sale, we have about 10 new products under development. Now micro:bit series of products have become a hot product line for us. Secondly, we are actively promoting the chinese translation work of micro:bit official website. Currently, above 90% are done by our team members. In addition to the translation of the official website, we will also do some translation on the website of MakeCode. Thirdly, we are trying our best to help micro:bit foundation to do promotion around the world

Friday Product Post: Ring:bit Car, Acrylic Base Board and RGB Rainbow LED Bead

图片
Hello My dear friends! How is your micro:bit study going? I guess you might have already matered the basic programming skills now and feel itch to do some projects. Well, it's Friday again. Let's find something new for our next project! New Product 1:  Ring: bit Car — Mirco: bit Educational Smart Robot Kit for Kids Look! What a cute small elephant it is! This small car is made of micro:bit. With two  octopus hunt sensors  in the front, it can smell the odor of line and march on according to the direction of line. Inside the small elephant car, we have added a  ring:bit board  to lead out three GPIO ports, among which two GPIO are used for driving two servos and the other one is undefined. You can program for this car, or just change the shell by telling us to custom-made a shell of your favorite cartoon figures like a dear, a pig, a cat, and so on. Just move your hands to make one! New Product 2: Acrylic Base Board with Nylon Watch Bands for Power:bit With this cas

Spotlight from A Friend of Elecfreaks on 2018 BETT London

图片
Do you know Bett? Bett or The Bett Show (formerly known as the British Educational Training and Technology Show) is an annual trade show in the United Kingdom marketing information technology in education organised by Ascential. The first Bett show was held in London, England in 1985, and since 2013 it has been held annually in January at the ExCeL London.(From WIKIPEDIA). This year from Jan. 24 to Jan. 27, 2018, Bett is held in London again. Waris, one of my friends and also a member from Micro:bit Foundation, has visited to this show with some of our hottest products. Here's what he send back to us: Nice shoot! It is really attractive to see handsome faces! Next, he showed me some products he displayed on the show. Look! This is our IoT kit!It is beautifully placed on the stand. In the kit, there is a crystal acrylic house, a  wind speed sensor ,  temperature and humidity sensor ,  ESP8266 Serial Wifi Module ,  PM2.5/PM10 dust sensor ,  Analog Photocell , 

Micro:bit Game: Space Shooter

图片
Are you tired of complicated flashy modern games? Prefer to play your games on a 5 x 5 resolution rather than a 4k resolution? Have some arcade fun on your micro:bit with Space Shooter! This tutorial is in JavaScript. Typing! Many typing! This tutorial was contributed by Luke Tan from Raffles Institution. Step 0 – Pre Build Overview In this project, we will create a simple space shooter game where you have to try to shoot and avoid falling projectiles. Materials: 1 x  BBC micro:bit 1 x Micro USB cable 1 x  Breakout board 1 x  ADKeypad Goals Learn to use the ADKeyboard. Learn basic game programming. Learn more about programming with Javascript. Step 1 – Components First of all, plug in the ADKeypad. Ensure the colours match and take note of what pin you plug them into as it will be relevant later. Step 2 – Pre Coding We’ll need to add a package of code to be able to use our kit components. Click on Advanced in the Code drawer to see more code sections and look