|
|
(11 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| | <span style=color:red> Please note that micro:bit has been updated to V2.0, so do the resources provided in the following link: |
| | https://fs.keyestudio.com/KS4009-4010 |
| | |
| [[image:KS4009-1.png|thumb|600px|right|Keyestudio 45 in 1 Starter Kit for BBC micro:bit]] | | [[image:KS4009-1.png|thumb|600px|right|Keyestudio 45 in 1 Starter Kit for BBC micro:bit]] |
|
| |
|
Line 322: |
Line 325: |
| | align="center" | <br>[[File:0361---49.png|200px|frameless|thumb]]<br> | | | align="center" | <br>[[File:0361---49.png|200px|frameless|thumb]]<br> |
| |- | | |- |
| | |
|
| |
|
| |} | | |} |
|
| |
|
|
| |
| <br>
| |
|
| |
| ==micro:bit Driver Installation==
| |
| Next, let’s install the driver for micro:bit main board.<br>
| |
| '''1)''' First of all, connect the micro:bit to your computer using a USB cable.
| |
| <br>[[File:361 3-1-1.jpg|500px|frameless|thumb]]<br>
| |
|
| |
| '''2)'''Then, double click the [https://drive.google.com/open?id=1MDYYjSwXjA0M1ZoUkIOmo_awPfpM9iz9 driver software] to install it. Here you can click the icon below to download it.[[File:361 3-1-2.png|50px|frameless|thumb]]<br>
| |
| <br>[[File:361 3-1-3.png|500px|frameless|thumb]]<br>
| |
|
| |
| '''3)''' After that, click Next to continue the installation.
| |
| <br>[[File:361 3-1-4.png|500px|frameless|thumb]]<br>
| |
|
| |
| '''4)''' Wait the driver installing finished.
| |
| <br>[[File:361 3-1-5.png|500px|frameless|thumb]]<br>
| |
|
| |
| '''5)''' Wait the driver installing finished.
| |
| <br>[[File:361 3-1-6.png|500px|frameless|thumb]]<br>
| |
|
| |
| '''6)''' Driver installation completed, then you can right click the “Computer” —> “Properties”—> “Device Manager”.
| |
| <br>[[File:361 3-1-7.png|500px|frameless|thumb]]<br>
| |
| You can check the detailed Ports information shown as below.
| |
| <br>[[File:361 3-1-8.png|500px|frameless|thumb]]<br>
| |
|
| |
| ==micro:bit Example Use==
| |
|
| |
| ===Step 1: Connect It===
| |
| Connect the micro:bit to your computer via a micro USB cable. Your micro:bit will show up on your computer as a drive called 'MICROBIT'.
| |
| <br>[[File:Ks0305-6.png|800px|frameless|thumb]]<br>
| |
|
| |
| ===Step 2: Program It===
| |
| Using micro bit MakeCode Block editor https://makecode.microbit.org/, write your first micro:bit code. <br>
| |
| You can drag and drop some example blocks and try your program on the Simulator in the Javascript Blocks Editor, like in the image below.
| |
| <br>[[File:Ks0305-1.png|600px|frameless|thumb]]<br>
| |
|
| |
| Click the JavaScript, you can see the corresponding program code. Shown as below figure.
| |
| <br>[[File:Ks0305-2.png|700px|frameless|thumb]]<br>
| |
|
| |
| ===Step 3: Download It===
| |
| Click the Download button in the editor. This will download a 'hex' file, which is a compact format of your program that your micro:bit can read.
| |
| Here you can name the project as LED1, then click “Save”. Shown below.
| |
| <br>[[File:Ks0305-3.png|600px|frameless|thumb]]<br>
| |
|
| |
| Once the hex file has downloaded, copy it to your micro:bit just like copying a file to a USB drive. On Windows find the microbit-LED1 file, you can right click and choose "Send To→MICROBIT."
| |
| <br>[[File:Ks0305-4.png|600px|frameless|thumb]]<br>
| |
| <br>[[File:Ks0305-5.png|600px|frameless|thumb]]<br>
| |
|
| |
| ===Step 4: Play It===
| |
| The micro:bit will pause and the yellow 5*5 LED on the back of the micro:bit will display the images while your code is programmed.
| |
| <br>[[File:Ks0305-6.png|800px|frameless|thumb]]<br>
| |
|
| |
| You can power it using USB cable or battery. The battery holder need to connect two 1.5V AA batteries. Shown below.
| |
| <br> [[File:Ks0305-7.png|800px|frameless|thumb]] <br>
| |
|
| |
| <br>
| |
| <span style="color:red"> '''Note:''' this battery case is Not Included in the kit. </span><br>
| |
|
| |
| <br>
| |
|
| |
| ==micro:bit Pins==
| |
| Before getting started with the following projects, first need to figure out each pin of micro:bit main board. Please refer to the reference diagram shown below.
| |
| <br>[[File:MB0098 英文版 (7).jpg|600px|frameless|thumb]]<br>
| |
| The BBC micro:bit has 25 external connections on the edge connector of the board, which we refer to as ‘pins’. The edge connector is the grey area on the right side of the figure above. There are five large pins, that are also connected to holes in the board labelled: 0, 1, 2, 3V, and GND. And along the same edge, there are 20 small pins that you can use when plugging the BBC micro:bit into an edge connector.<br>
| |
|
| |
| Note that it read from the BBC micro:bit official website. More reference you can click the link below:<br>
| |
| '''BBC micro bit Pins:''' http://microbit.org/guide/hardware/pins/ <br>
| |
| '''BBC micro:bit website:''' http://microbit.org/<br>
| |
| '''Micro bit MakeCode Block Editor:''' https://makecode.microbit.org/<br>
| |
| '''Meet micro:bit starter programming:''' http://microbit.org/guide/<br>
| |
| '''BBC micro:bit Features Guide:''' http://microbit.org/guide/features/<br>
| |
| '''BBC micro:bit Safety Warnings:''' http://microbit.org/guide/features/<br>
| |
| '''BBC micro:bit Quick Start Guide:''' http://microbit.org/guide/quick/<br>
| |
|
| |
| <br>[[File:MB0098 英文版 (4).jpg|500px|frameless|thumb]] [[File:MB0098 英文版 (5).jpg|500px|frameless|thumb]]<br>
| |
| After mastering the basic information of BBC micro:bit, in the following part let’s move on to programming projects. Use this small board with keyestudio micro bit sensor shield and other sensor modules to make some interactive experiments. Play it and learn it. Enjoy your wonderful time!
| |
|
| |
|
| |
| ==Installing Arduino Software==
| |
| We will use the Arduino software in the following projects.
| |
| First you should install the Arduino software and driver. <br>
| |
| We usually use the Windows software Arduino 1.5.6 version. You can download it from the link below: <br>
| |
| https://www.arduino.cc/en/Main/OldSoftwareReleases#1.5.x<br>
| |
| Or you can browse the ARDUINO website to download the latest version from this link, https://www.arduino.cc, pop up the following interface.
| |
| <br>[[Image:KS0313-1.png|600px|frameless]]<br>
| |
|
| |
| Then click the '''SOFTWARE''' on the browse bar, you will have two options ONLINE TOOLS and DOWNLOADS.
| |
| <br>[[Image:KS0313-2.png|600px|frameless]]<br>
| |
|
| |
| Click '''DOWNLOADS''', it will appear the latest software version of ARDUINO 1.8.5 shown as below.
| |
| <br>[[Image:KS0313-3.png|600px|frameless]]<br>
| |
|
| |
| In this software page, on the right side you can see the version of development software for different operating systems. You should download the software that is compatible with the operating system of your computer.<br>
| |
| We will take '''WINDOWS system''' as an example here. There are also two options under Windows system, one is installed version, the other is non-installed version.
| |
| For simple installed version, first click '''Windows Installer''', you will get the following page.<br>
| |
| <br>[[Image:KS0313-4.png|600px|frameless]]<br>
| |
| <br>[[Image:KS0313-5.png|600px|frameless]]<br>
| |
|
| |
| This way you just need to click JUST DOWNLOAD, then click the downloaded file to install it. <br>
| |
| For non-installed version, first click Windows ZIP file, you will also get the pop-up interface as the above figure.<br>
| |
| Click JUST DOWNLOAD, and when the ZIP file is downloaded well to your computer, you can directly unzip the file and click the icon of ARDUINO software to start it. <br>
| |
|
| |
|
| |
| ===Installing Arduino (Windows)===
| |
| Install Arduino with the exe. Installation package downloaded well.
| |
| <br>[[File:Arduino Setup 1.jpg|800px|frameless|thumb]]<br>
| |
|
| |
| Click“I Agree”to see the following interface.
| |
| <br>[[File:Arduino Setup 2.jpg|800px|frameless|thumb]]<br>
| |
|
| |
| Click “Next”. Pop up the interface below.
| |
| <br>[[File:Arduino Setup 3.jpg|800px|frameless|thumb]]<br>
| |
|
| |
| You can press Browse… to choose an installation path or directly type in the directory you want.<br>
| |
| Then click “Install” to initiate installation.
| |
| <br>[[File:Arduino Setup 4.jpg|800px|frameless|thumb]]<br>
| |
|
| |
| Wait for the installing process, if appear the interface of Window Security, just continue to click Install to finish the installation.
| |
| <br>[[File:Arduino1.5.6- setup 5.png|800px|frameless|thumb]]<br>
| |
|
| |
|
| |
| ===Installing Driver===
| |
| The driver installation may have slight differences in different computer systems. So in the following let’s move on to the driver installation in the WIN 7 system. <br>
| |
| The Arduino folder contains both the Arduino program itself and the drivers that allow the Arduino to be connected to your computer by a USB cable. Before we launch the Arduino software, you are going to install the USB drivers.<br>
| |
| <br>[[Image:KS0001-1.jpg|600px|frameless]]<br>
| |
| Plug one end of your USB cable into the Arduino and the other into a USB socket on your computer.
| |
| When you connect UNO board to your computer at the first time, right click the icon of your “Computer” —>for “Properties”—> click the “Device manager”, under “Other Devices”, you should see an icon for “Unknown device” with a little yellow warning triangle next to it. This is your Arduino.<br>
| |
| <br>[[Image:Driver 1.png|600px|frameless]]<br>
| |
| Then right-click on the device and select the top menu option (Update Driver Software...) shown as the figure below..
| |
| <br>[[Image:Driver 2.png|600px|frameless]]<br>
| |
|
| |
| It will then be prompted to either “Search Automatically for updated driversoftware” or “Browse my computer for driver software”. Shown as below. In this page, select “Browse my computer for driver software”.
| |
| <br>[[Image:Driver 3.png|600px|frameless]]<br>
| |
|
| |
| After that, select the option to browseand navigate to the “drivers” folder of Arduino installation.
| |
| <br>[[Image:Driver 4.png|600px|frameless]]<br>
| |
|
| |
| Click “Next” and you may get a security warning, if so, allow the software to be installed. Shown as below.
| |
| <br>[[Image:Driver 5.png|600px|frameless]]<br>
| |
|
| |
| Once the software has been installed, you will get a confirmation message. Installation completed, click “Close”.
| |
| <br>[[Image:Driver 6.png|600px|frameless]]<br>
| |
|
| |
| Up to now, the driver is installed well. Then you can right click “Computer” —>“Properties”—>“Device manager”, you should see the device as the figure shown below.
| |
| <br>[[Image:Driver 7.png|600px|frameless]]<br>
| |
|
| |
| <br>
| |
|
| |
| <span style="color: red">
| |
| Now,we have installed well the Arduino software. In the following projects, you might use the software's monitor window to display the data.
| |
| </span> <br>
| |
|
| |
|
| <br> | | <br> |
Line 481: |
Line 334: |
| ==Example Projects== | | ==Example Projects== |
|
| |
|
| | More detailed tutorials and test code: |
|
| |
|
| | https://fs.keyestudio.com/KS4009-4010 |
|
| |
|
| ==Resources Link== | | ==Resources Link== |
| '''1)''' Keyestudio Official Website: http://www.keyestudio.com/ <br> | | '''1)''' Keyestudio Official Website: http://www.keyestudio.com/ <br> |
| '''2)''' Keyestudio WIKI Website: http://wiki.keyestudio.com/<br> | | '''2)''' Keyestudio WIKI Website: http://wiki.keyestudio.com/<br> |
| '''3)''' User Guide Download: <br>
| |
| https://fs.keyestudio.com/KS4009-4010/<br>
| |
|
| |
| '''4)''' Arduino Software Link:<br>
| |
| https://drive.google.com/open?id=1ivTOKCKgkmEuBtZpLI75XKryGI-xx-xF<br>
| |
| '''5)''' Arduino Official Website: https://www.arduino.cc<br>
| |
| '''6)''' BBC micro bit Pins: http://microbit.org/guide/hardware/pins/ <br> | | '''6)''' BBC micro bit Pins: http://microbit.org/guide/hardware/pins/ <br> |
| '''7)''' BBC micro:bit website: http://microbit.org/<br>
| |
| '''8)''' Micro:bit MakeCode Block Editor: https://makecode.microbit.org/<br> | | '''8)''' Micro:bit MakeCode Block Editor: https://makecode.microbit.org/<br> |
| '''9)''' Code Block Reference: https://makecode.microbit.org/reference <br> | | '''9)''' Code Block Reference: https://makecode.microbit.org/reference <br> |
Line 500: |
Line 348: |
| '''12)''' BBC micro:bit Safety Warnings: http://microbit.org/guide/features/<br> | | '''12)''' BBC micro:bit Safety Warnings: http://microbit.org/guide/features/<br> |
| '''13)''' BBC micro:bit Quick Start Guide: http://microbit.org/guide/quick/<br> | | '''13)''' BBC micro:bit Quick Start Guide: http://microbit.org/guide/quick/<br> |
|
| |
|
| |
|
| |
| https://fs.keyestudio.com/KS4009-4010
| |