株式会社まちクエスト 合同会社つくる社 石原 淳也 @jishiha

大人エンジニアにも役立つIoTプロト環境としての
ビジュアルプログラミング言語Scratch
株式会社まちクエスト
合同会社つくる社
石原 淳也
@jishiha
まちクエスト
@jishiha
2012/02/23
@jishiha
@jishiha
Scratch
@jishiha
Scratch
•
Visual Programming Language
•
MIT Media Lab, led by Mitchel Resnick
•
Windows, OS X, and Linux
•
Educational Use
•
Community: Worldwide 14M, Japan 120K(0.89%)
(2016/10/17 https://scratch.mit.edu/statistics/)
@jishiha
Demo
@jishiha
Scratch2○○ Series
@jishiha
•
Scratch2Sphero
•
Scratch2MCPI
•
Scratch2Romo
•
Scratch2Airborne
•
Scratch2MiP
@jishiha
Scratch2Sphero
@jishiha
Scratch2MCPI
@jishiha
Scratch2Romo
@jishiha
Scratch2Airborne
@jishiha
Scratch x WowWee MiP
@jishiha
Scratch2MiP for RSC
@jishiha
Demo
@jishiha
Remote Sensor Connections
@jishiha
Remote Sensor Protocol
localhost:42001
Bluetooth
Socket Communications
Scratch2MiP
@jishiha
Remote Sensor Protocol
selectedRobot.driveDistanceByCm
10, 0, function(err){}
)
broadcast forward
Scratch2MiP
@jishiha
Remote Sensor Protocol
sensor-update distance
near
Scratch2MiP
case 0x03:
return 'near'; // 0-10 cm
@jishiha
Scratch2MiP
ScratchX version
@jishiha
ScratchX
@jishiha
About ScratchX
•
Experimental Extensions to Scratch
•
Beta
@jishiha
Demo
@jishiha
Bluetooth
HTTP
Helper App
localhost:8080
@jishiha
http://champierre.github.io/scratch2mip/scratch2mip.js
•
•
Block Description
JavaScript
GitHub Page
Function
@jishiha
Block Description
@jishiha
Function
@jishiha
Scratch 1.4
ScratchX
@jishiha
Photo: Mayumi Chikaoka
@jishiha
Scratch2HTML
@jishiha
http://www.scratch2html.com
HTTP POST
ScratchX
@jishiha
Scratch2HTML
•
http://scratchx.org/?url=http://
champierre.github.io/scratch2html/
scratch2html.js
@jishiha
Demo
@jishiha
ScratchX x Arduino
@jishiha
Firmata
ScratchX +
Scratch Extensions
Browser Plugin
Arduino + Grove
@jishiha
Scratch Arduino Extension
•
Browser should be Firefox
•
Arduino: File > Examples > Firmata >
Standard Firmata
•
http://scratchx.org/?url=http://
khanning.github.io/scratch-arduinoextension/arduino_extension.js
@jishiha
Demo
@jishiha
Scratch2HTML + Arduino
@jishiha
ScratchX
Arduino
HTML
@jishiha
Demo
@jishiha
Summary
•
Scratch
•
Scratch2○○ Series
•
Remote Sensor Protocol
•
ScratchX
•
Scratch + IoT
@jishiha
Reference 1
Scratch2Sphero
https://github.com/champierre/scratch2sphero
Scratch2MCPI
http://scratch2mcpi.github.io/
Scratch2Romo
http://www.scratch2romo.com/
Scratch2Airborne
https://github.com/champierre/scratch2airborne
@jishiha
Reference 2
Scratch2MiP
https://github.com/champierre/scratch2mip
Scratch2HTML
https://github.com/champierre/scratch2html
Scratch Arduino Extension
https://khanning.github.io/scratch-arduino-extension/
@jishiha
Reference 3
Remote Sensor Protocol
https://wiki.scratch.mit.edu/wiki/Remote_Sensors_Protocol
Scratch(スクラッチ)を外部のプログラムなどとつなぐ「遠隔セ
ンサー接続」を解説する
http://blog.champierre.com/1047
ScratchX Developer Documentation
https://github.com/LLK/scratchx/wiki
スクラッチャーのためのScratchX入門
http://blog.champierre.com/1078
@jishiha