Scratch 2.0 Wireless Programming Guide for Vortex

Similar documents
TA0139 USER MANUAL ARDUINO 2 WHEEL DRIVE WIRELESS BLUETOOTH ROBOT KIT

Step 1: Connect the Cortex to your PC

DIY Magic Mirror. Software Installation v4. Mac. DIY Magic Mirror

SCRATCH BUILDER R Q R O B O T C O D I N G G U I D E

Quick Install Guide. Model: PLC-223W, PLC-233W

enablegames New User Guide v1.0

Arduino Micro Breadboard Laboratory Interface Processor (Micro BLIP) User Manual

NET-DYN USB Dual Band (Mediatek) Installation Guide. This manual is divided into three parts: Windows XP, Windows 7 / 8 / 8.

Getting Started with Energia for MSP432 LaunchPad

RedBoard Hookup Guide

22080 IoT2 Appendix B: Get Started with Arduino IDE & ExpLoRer

1 Introduction. 2 Install the tool. Millennium 2000 M820 ChessGenius Exclusive, PGN. Version:

INSTALLING MAESTRO UPDATES

RoastLogger Arduino/TC4 driver installation for Windows 9/10/13 By John Hannon (JackH) at Homeroasters.org

ROBOTLINKING THE POWER SUPPLY LEARNING KIT TUTORIAL

MBB100 / DSM800 Update Instructions

Mini USB 3.0 Dual Display Dock

InO-Bot. User Guide. 1 InO-Bot User Guide. Product Code: EL00483

My Digital Downloader Instruction Guide *MAC*

Megamark Processing 3.0 Setup Guide. Downloading and Installing Processing 3.0

USER HELP GUIDE. NOTE: We suggest that the user s device be upgraded to the most current version.

Lab 2.2 Ohm s Law and Introduction to Arduinos

User Guide for Windows OS

Xtra-PC User Guide. Published: April 2017 Edition: 2 Xtra-PC 4.0. Copyright Xtra-PC. All Rights Reserved.

My Digital Downloader Instruction Guide *WINDOWS*

MCS-TOUCHSCREEN Auto Disk Clean up

Quick Install Guide. For Covert IP Camera Series. Model: PLC-128PW, PLC-129PW

1. Introduction P Package Contents 1.

Code&Drive First steps

TSM800 / TSM1330 Update Instructions

Brought to you by WIRED Les Quiocho September 30, 2017

Procom PPC Software User s Manual

1 Download the latest version of ImageJ for your platform from the website:

1) Installing Bluetooth software for Windows (A) Place installation CD into PC and setup should launch automatically.

RTMS - Software Setup

1. Introduction P Package Contents 1.

Micro:bit - an Educational & Creative Tool for Kids

SMARTWATCH WITH ACTIVITY AND SLEEP TRACKER

USB SERIAL ADAPTOR COM PORT INSTRUCTIONS

SwiftView Quick-Start Guide. Revised for SwiftView

Getting Started Guide. IMU Research I Measure U Limited

Updating X30/ Bridge Software

SOFTWARE UPGRADE PROCEDURE

Tech Memo # Software Engineering. Normal PRIORITY: DATE: April 17 th, 2015

OpenROV. Update Software Image From SD Card

Bluno SKU:DFR0267. Contents. Introduction

Installing LE History Record Reader program software.

How to use the Zduino LEE Module with the Trainer Board

Software Manual FIRMWARE DOS 2.2.2

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

These instructions were adapted from Arduino: Installing Standard Firmata which is licensed under Attribution- NonCommercial-ShareAlike 2.

Scratch Lesson 2: Movies Made From Scratch Lesson Framework

Table of Contents. What s In The Box Page 2. SanDisk Clip Sport Plus Diagram Page 4. Anker SoundCore Speaker Diagram Page 5

tune2air WMA1000 Firmware Upgrade Instruction 2013 Triamp Technology Ltd.

USB SERIAL ADAPTOR COM PORT INSTRUCTIONS

Whitebox TM Developer s Guide

Not For Sale. Offline Scratch Development. Appendix B. Scratch 1.4

Storing Your Exercise Files

Lab 1: Introductory Project to Breadware

