Ks0189 keyestudio Scratch for Arduino Starter Kit: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
(Created page with "==keyestudio Scratch for Arduino Starter Kit== <br>500px|frameless|thumb<br> ==1. Introduction== Scratch is a free programming language, which is used...")
 
No edit summary
Line 20: Line 20:
==3. Kit List ==
==3. Kit List ==


{| width="80%" cellspacing="0" border="1"
|-


! align="center" scope="col" | No.
! align="center" scope="col" | Product Name
! align="center" scope="col" | Quantity
! align="center" scope="col" | Picture
|-
| align="center" | 1 
| align="center" | Keyestudio nano ch340
| align="center" | 1
| align="center" | <br>[[File:ks0189 2-1.png|500px|frameless|thumb]]<br>


|-
| align="center" | 2 
| align="center" | Keyestudio SCRACH Extension Board
| align="center" | 1
| align="center" | <br>[[File:ks0189 2-2.png|500px|frameless|thumb]]<br>
|-


| align="center" | 3 
| align="center" | USB Cable
| align="center" | 1
| align="center" | <br>[[File:ks0189 2-3.png|500px|frameless|thumb]]<br>
|-
| align="center" | 4 
| align="center" | Acrylic Board(with Screws)(9.5x5.5)
| align="center" | 5
| align="center" | <br>[[File:761.png|500px|frameless|thumb]]<br>
|-
| align="center" | 5 
| align="center" | Round Head Screw  M2.5X6MM
| align="center" | 8
| align="center" | <br>[[File:762.png|500px|frameless|thumb]]<br>
|-
| align="center" | 6
| align="center" | Hexagonal Copper Bush M2.5*10MM 
| align="center" | 4
| align="center" | <br>[[File:763.png|500px|frameless|thumb]]<br>
|-
| align="center" | 7
| align="center" | Cable +Alligator Clip
| align="center" | 4
| align="center" | <br>[[File:764.png|500px|frameless|thumb]]<br>
|-
|}




Line 31: Line 79:
Note: if you need to use analog input, just plug alligator clip and cable into analog input port.
Note: if you need to use analog input, just plug alligator clip and cable into analog input port.


<br>[[File:ks0188-4.png|500px|frameless|thumb]]<br>
<br>[[File:ks0189 3-1.png|500px|frameless|thumb]]<br>


==5. Software Installation==
==5. Software Installation==


=== Arduino Introduction===  
=== Arduino Introduction===  
<br>[[File:ks0188 1-1.png|500px|frameless|thumb]]<br>
<br>[[File:ks01898 4-1.png|500px|frameless|thumb]]<br>
What’s Arduino?
What’s Arduino?
Arduino is an open-source hardware project platform. This platform includes a circuit board with simple I/O function and program development environment software. It can be used to develop interactive products. For example, it can read signals of multiple switches and sensors, and control light, servo motor and other various physical devices. It’s widely applied in robot field. <br>
Arduino is an open-source hardware project platform. This platform includes a circuit board with simple I/O function and program development environment software. It can be used to develop interactive products. For example, it can read signals of multiple switches and sensors, and control light, servo motor and other various physical devices. It’s widely applied in robot field. <br>
Line 50: Line 98:


Double click Arduino-1.5.6 .exe. and select “I agree”.
Double click Arduino-1.5.6 .exe. and select “I agree”.
<br>[[File:ks0188 1-1.png|500px|frameless|thumb]]<br>
<br>[[File:ks0189 5-1.png|500px|frameless|thumb]]<br>
Choose the components to install and click “Next”.
<br>[[File:ks0189 5-2.png|500px|frameless|thumb]]<br>
Choose the installation directory (we suggest to keep the default one) and then click “Install”.
<br>[[File:ks0189 5-3.png|500px|frameless|thumb]]<br>
The process will extract and install all the required files to execute properly the Arduino Software (IDE), and click Close.
<br>[[File:ks0189 5-4.png|500px|frameless|thumb]]<br>
Below is how Arduino 1.5.6 looks like.
<br>[[File:ks0189 5-5.png|500px|frameless|thumb]]<br>
 
=== Install Arduino Driver ===
For different operating system, there may be slight difference in installation method. Next, let’s install Arduino driver for your Arduino board with WIN 7.
When you connect Arduino Uno to your computer the first time, right click “Computer” —>  “Properties”—> “Device manager”, you can see “USB2.0-Serial”.
<br>[[File:ks0189 6-1.png|500px|frameless|thumb]]<br>
Right click on the "USB2.0-Serial" port and choose the "Update Driver Software" option.
<br>[[File:ks0189 6-2.png|500px|frameless|thumb]]<br>
 
Next, choose the "Browse my computer for Driver software" option.
<br>[[File:ks0189 6-3.png|500px|frameless|thumb]]<br>
Finally, navigate to and select the Uno's driver file, named "usb_ch341_3.1.2009.06", located in the "Drivers" folder of the Arduino Software download, click “Next”.
<br>[[File:ks0189 6-4.png|500px|frameless|thumb]]<br>
The below dialog boxes automatically appears if you have installed driver successfully and click “Close” to finish.
<br>[[File:ks0189 6-5.png|500px|frameless|thumb]]<br>
You can check that the drivers have been installed by opening the Windows Device Manager. Go to “Device manager” again. Right click “Computer” → “Properties”→ “Device manager”, you can see CH340 device as below figure shows, also the COM port info.
<br>[[File:ks0189 6-6.png|500px|frameless|thumb]]<br>
 
