2018年3月21日星期三

Ring:bit Car

New Ring:bit Car! Do you like it? Come and contact us for more latest news and price.

2018年3月19日星期一

My First Program about BBC Micro:bit and Constallation

Do you like constallations or zodiac signs?
Most people like constallations very much. They like to keep track of every update news or posts about constallations, especially their own constallations. It provide a good path for them to know themselves better, including their characters, tempers and fortune. Reading articles about constallations can release them from busy work and get some guidance for their lives. Although astrology can be called a kind of superstition and mostly is not true, I like constallation too. It is very interesting.

12 Constallations/Zodiac Signs
Today I am going to show my first program that I made with BBC micro:bit. Actually I am not a technician nor someone who has a technique background. I am just a starter, a young green-hand in programming study. You might wonder how I make it. With BBC micro:bit, program becomes much easier. In the following, I am going to make zodiac signs displayed on micro:bit screen. Want to see how I make it? Let's just take a look!
Firstly, I have gethered a piece of micro:bit and a USB cable, which are borrowed from one of my friends. I connect micro:bit to my computer with USB cable. Quite easy to be done!
Then, I search for MakeCode on my website browser and open it. You can see there are many options on the code drawer. I choose show leds from Basic and place it under the forever block in the code editor area.
I click on the blue dots on the block show leds and make it become red to form the sign of aries.
Next, I continue to make two more signs for tauros and gemini.
The left program viewer starts to flash the three signs I made just now. Their flash speed is too fast. I want to slow down a little bit. So I look into the code drawer of Basic again and find the block pause(ms).
I add this block beneath the sign aries and tauros. The flash speed become much slower.
I modify the default pause value 100 to 5 and make the speed not too fast nor too slow.
Till this tep, my program is done. Next, I have to save my program into micro:bit.
Click download in the left bottom area of MakeCode page, then store the program into MICRO:BIT.

After several minutes, we can see these signs starts to flash on micro:bit screen. Quite amazing, right?


Here I have made three more signs for your reference.

Libra

Sagitarius

Scorpio
This little program is quite simple. You can also do it too. Just have a try, you can make it!

https://www.elecfreaks.com/12751.html

Micro:bit and Constallation

Micro:bit and Constallation

Micro:bit and Constallation

2018年3月14日星期三

Elecfreaks Bring BBC Micro:bit into A Primary School

Last week, our team member Song and Tyler had paid a visit to a primary school in Nanshan Shenzhen. Guess what they bring? A BBC micro:bit lesson! Now let's take a view of their lesson and see what they teach.
Some teaching aids for presentation, including bbc micro:bitring:bit carmicro:bit watch band and a book.
Class began, Song introduced himself first and then took out a piece of micro:bit. He successfully drew students' attention. All students listened very carefully.
A small game for students to create their first programs in their lives. This game is really simple! Just display your names on micro:bit. You can do it too!
A video showing students what can we do with this small board as well as some amazing creations. All students watched this video very carefully.
Students showed great interest in micro:bit artworks. Some even discussed about to create their own devices one day. Tyler walked into students' groups to help them create their own program.

More Elecfreaks micro:bit artwork show. Isn't it very cool?
Most students in the class had never get their hands on micro:bit. After Song introduced micro:bit to them, they showed great interests in this small board and would like to go on study program. Song and Tyler's class was very successful.
Since the year of 2017, Elecfreaks has always devoted to the promotion of micro:bit. Except for constant publishing various suitable kits for micro:bit, this year we are trying to enter into domestic maker education market. Now we have cooperated with Shenzhen Primary School, which is the first trial to promote micro:bit off-line education in China. It is meaningful! In the future, Elecfreaks will further participate in promoting micro:bit and K12 & STEAM education.
A change has silently started in the field of education. Programming skills will be vital for many future jobs. We believe so and would like to witness future changes with you.

2018年3月13日星期二

Make a Caterpillar Car with Elecfreaks Motor:bit

 

This car is built by our friend Ramin Sangesari. He has made a cool smart car with our micro:bit, motor:bit, power:bit and metal gearmotor. Now let's take a look of his car!

 Components

Introduction

The Micro:bit is an ARM-based embedded system designed by the BBC for use in computer education in the UK, but it is currently available in other countries of the world.
The board is 4 cm × 5 cm and has an ARM Cortex-M0 processor, accelerometer and magnetometer sensors, Bluetooth and USB connectivity, a display consisting of 25 LEDs, two programmable buttons,and can be powered by either USB or an external battery pack. The device inputs and outputs are through five ring connectors that are part of the 23-pin edge connector.
The Micro:bit was designed to encourage children to get actively involved in writing software for computers and building new things, rather than being consumers of media.
In this tutorial, we'll build a simple remote control car (without programming knowledge) with Micro:bit for kids. At the end of this tutorial, our robot will be as follows.

Elecfreaks Motor:bit

To connect the motors to the Micro:bit, it requires an interface, In this tutorial, we use Elecfreaks Motor:bit.
The Motor:bit has integrated a motor drive chip TB6612, which can drive two DC motors with 1.2A max single channel current.Motor:bit has integrated Octopus series' sensor connectors. You can plug various sensors into it directly. Among these connectors, P0, P3-P7, P9-P10 support sensors with 3.3V power voltage only; P13-P16, P19-P20 support 3.3V or 5V sensors. You can change electric level by sliding the switch on the board.

Features

  • TB6612 Motor Drive Chip with 2 channels DC motor connectors, max single channel current is 1.2A.
  • Motor speed control with PWM.
  • VCC 3.3V/5V electric level switch for P13, P14, P15, P16,P19, P20, this Pins support electric level switch between 3.3V and 5V.
  • Buzzer (controlled by P0 pin)
  • Support GVS-Octopus electric Bricks connector.
  • Input Voltage: DC 6-12V
  • Dimension: 60.00 mm x 60.10 mm

