How to use

How to use

  1. Download “Physical Sensor for Scratch” from Android Market
  2. Turn on Scratch “remote sensor connecting”
  3. disable firewall (your PC) or allow Scratch (if using)
  4. connect with same WiFi (Smartphone)
  5. tap connect button! (Android Sensor for Scratch)

Download “Physical Sensor for Scratch” from Android Market

en_generic_rgb_wo_60

Turn on Scratch ver 1.4 “remote sensor connecting”

  1. Start Scratch 1.4 (Sorry, does not work “Scratch 2.0 Offline Editor” )
    Scratch 1.4 download:  https://scratch.mit.edu/scratch_1.4/
  2. Sensing -> slider▼ sensor value -> Right-click
    enableremotesensor 
  3. Select “enable remote sensor connections”
    enableremotesensor2

Disable firewall or allow Scratch (Very important)

– Windows
Very important.
Allow scratch in firewall or disable firewall, While using this APP.

windows firewall scratch

 

note

– Mac OS X

-Linux / raspberry pi (If you use it)

  • add /etc/network/iptables
    -A INPUT -i eth0 -p tcp -m tcp –dport 42001 -j ACCEPT
    -A INPUT -i wlan0 -p tcp -m tcp –dport 42001 -j ACCEPT

Note your Computer IP

Check your Computer IP Address

– Windows

  1. Click on the Start Menu, type cmd in search box, and press Enter.
  2. In the Command Prompt, type ipconfig  and press Enter. Your IP Address is listed to the right of IPv4 Address.

– Mac / Linux / raspberry pi

  1. Terminal
  2. type    ip a

connect same wifi & tap connect button!

  1.  Connect your smartphone to the same wifi as your PC.  It can not be used with cellular only.
  2.  Enter PC IP Address.

  3. Connect.
    connect

Use Scratch

Scratch SmartPhone
compass compass point (north is 0)
distance Near the camera *
light Near the camera *
pressure (when installed) *
slider Volume key
sound Mic
tiltx Lateral movement
tilty Vertical motion
tiltz Height movement

* Sometimes the sensor is not on your smartphone.

 

スクリーンショット_060614_045409_PMスクリーンショット_060614_045253_PMスクリーンショット_060614_045727_PM

Unable to connect

Check the setting of firewall and open TCP port 42001, or allow Scratch.

or Please read here.

or temporarily disable the firewall. google “windows disable firewall”.

t_Screenshot_2014-06-05-18-33-26

use multiple units

If you want to use by two or more sets.
Menu -> Setting -> Prefix
t_Screenshot_2014-06-05-18-20-29_060514_062557_PM

t_Screenshot_2014-06-05-18-20-52

スクリーンショット_060514_062916_PM

3 Responses

  1. vitto
    vitto · 12月 19, 2014 at 03:43:52 · →

    is there a way to make it work with scratch 2 offline editor, where the slider sesning block has been withdrawn ?

  2. Sherif
    Sherif · 2月 26, 2017 at 07:25:27 · →

    It is very nice program I like it

  3. Yong Chen
    Yong Chen · 1月 25, 2018 at 23:55:30 · →

    I love it

コメントをのこす

このエントリーをはてなブックマークに追加