=== Introduction to Scratch and S4A Software ===
Scratch is a simple programming tool aiming at teenagers. Its advantage is: users can be those who even don’t know English, neither keyboard. Commands and parameters of program are displayed by building block module. In order to programming, just drag the blocks to formula bar. Almost all children fall in love with this software at first sight and their desire is aroused to program.<br>
In this kit, we use S4A software as development environment. S4A is a Scratch modification that allows for simple programming of the Arduino open source hardware platform. It provides new blocks for managing sensors and actuators connected to Arduino.  <br>
S4A allows for 6 analog inputs (analog pins), 2 digital inputs (digital pins 2 and 3), 3 analog outputs (digital pins 5, 6 and 9), 3 digital outputs (pins 10, 11 and 13) and 4 special outputs. S4A allows you to control as many boards as USB ports you have.<br>
 
=== Installing the Firmware into your Arduino ===
This firmware is a piece of software you need to install into your Arduino board to be able to communicate with it from S4A.
First, Open the firmware file (S4AFirmware15) from the Arduino environment.
<br>[[File:ks0189 7-1.png|500px|frameless|thumb]]<br>
In the Tools menu, select the board version and the serial port where the board is connected.
<br>[[File:ks0189 7-2.png|500px|frameless|thumb]]<br>
<br>[[File:ks0189 7-3.png|500px|frameless|thumb]]<br>
Click Verify <br>[[File:ks0189 7-4.png|500px|frameless|thumb]]<br>  to check code.
<br>[[File:ks0189 7-5.png|500px|frameless|thumb]]<br>
Load the firmware into your board through File > Upload <br>[[File:ks0189 7-6.png|500px|frameless|thumb]]<br>.
<br>[[File:ks0189 7-7.png|500px|frameless|thumb]]<br>
Done uploading as shown below.
<br>[[File:ks0189 7-8.png|500px|frameless|thumb]]<br>
 
=== Install S4A15 Software ===
 
First, double click <br>[[File:ks0189 8-1.png|500px|frameless|thumb]]<br>  and click Next to continue Setup.
<br>[[File:ks0189 8-2.png|500px|frameless|thumb]]<br>
Check I accept the agreement and click Next to continue.
<br>[[File:ks0189 8-3.png|500px|frameless|thumb]]<br>
Setup will install S4A into the following folder and to continue, click “Next”.
<br>[[File:ks0189 8-4.png|500px|frameless|thumb]]<br>
Setup will create the program’s shortcuts in the following Start Menu folder and to continue, click “Next”.
<br>[[File:ks0189 8-5.png|500px|frameless|thumb]]<br>
Check Create a desktop icon, and click Next to continue.
<br>[[File:ks0189 8-6.png|500px|frameless|thumb]]<br>
Click Install to install.
<br>[[File:ks0189 8-7.png|500px|frameless|thumb]]<br>
Click Finish to exit Setup.
<br>[[File:ks0189 8-8.png|500px|frameless|thumb]]<br>
After finishing installing, it enters automatically the following interface.
<br>[[File:ks0189 8-9.png|500px|frameless|thumb]]<br>
After installing all software needed, it is time to create many interesting projects.
 
==Basic Examples ==
Here you'll find basic S4A examples, complete with an .sb Scratch project file for you to download in Basic Examples folder.
 
=== '''Project 1: LED Blinking'''===
A simple example showing how to trigger an LED.
 
'''Hardware Required:'''
Nano ch340*1<br>
SCRACH*1<br>
USB Cable*1<br>
 
 
 
 





Revision as of 10:47, 29 March 2017

keyestudio Scratch for Arduino Starter Kit


thumb

1. Introduction

Scratch is a free programming language, which is used in more than 150 different countries and available in more than 40 languages. Scratch helps young people learn to think creatively, reason systematically, and work collaboratively — essential skills for life in the 21st century. It is wide applied to teaching process about programming in schools. In below projects, we are going to combine Scratch with Arduino to make more interactive and interesting projects. Students and children can program themselves by Scratch to make Arduino perform or use Arduino to get data measured by external sensors; therefore, they can create their own interactive stories, games, and animations. Using Scratch to program is very easy. A 6-year-old kid, under guidance, can build a complete program according to an sample. During that process, kids have no need to know English or Chinese, and they have a chance to enjoy graffiti, sound recording and finding pictures.

2. Kit Contents

Project 1 LED Blinking Project 2 Breathing LED Project 3 LED with Chasing Effect Project 4 Button-controlled LED Project 5 Start Moving Project 6 A Light-controlled Walking Cat Project 7 A Sound-controlled Walking Cat Project 8 A Sound-controlled LED Project 9 A Light-controlled LED Project 10 Rolling a Ball with Slider

3. Kit List