Connector Information


Assemble the chassis

For convenience, we used a Pololu Zumo Chassis that is made by Pololu. Read the assembly instructions.
After assembling the chassis, the motors' wires need to be connected to the Motor:bit board. Two motor input connectors in total. M1+, M1- and M2+, M2- separately controls a channel of DC motor.

P8 and P12 relatively controls the rotating direction of M1 and M2; P1 and P2 control motor speed.
Do this according to the below pictures. If later uploading codes on Micro:bit, was wrong for rotation of motors, you can easily change the wires of each motor.
At the end it is needed, connect the battery wires to the Motor:bit board. I used two lithium batteries, which provides more power (About 8 volts).

Control the robot

Control the robot
You can control the car in two ways:
  • Control via phone mobile phone
  • Control via another Micro:bit
Example #1: Control via mobile phone
In this way, you need to install the micro:bit blue application on the android phone.
Then upload the following code to the micro:bit as receiver and connect the micro:bit to the Motor:bit board.
Now, you need to pair the phone and the Micro:bit, then control the car through the mobile application.
Example #2: Control via another Micro:bit
This method requires another micro:bit as controller. With the help of Elecfreaks Power:bit, the micro-bit will turn into portable mode and you can easily get it everywhere. It is powered by two 2025 or 2032 button batteries and carries a buzzer on the board. Screw it to the micro:bit and enjoy it!


For the controller, the following code must be uploaded to the micro:bit as sender.
Then upload the following code to the micro:bit and connect the micro:bit to the Motor:bit.
Now, control the car through the micro:bit. When you push A and B keys simultaneously and move the micro:bit forward/backward, the car moves forward/backward. This is done through the gyroscope sensor. To move left or right, just press one of the keys.
I suggest watching the below video:


Do you like this car? Try it by yourself now, you can make it!

2018年3月8日星期四

BBC MICROBIT BOT USING THE L9110 MOTOR CONTROLLER


I wanted to connect the BBC Microbit to a standard motor driver board like the L9110 or the L298N. The Micro Bit (also referred to as BBC Micro Bit, stylized as micro:bit) is an ARM-based embedded system designed by the BBC for use in computer education in the UK. This little device is a very compact microprocessor with Bluetooth and an accelerometer built in, and a 5 x 5 led matrix for simple messaging. more info on tis micro controller can be found at microbit.org.
There are a number of motor boards available for the microbit, but I had a number of others lying around which are cheap and it gave me a chance to see how to use the extra connections available on the microbit.
I wanted to make a bot that I could add extra sensors and using the L9110 would drive 2 motors so my bot could drive around.
This instructable is only going to detail using the L9110 and adding the motors a simple chassis. The same process could be used to add an L298N instead.

Step 1: Required Hardware



BBC Microbit
Microbit edge connector
2 x motors and wheels of your choice, I used Tamiya motors with gearboxes.
4 x AA battery box for the motors, rechargable batteries or a power supply of your choice
Some plastic strips or other to make a chassis out of. I used a couple of these
L9110 Motor driver board
female to female leads to connect microbit edge connector to L9110
1 x caster wheel from DIY shop / store
Some plastic sheet, I used some A4 sheet plastic sheets 1.5mm thick, which you can score with a knife and snap, or can cut with scissors. This is great for panels on your chassis to to build sides later on and enclose all the elecronics.
Wheels for your bot

Step 2: Build Chassis



Cut 2 of the plastic strips so you can attach the microbit edge connector I found this was a same width required to fit the Tamiya motor and gearboxes.
Fit the motors which are about the same width as the Tamiya motors and have a single mounting hole.
Fit caster wheel
This will then give you a basic chassis for your bot, that you can use with the microbit.

Step 3: Connecting Things Up



At this stage you can slot in the microbit to the edge connector, it can go either way up as the edge connector works both ways.
Full details of the pin outs of the bbc microbit can be found here. I didnt know which were the best pins to use then I looked at a link to a manual on a ready made driver board from Kitronik designed for the microbit which I found here.
This showed me which pins this ready made board used, and also gave a code sample I could adapt for use.
Motor 1 uses Pin 8 and Pin 12 on the microbit
Motor 2 uses Pin 0 and Pin 16 on the microbit
For an explanation how to use the L9110 controller you can read more detail here but below is how I connected it up. detailed L9110 description
Connections
L9110 ---> Microbit
A-IAMotor A Input A (IA) ---> Pin 8
A-IBMotor A Input B (IB) ---> Pin 12
B-IAMotor B Input A (IA) ---> Pin 0
B-IBMotor B Input B (IB) ---> Pin 16
VCC ---> AA Battery Pack +
GND Ground ---> AA Battery Pack -
You also need to connect the GND from the L9110 to the GND on the Microbit edge connector.

Step 4: Testing With Code




To prove the connections worked I modified the example shown for the Kitronik motor controller document.
The microbit has a number of language options which means you can try this a number of different ways.
This example uses the Microsoft touch development environment which can be found and used online here https://www.microbit.co.uk/.
The code example attached just drives the motors forwarded when you press button A, and stops when you press button B.
Use the truth table image to work out the combinations required to make the motors do what you want, and then edit your code.
For my testing I used a separate power supply for my microbit, if you purchase a ready made motor driver board for the microbit, they can power the microbit and motors from the battery power pack or your preferred power source.
I have purchased a couple of these ready made boards so I write future updates using the microbit.

This article is written by otterbot and forwarded from Instructable.

精选博文

How to Make a Counter with microbit

How to Make a Counter with microbit When we have boarded airplane, we often encounter a situation like this: a beautiful stewardess ca...