GWCommander V3.x. Administrators Guide

Arduino 01: Installing the Arduino Application and Firmware. Jeffrey A. Meunier University of Connecticut

mbot v1.1 - Blue (Bluetooth Version)

Welcome to Apollo. For more information, please visit the website and select Apollo. Default Code

Using Overdrive with an ereader

School Installation Guide ELLIS Academic 5.2.6

Experimental Procedure. Frequently Asked Questions (FAQ) Kit General Questions. Setting Up and Using Your Raspberry Pi Projects Kit

Iconasys Advanced 360 Product View Creator. User Guide (Mac OSX)

Turns your Wallbox into a Complete Jukebox

SMARTPLUG. Firmware Update for Android users with access to an ios device

Windows 7 USB Instructions 04/11

IMPORTANT NOTE for. Choose the zip file v and unzip it in USB. Do not rename the UPG folder. Follow

Software Setup Instructions for the Foster Control System used in the Explora Dome Observatories

Operating Instructions 4 Quick Start 4 Password 4 Settings 5 Home screen 6 Application screen 8 Auto play 9 Playing content 10 Reccommended formats

EERE Software Installation Guide

Windows 8 USB Instructions 05/13

MalaRom flashing Guide

Sync User Guide. Powered by Axient Anchor

BackupVault Desktop & Laptop Edition. USER MANUAL For Microsoft Windows

Pairing two devices with the Belkin QODE Ultimate Pro and Slim Style Keyboard Cases

Save and Restore Backups using itunes File Sharing

IRISPen Air 7. Quick User Guide. (ios)

Save and Restore Backups using itunes File Sharing

Training Sales Support

Release Notes Zebra VC80x AndroidN Update005 based on NG-00-A Release for GMS

FSU Inventory Scanner Set up & Use for Windows PC

Driver Installation. Getting Started for Windows user (Setting up your Robot)

Product Introduction. Install APP on Smart Phone

Bush Baby Alarm Clock With WiFi Hidden Camera

GRS Enterprise Synchronization Tool

MEGATRONICS V3.0 QUICK START GUIDE

LeFun IP Camera Quick Install Guide

Last Updated: FRC 2019 BETA

INSTALLING THE PS3 XBOX READY SOFTWARE:

Export / Import using itunes File Sharing

Smart Flash Drive SecurePRO User Manual. Version_010

Installing your Nokia Home

Magic-E-Board. User Manual

NETWORK THE HOME 10 FOLDERS APPS

How to get ebooks on to your Kindle

Network Management Software ALLNET Zone Controller

Transcription:

Scratch 2.0 Wireless Programming Guide for Vortex DF4Scratch Service Vortex is a programmable robot developed by DFRobot. Based on the Arduino developing platform, Vortex is equipped with Atmega328 Arduino UNO compatible computing unit, motors, an LED matrix, proximity sensors and several other interactive electric components. Figure (1-1) Vortex robot With its built-in Bluetooth 4.0 module, Vortex is capable of communicating with various developing tools wirelessly. Among these tools is Scratch 2.0, a user friendly graphical programming development environment developed by Lifelong Kindergarten Group (part of MIT Media Lab). Using Scratch 2.0, programs can be written by dragging and dropping code blocks in to place, which makes it a perfect learning tool for beginners to programming.

Figure (1-2) Scratch 2.0 programming interface To add Scratch 2.0 support for Vortex, DFRobot developed DF4Scratch, a plug-in service that enables wireless communication between Arduino compatible kits and Scratch 2.0. Figure (1-3) Use Scratch2.0 to program Vortex via DF4Scratch

Preparation First we need to install software and drivers on to our PC. This step only needs to be done once. Install Arduino IDE Arduino IDE (Integrated Development Environment) is used to write programs for Arduino supported hardware. To use Scratch 2.0 as programming tool for Arduino platform, we need to install Arduino IDE first. Arduino IDE is compatible with Windows, Linux and Mac. However, as DF4Scratch is only currently supported by Windows, this tutorial will walk through the setup for DF4Scratch on Windows 7 or later. Installation Guide 1. Download the installation package: Download the latest version of Arduino IDE software from the link below. Download link: http://arduino.cc/en/main/software Figure (2-1) Arduino IDE download page