No. Product Name Quantity Picture
1 Keyestudio nano ch340 1
thumb
2 Keyestudio SCRACH Extension Board 1
thumb
3 USB Cable 1
thumb
4 Acrylic Board(with Screws)(9.5x5.5) 5
thumb
5 Round Head Screw M2.5X6MM 8
thumb
6 Hexagonal Copper Bush M2.5*10MM 4
thumb
7 Cable +Alligator Clip 4
thumb


4. Connection Method

First, plug nano ch340 board into the scratch extension board; Second, mount the whole board on the Acrylic board held by 4 copper bushes, and attach them with 2 screws on two ends of one copper bush; Finally, connect the main board with computer using USB cable. Note: if you need to use analog input, just plug alligator clip and cable into analog input port.


thumb

5. Software Installation

Arduino Introduction


thumb
What’s Arduino? Arduino is an open-source hardware project platform. This platform includes a circuit board with simple I/O function and program development environment software. It can be used to develop interactive products. For example, it can read signals of multiple switches and sensors, and control light, servo motor and other various physical devices. It’s widely applied in robot field.

Install Development Environment Software IDE

The open-source Arduino Software (IDE) makes it easy to write code and upload it to the board. It runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing and other open-source software. This software can be used with any Arduino board. Refer to the page https://www.arduino.cc/en/Guide/HomePage for Installation instructions. Or just look at our instruction. First, download Arduino development software, click below hyperlink: https://www.arduino.cc/en/Main/OldSoftwareReleases#1.5.x Downloaded file is an arduino-1.5.6-r2-windows.zip compressed folder, and unzip it to your hard drive.

Double click Arduino-1.5.6 .exe. and select “I agree”.
thumb
Choose the components to install and click “Next”.
thumb
Choose the installation directory (we suggest to keep the default one) and then click “Install”.
thumb
The process will extract and install all the required files to execute properly the Arduino Software (IDE), and click Close.
thumb
Below is how Arduino 1.5.6 looks like.
thumb

Install Arduino Driver

For different operating system, there may be slight difference in installation method. Next, let’s install Arduino driver for your Arduino board with WIN 7. When you connect Arduino Uno to your computer the first time, right click “Computer” —> “Properties”—> “Device manager”, you can see “USB2.0-Serial”.
thumb
Right click on the "USB2.0-Serial" port and choose the "Update Driver Software" option.
thumb

Next, choose the "Browse my computer for Driver software" option.
thumb
Finally, navigate to and select the Uno's driver file, named "usb_ch341_3.1.2009.06", located in the "Drivers" folder of the Arduino Software download, click “Next”.
thumb
The below dialog boxes automatically appears if you have installed driver successfully and click “Close” to finish.
thumb
You can check that the drivers have been installed by opening the Windows Device Manager. Go to “Device manager” again. Right click “Computer” → “Properties”→ “Device manager”, you can see CH340 device as below figure shows, also the COM port info.
thumb

Introduction to Scratch and S4A Software

Scratch is a simple programming tool aiming at teenagers. Its advantage is: users can be those who even don’t know English, neither keyboard. Commands and parameters of program are displayed by building block module. In order to programming, just drag the blocks to formula bar. Almost all children fall in love with this software at first sight and their desire is aroused to program.
In this kit, we use S4A software as development environment. S4A is a Scratch modification that allows for simple programming of the Arduino open source hardware platform. It provides new blocks for managing sensors and actuators connected to Arduino.
S4A allows for 6 analog inputs (analog pins), 2 digital inputs (digital pins 2 and 3), 3 analog outputs (digital pins 5, 6 and 9), 3 digital outputs (pins 10, 11 and 13) and 4 special outputs. S4A allows you to control as many boards as USB ports you have.

Installing the Firmware into your Arduino

This firmware is a piece of software you need to install into your Arduino board to be able to communicate with it from S4A. First, Open the firmware file (S4AFirmware15) from the Arduino environment.
thumb
In the Tools menu, select the board version and the serial port where the board is connected.
thumb

thumb
Click Verify
thumb
to check code.
thumb
Load the firmware into your board through File > Upload
thumb
.
thumb
Done uploading as shown below.
thumb

Install S4A15 Software

First, double click
thumb
and click Next to continue Setup.
thumb
Check I accept the agreement and click Next to continue.
thumb
Setup will install S4A into the following folder and to continue, click “Next”.
thumb
Setup will create the program’s shortcuts in the following Start Menu folder and to continue, click “Next”.
thumb
Check Create a desktop icon, and click Next to continue.
thumb
Click Install to install.
thumb
Click Finish to exit Setup.
thumb
After finishing installing, it enters automatically the following interface.
thumb
After installing all software needed, it is time to create many interesting projects.

Basic Examples

Here you'll find basic S4A examples, complete with an .sb Scratch project file for you to download in Basic Examples folder.

Project 1: LED Blinking

A simple example showing how to trigger an LED.

Hardware Required: Nano ch340*1
SCRACH*1
USB Cable*1







Resources

Video

http://www.keyestudio.com/wp/2016/09/ks0188-keyestudio-maker-touch-starter-kit/


Buy from

http://www.keyestudio.com/keyestudio-maker-touch-shield.html