You can either download a Windows executable installer (requires installation) or a.zip file (no installation required). 2. Install Arduino IDE: For the Windows Installer, run the installer and follow the wizard to finish installation. For the Windows ZIP file, unzip the file to a directory of your choice and follow the instructions below to manually install drivers. 3. Install drivers (for Windows ZIP file only): Once files are unzipped, open the drivers folder in the main directory of Arduino software to install drivers for the Arduino microcontroller. For 32-bit systems, run dpinst-x86.exe ; for 64-bit systems, run dpinstamd64.exe. Figure (2-2) Driver installers under the drivers directory

Figure (2-3) Click Next to start installation Figure (2-4) Installation complete

Once the driver is successfully installed, Arduino compatible hardware can be recognized by PC. Install Scratch 2.0 Editor and DF4Scratch Plugin Installation Guide 1. Download the installation package: Download the Scratch 2.0 installer and the DF4Scratch plugin from the link below. Scratch 2.0 download link: https://scratch.mit.edu/scratch2download/ DF4Scratch download link: https://github.com/dfrobot/dfresources/tree/master/vortex4scratch Figure (2-5) DF4Scratch download page 2. Install Scratch 2.0: Run file Scratch 2.0.air. Follow the wizard to finish installation. Scratch2.0.air needs the Adobe Air environment. Follow the link below to install Adobe Air. Adobe Air download page:https://get.adobe.com/air/

Figure (2-6) Select Install to continue Figure (2-7) Select installation location (C:\Program Files (x86) by default)

Figure (2-8) Installation in progress Figure (2-9) Scratch 2.0 editor will pop out when Installation is complete. You may select Cancel to skip the update if prompted. Once installation is complete, you can close the Scratch 2.0 editor and move to the next steps. 3. Install DF4Scratch Plugin: Unzip DF4Scratch_EN.zip to a folder of your choice. You will need to visit this folder in the Launch DF4Scratch Service step.

Figure (2-11) Files under DF4Scratch directory

Pair Your Devices DF4Scratch Service DF4Scratch supports both Bluetooth 4.0 and USB communication between Vortex and PC. Connect Vortex to PC via Bluetooth (Option A) Using a Bluetooth connection significantly increases the quality of the user experience as you no longer have to keep Vortex hooked up to a PC to transfer data. We recommend using the USB BLE-Link Bluetooth 4.0 adaptor developed by DFRobot, exclusively designed for wireless programming, so as to avoid a complicated Bluetooth setup procedure. Figure (3-1) USB BLE-Link Bluetooth adaptor (SKU: TEL0087) USB BLE-Link Purchase Link: http://www.dfrobot.com/index.php?route=product/product&product_id=1220#. Vt6WPPkrLWI

USB BLE-Link needs Arduino hardware driver support. As we have already installed driver in previous step, for Windows 7 or later, USB BLE-Link is ready to use when plugged in to the USB port. Vortex should be upgraded to its latest firmware through the VortexBot iphone app before pairing with PC. Firmware Upgrade: A firmware upgrade will automatically start when Vortex is paired with the VortexBot app. Figure (3-2) An update notification will pop up automatically when Vortex is connected to the VortexBot app Figure (3-3) Tap OK to start update

Figure (3-4) Update complete Setup Bluetooth Connection: Plug the USB BLE-Link Bluetooth adaptor into your PC s USB port. Figure (3-5) Plug in USB Bluetooth adaptor Turn off all other unpaired Bluetooth devices within range to ensure connection, then switch Vortex on.

Figure (3-6) Switch on Vortex When Vortex is not paired, its LED lights will brighten up then fade repeatedly. To pair, simply place Vortex next to the Bluetooth adaptor and it will pair automatically. Figure (3-7) Pair Vortex to Bluetooth adaptor

Once Vortex is paired, its LEDs will stay at a constant brightness. The blue LED indicator on the Bluetooth adaptor will also light up. Figure (3-8) Pairing complete If pairing fails, unplug and re-plug the adaptor to the USB port and restart Vortex, then go through the above steps again.

Connect Vortex to PC via USB Cable (Option B) DF4Scratch Service Alternatively, Vortex can communicate to PC through the on-board Micro USB port. Setup Wired Communication: Open Vortex s top magnetic cover. Figure (3-9) Open top magnetic cover. Remove the screw and then remove the back cover. Figure (3-10) Take off the back cover Figure (3-11) serial communication is enabled

Find the micro USB port at the right side of the slot, make sure the switch is set to the USB port side so that serial communication is enabled, then connect it to your PC with a micro USB cable. Figure (3-12) Plug in USB cable Once connected, Vortex will show up as Arduino Uno in Windows Device Manager. Launch DF4Scratch Service Once Vortex has been successfully connected to your PC, we are ready to launch the DF4Scratch service and control Vortex through Scratch 2.0. Service Launching Guide Start DF4Scratch Service: Double click the Launch Vortex Communication Service shortcut file in the DF4Scratch folder (unzipped in previous step) to start the service.

Figure (4-1) Launch Vortex Communication Service shortcut under DF4Scratch directory Once the service is initiated, a black window will then pop up. The service may ask for authority of making changes to the computer, click Allow to continue launching. The black window will soon vanish automatically. Figure (4-2) Service initiating in progress Running the initializer more than once may cause problem to the service. When this happens, follow the instructions below to terminate the DF4Scratch service and reinitiate the launching service.

Terminate the DF4Scratch Service (if necessary): DF4Scratch Service Double click the short cut file Stop Communication Service in the folder DF4Scratch to terminate the service. Figure (4-3) Stop Communication Service shortcut under DF4Scratch directory Once the termination process is initiated, a black window will pop up. The service may ask for authority to make changes to the computer, click Yes to continue termination. The black window will soon vanish automatically. Figure (4-4) Service terminating in process We can start to program Vortex using Scratch 2.0 after the service is launched.

Figure (4-5) Run simple test You can also open the Scratch 2.0 script file Vortex Example.sb2 under the directory DF4Scratch to run a simple test. Once the green flag is clicked, Vortex will start dancing.

Start Programing It s time for us to program Vortex with Scratch 2.0. As this tutorial only aims to help users setup Scratch 2.0 programming environment, we will not go deep into the programming details. Instructions below provide basic operations for Scratch 2.0, you can also skip to the Sample Program chapter and use the sample script to control Vortex with your keyboard. Visit the Vortex forum for more information about Scratch 2.0 programming. Link to Vortex Forum: http://www.dfrobot.com/forum/viewforum.php?f=19 Scratch 2.0 Programming Interface Basic Vortex code blocks are preloaded in the script file Simple Vortex Example under the directory DF4Scratch. For beginners, you can edit the file and use preloaded code blocks to program Vortex.

Figure (5-1) Scratch 2.0 Programming Interface Title Bar: Shows the file name Menu Bar: Lists software functions Toolbar: Edits character s appearance Code Block Area: Lists code blocks for programming Player Area: Lists characters Script Area: Program editing area Control Buttons: Program control area Display Window: Shows character actions In Scratch 2.0, programs can be written by simply dragging and dropping code blocks

Use Vortex Code Blocks DF4Scratch Service Preloaded Vortex code control blocks can be found under More Blocks in the code block area. Vortex Code Block Descriptions

After Vortex has been recognized by Scratch 2.0, the indicator at the bottom right corner of the code block area will turn from red to green, indicating that a program can be uploaded. Figure (5-2) Vortex can be programmed after the indicator turns to green Sample Program With the sample program, you can use your keyboard to set Vortex to move, play music or change LED color. Start a Sample Program Double click to open the Keyboard Controlling Vortex Example.sb2 Vortex 2.0 script file under directory DF4Scratch\examples. Figure (5-3) Keyboard Controlling Vortex Example.sb2 sample script file In the script editing interface, click the green flag to start keyboard control.

Figure (5-4) Keyboard Controlling Vortex Example script editing interface Key Commands Arrow Keys: Tells Vortex to go forward, backward, left and right. Number keys 1-7: Activates expression 1-7 for Vortex D:Tells Vortex to dance M:Tells Vortex to play music S:Stops dancing and music H:Increases volume I: Decreases volume