(MaKey MaKey: ShrimpKey!)
(Depersonifed and removed most bold text.)
 
(21 intermediate revisions by 12 users not shown)
Line 1: Line 1:
 
{{Scratch Team Page}}
 
{{Scratch Team Page}}
You can '''connect your Scratch [[project]]s to the physical world''' using several different kinds of devices. 
 
#MaKey MaKey
 
#[[LEGO Education WeDo Robotics Kit|LEGO WeDo Kit]]
 
#[[PicoBoard]] (also known as ScratchBoard)
 
#[http://scratch.saorog.com/ Kinect2Scratch], using Microsoft Kinect
 
  
Each of these work with [[Scratch 1.4]]. Currently MaKey MaKey works with [[Scratch 2.0]], with support planned for the other devices.
+
Scratch [[project]]s can be connected to the physical world using several different kinds of devices. Some are:
 +
# Makey Makey
 +
# [[LEGO Education WeDo Robotics Kit|LEGO WeDo Kit]]
 +
# [[PicoBoard]] (also known as ScratchBoard)
 +
# [http://scratch.saorog.com Kinect2Scratch], using Microsoft Kinect
 +
# [[Dexter Industries GoPiGo For Raspberry Pi|GoPiGo for Raspberry Pi]]
 +
# [[GrovePi for Raspberry Pi]]
  
==MaKey MaKey==
+
Each of these work with [[Scratch 1.4]]. MaKey MaKey and several other devices can connect to [[Scratch 3.0]] by [[Scratch Extension|extensions]].
 +
 
 +
==Makey Makey==
 
[[File:MaKey MaKey Circuit.png|thumb|350px]]
 
[[File:MaKey MaKey Circuit.png|thumb|350px]]
  
 
[[File:makey line drawing.jpg|thumb|350px]]
 
[[File:makey line drawing.jpg|thumb|350px]]
  
MaKey MaKey allows people to turn everyday objects into keys and use them with their computer.  
+
Makey Makey allows people to turn everyday objects into keys and use them with their computer.
  
How does MaKey MaKey work?
+
* Makey Makey works by opening and closing circuits, using the user's body and other objects as conductors. It uses very little electricity, so it is safe, and it won't be felt
*MaKey MaKey works by opening and closing circuits.  
+
* If two alligator clips are attached to the Makey Makey board, an apple and the user's body, when they touch the apple you, the circuit is completed (closed) and the computer recognizes this as a key is pressed. The Makey Makey uses standard "USB input device" drivers, so the computer thinks Makey Makey is a regular keyboard or mouse even though a unique key has been made.
*If you attach two '''alligator clips''' to the MaKey MaKey board and an apple and you, when you touch the apple you complete (close) the circuit and the computer recognizes this as a key is pressed. The computer thinks MaKey MaKey is a regular keyboard or mouse even though you have made your own unique key!
 
  
Example use of MaKey MaKey:
+
The default keys are the arrow keys, the space bar, and left click. They can be remapped using the website.
*To make MaKey MaKey work with Scratch, plug in the '''USB''' to your computer and create a program like you normally would in Scratch. For example, when the right arrow key is pressed, the sprite moves 10 steps.  
+
Example use of Makey Makey:
*Then connect one of the alligator clips to '''Earth''' at the bottom of the MaKey MaKey board and touch the metal at the other end of the '''alligator clip''' with your finger.  
+
* To make Makey Makey work with Scratch, plug in the USB to a computer and create a Scratch program normally. For example, when the right arrow key is pressed, the sprite moves 10 steps.
*Next connect another '''alligator clip''' to the apple and the right arrow on the MaKey MaKey board.  
+
* Then, connect one of the alligator clips to Earth at the bottom of the Makey Makey board and touch the metal at the other end of the alligator clip with a finger.
*When you touch the metal clip and apple at the same time, you complete a circuit and MaKey MaKey sends a signal to your computer saying a key is pressed. Every time you touch the apple your sprite will now move 10 steps!   
+
* Next, connect another alligator clip to the apple and the right arrow on the Makey Makey board.
 +
* When the metal clip and the apple are touched at the same time, the circuit is completed and the Makey Makey sends a signal to the computer saying a key is pressed. Every time the apple is touched, the sprite will now move 10 steps.
  
To buy a MaKey MaKey, visit [http://joylabz.myshopify.com/products/makey-makey-kit MaKey MaKey's website].
+
An alternative to using the steps above is by using the [[Makey Makey Extension]].
  
For information on how to set-up a MaKey MaKey, visit [http://makeymakey.com/howto.php MaKey MaKey Set-Up].
+
To purchase a Makey Makey, visit [http://joylabz.myshopify.com/products/makey-makey-kit Makey Makey's website].
  
For information on different materials to use with MaKey MaKey, visit [http://makeymakey.com/howto.php#materials MaKey MaKey Materials].
+
For information on how to set-up a Makey Makey, visit [http://makeymakey.com/howto.php Makey Makey Set-Up].
  
For information on troubleshooting MaKey MaKey, visit [http://makeymakey.com/howto.php#troubleshooting MaKey MaKey Troubleshooting].
+
For information on different materials to use with Makey Makey, visit [http://makeymakey.com/howto.php#materials Makey Makey Materials].
  
Article on ideas of uses for MaKey MaKey, [http://www.make-digital.com/make/vol33?pg=58#pg58 MaKey MaKey Article].
+
For information on troubleshooting Makey Makey, visit [http://makeymakey.com/howto.php#troubleshooting Makey Makey Troubleshooting].
  
<!-- Building a ShrimpKey is a much cheaper alternative to buying a MakeyMakey: [http://scratch.mit.edu/discuss/topic/13757/ source] -->
+
Article on ideas of uses for Makey Makey, [http://make-digital.com/make/vol33?pg=58#pg58 Makey Makey Article].
 +
 
 +
<!-- Building a ShrimpKey is a much cheaper alternative to buying a Makey Makey: [http://scratch.mit.edu/discuss/topic/13757 source] -->
  
 
==LEGO WeDo==
 
==LEGO WeDo==
Line 41: Line 46:
  
 
{{main|LEGO WeDo Construction Set}}
 
{{main|LEGO WeDo Construction Set}}
The LEGO WeDo kit can be used to make motors and sensors interact with your Scratch project. It has a distance sensor, a tilt sensor, and a motor.
+
The LEGO WeDo kit can be used to make motors and sensors interact with Scratch projects. It has a distance sensor, a tilt sensor, and a motor.
  
 
Example uses of the WeDo parts:
 
Example uses of the WeDo parts:
*Making a machine move when the '''distance sensor''' detects a certain distance.
+
* Making a machine move when the distance sensor detects a certain distance.
*Wave your hand to change the size of a sprite when the '''distance sensor''' detects a certain distance.
+
* Wave a hand to change the size of a sprite when the distance sensor detects a certain distance.
*Using the '''motor''' to spin attached objects.
+
* Using the 'motor to spin attached objects.
*Using the '''distance sensor''' to control the speed of the '''motor''.'
+
* Using the distance sensor to control the speed of the motor.
To find out more about LEGO WeDo parts and how you can use them in Scratch, [[LEGO Education WeDo Robotics Kit]].
+
To find out more about LEGO WeDo parts and how you can use them in Scratch, LEGO Education WeDo Robotics Kit.
  
To purchase LEGO WeDo, visit [http://www.legoeducation.us/eng/product/lego_education_wedo_robotics_construction_set/2096 LEGO Education Website].
+
To purchase LEGO WeDo, visit the [http://legoeducation.us/eng/product/lego_education_wedo_robotics_construction_set/2096 LEGO Education Website].
  
 
==PicoBoard==
 
==PicoBoard==
 
{{main|PicoBoard}}
 
{{main|PicoBoard}}
 
+
{{obsolete feature}}
<ref>https://www.sparkfun.com/products/10311</ref>
 
  
 
[[File:PicoBoard Diagram.png|thumb|400px]]
 
[[File:PicoBoard Diagram.png|thumb|400px]]
  
The PicoBoard provides a way for you to make Scratch projects sense and respond to things going on in the world outside of your computer.
+
The PicoBoard provides a way for you to make Scratch projects sense and respond to events/objects  in the world outside of the computer.
  
 
Examples of use with the PicoBoard:
 
Examples of use with the PicoBoard:
*Use the '''sound sensor''' to make your sprite change how it looks whenever there is a loud sound.
+
* Use the sound sensor to make your sprite change how it looks whenever there is a loud sound.
*Use the '''light sensor''' to program a sprite to hop up or down whenever a shadow passes by.
+
* Use the light sensor to program a sprite to hop up or down whenever a shadow passes by.
*Use the '''slider''' and '''button''' to control a character in a video game.
+
* Use the slider and button to control a character in a video game.
*Use the '''USB cable''' and four sets of '''alligator clips''' that come with the PicoBoard to measure an electrical resistance in a circuit. The alligator clips can be used to build all kinds of custom sensors.
+
* Use the USB cable and four sets of alligator clips that come with the PicoBoard to measure an electrical resistance in a circuit. The alligator clips can be used to build all kinds of custom sensors.
  
For more ideas on what to make visit the [http://www.picocricket.com/picoboard.html PicoBoard website].
+
For more ideas on what to make visit the [http://picocricket.com/picoboard.html PicoBoard website].
  
To get started using the PicoBoard visit the [http://www.picocricket.com/pdfs/Getting_Started_With_PicoBoards.pdf PicoBoard Getting Started Guide].
+
To get started using the PicoBoard visit the [http://picocricket.com/pdfs/Getting_Started_With_PicoBoards.pdf PicoBoard Getting Started Guide].
  
To purchase a PicoBoard visit the [https://www.sparkfun.com/products/10311 SparkFun website].  
+
To purchase a PicoBoard visit the [https://sparkfun.com/products/10311 SparkFun website].
  
If you own a ScratchBoard, a product similar to a PicoBoard that was sold through the Scratch website, the support information you'll find at the [http://www.picocricket.com/picoboard.html PicoBoard's website] is applicable to your product as well.  
+
If you own a ScratchBoard, a product similar to a PicoBoard that was sold through the Scratch website, the support information you'll find at the [http://picocricket.com/picoboard.html PicoBoard's website] is applicable to your product as well.
  
 
If you own a ScratchBoard or PicoBoard and want to know about sensors that you can connect to it, look at the Sensor Types and Sources below.
 
If you own a ScratchBoard or PicoBoard and want to know about sensors that you can connect to it, look at the Sensor Types and Sources below.
  
 
===Sensor Types and Sources===
 
===Sensor Types and Sources===
 
+
The following list shows different types of sensors that have been used in Scratch Sensor Board projects. (They are typically attached to alligator clip-heads plugged into sensor board jacks A, B, C, or D.) Visit the vendor site for pricing and ordering information.
The following list shows different types of sensors that have been used in Scratch Sensor Board projects. (They are typically attached to alligator clip-heads plugged into sensor board jacks A, B, C, or D.) Visit the vendor site for pricing and ordering information.  
 
  
 
Name; Description; Vendor Part Number
 
Name; Description; Vendor Part Number
*'''Switch'''; Switch lever spdt 3A PCB; http://www.digikey.com SW773-ND.  
+
* '''Switch'''; Switch lever spdt 3A PCB; http://digikey.com SW773-ND.
*'''Temperature'''; Thermisor NTC 10K OHM 5%; http://www.digikey.com 317-1258-ND.
+
* '''Temperature'''; Thermisor NTC 10K OHM 5%; http://digikey.com 317-1258-ND.
*'''Light'''; Photocell 5K-20K OHM 4.20 MM; http://www.digikey.com PDV-P9203-ND.
+
* '''Light'''; Photocell 5K-20K OHM 4.20 MM; http://digikey.com PDV-P9203-ND.
*'''Magnetic switch - 1'''; Switch Reed 10-15AT SPST .5A; http://www.digikey.com 420-1047-ND.
+
* '''Magnetic switch - 1'''; Switch Reed 10-15AT SPST .5A; http://digikey.com 420-1047-ND.
*'''Magnetic switch - 2'''; Switch Reed SPST .5A 12-23 A/T; http://www.digikey.com HE502-ND.
+
* '''Magnetic switch - 2'''; Switch Reed SPST .5A 12-23 A/T; http://digikey.com HE502-ND.
*'''Humidity'''; Consists of a metal electrode on a humidity sensitive membrane mounted on a ceramic substrate; http://www.rhopointcomponents.com  SYH-1NC.
+
* '''Humidity'''; Consists of a metal electrode on a humidity sensitive membrane mounted on a ceramic substrate; http://rhopointcomponents.com  SYH-1NC.
  
 
<!-- Thanks to Claudia Urrea for the initial list. -->
 
<!-- Thanks to Claudia Urrea for the initial list. -->
  
{{note|When using resistive sensors with the XO microphone port, it appears that the interesting resistance range goes from around 2k to 5k. (Experimentally determined; your mileage may vary.)}}
+
{{note|When using resistive sensors with the XO microphone port, it appears that the interesting resistance range goes from around 2k to 5k. (Experimentally determined; the user's mileage may vary.)}}
 
 
If you are looking for the files that explain how ScratchBoards/PicoBoards are made, they can be found at the [http://info.scratch.mit.edu/Sensor_Board Sensor Board Technical Information page].
 
  
 
==Kinect2Scratch==
 
==Kinect2Scratch==
 
[[File:Kinect2Scratch1.png|thumb|250px]]
 
[[File:Kinect2Scratch1.png|thumb|250px]]
  
Kinect2Scratch works by using the sensor recognition in Scratch and the '''Microsoft Kinect'''. The '''Microsoft Kinect''' works by recognizing certain bone movements in the human body, such as waving your arm, and Kinect2Scratch has created the software to have Scratch recognize this as well. Now you can use body movements to interact with the programs you create in Scratch!
+
Kinect2Scratch works by using the sensor recognition in Scratch and the Microsoft Kinect. The Microsoft Kinect works by recognizing certain bone movements in the human body, such as waving an arm, and Kinect2Scratch has created the software to have Scratch recognize this as well.
  
To download the Kinect2Scratch software, visit [http://scratch.saorog.com/ Kinect2Scratch's Website].
+
To download the Kinect2Scratch software, visit [http://scratch.saorog.com Kinect2Scratch's Website].
  
 
For the set-up guide on how to install and use Kinect2Scratch, visit [http://scratch.saorog.com/setup.pdf Kinect2Scratch's Set-Up Guide].
 
For the set-up guide on how to install and use Kinect2Scratch, visit [http://scratch.saorog.com/setup.pdf Kinect2Scratch's Set-Up Guide].
  
 
For ideas on what to do with Kinect2Scratch and sample projects, visit [http://scratch.saorog.com/samples.html Kinect2Scratch's Examples].
 
For ideas on what to do with Kinect2Scratch and sample projects, visit [http://scratch.saorog.com/samples.html Kinect2Scratch's Examples].
 +
 +
==GoPiGo for Raspberry Pi==
 +
[[File:Gopigo Raspberry Pi Robot In Scratch.png|right]]
 +
 +
GoPiGo is a robot that is controlled by an onboard Raspberry Pi to create an autonomous vehicle. The Raspberry Pi is a low-cost Linux-based computer that is very popular in classrooms. Once assembled, the GoPiGo can be controlled with Scratch 1.4, found on board the 'Raspberry Pi.
 +
 +
The easiest way to control GoPiGo is through Wi-Fi and a portable computer running VNC viewer. That way, GoPiGo can be untethered. It's also possible to hook it up through an Ethernet cable, or even as a desktop setup with keyboard and monitor.
 +
 +
Details on how to set it up can be found at [http://dexterindustries.com/GoPiGo/getting-started-with-your-gopigo-raspberry-pi-robot-kit Getting Started with GoPiGo]
 +
 +
Example uses:
 +
# Make the GoPiGo go forward, backward, turn, and of course, stop.
 +
# Blink your left turn signal, and then proceed with the turn.
 +
# Take a GoPiGo outside and race others. (Wi-Fi must be accessible)
 +
 +
To purchase a GoPiGo, visit [http://dexterindustries.com/site/?product=gopigo-starter-kit-2 GoPiGo Starter Kit Page]
 +
 +
To see various projects that can be done with a GoPiGo, visit [http://dexterindustries.com/site/?page_id=60 GoPiGo Projects].
 +
 +
==GrovePi for Raspberry Pi==
 +
 +
[[File:DexterInd GrovePi-Base-Kit.jpg|250px|right|Dexter Industries GrovePi Kit]]The '''Dexter Industries GrovePi''' is an Internet of Things (IoT) device built on the Raspberry Pi. The GrovePi can be programmed using the native Scratch installed on the Raspberry Pi (Scratch 1.4 or NuScratch). Programs that read plug-and-play sensors, and control everyday devices can be written.
 +
 +
The GrovePi can be used with the Raspberry Pi Models A, A+, B, B+, 2 and 3.
 +
 +
==See Also==
 +
* [[LEGO Education WeDo Robotics Kit]]
 +
* [[PicoBoard]]
 +
* [[Dexter Industries GoPiGo For Raspberry Pi]]
 +
* [[Connecting to the Physical World (forum)]]
 +
 
==References==
 
==References==
 
<references/>
 
<references/>
 +
 
[[Category:Scratch Connections Tutorials]]
 
[[Category:Scratch Connections Tutorials]]
 +
 +
[[nl:Scratch voor makers]][[de:Scratch mit Hardware verbinden]]

Latest revision as of 05:32, 21 July 2019

Scratch Cat-cropped.png This article has been created and is maintained by the Scratch Team. As such, it should be treated as an official informational page. It may be linked to by several different places on the main site.

Please only make minor changes to the content of this page.

Scratch projects can be connected to the physical world using several different kinds of devices. Some are:

  1. Makey Makey
  2. LEGO WeDo Kit
  3. PicoBoard (also known as ScratchBoard)
  4. Kinect2Scratch, using Microsoft Kinect
  5. GoPiGo for Raspberry Pi
  6. GrovePi for Raspberry Pi

Each of these work with Scratch 1.4. MaKey MaKey and several other devices can connect to Scratch 3.0 by extensions.

Makey Makey

MaKey MaKey Circuit.png
Makey line drawing.jpg

Makey Makey allows people to turn everyday objects into keys and use them with their computer.

  • Makey Makey works by opening and closing circuits, using the user's body and other objects as conductors. It uses very little electricity, so it is safe, and it won't be felt
  • If two alligator clips are attached to the Makey Makey board, an apple and the user's body, when they touch the apple you, the circuit is completed (closed) and the computer recognizes this as a key is pressed. The Makey Makey uses standard "USB input device" drivers, so the computer thinks Makey Makey is a regular keyboard or mouse even though a unique key has been made.

The default keys are the arrow keys, the space bar, and left click. They can be remapped using the website. Example use of Makey Makey:

  • To make Makey Makey work with Scratch, plug in the USB to a computer and create a Scratch program normally. For example, when the right arrow key is pressed, the sprite moves 10 steps.
  • Then, connect one of the alligator clips to Earth at the bottom of the Makey Makey board and touch the metal at the other end of the alligator clip with a finger.
  • Next, connect another alligator clip to the apple and the right arrow on the Makey Makey board.
  • When the metal clip and the apple are touched at the same time, the circuit is completed and the Makey Makey sends a signal to the computer saying a key is pressed. Every time the apple is touched, the sprite will now move 10 steps.

An alternative to using the steps above is by using the Makey Makey Extension.

To purchase a Makey Makey, visit Makey Makey's website.

For information on how to set-up a Makey Makey, visit Makey Makey Set-Up.

For information on different materials to use with Makey Makey, visit Makey Makey Materials.

For information on troubleshooting Makey Makey, visit Makey Makey Troubleshooting.

Article on ideas of uses for Makey Makey, Makey Makey Article.


LEGO WeDo

LEGO WeDo.jpg
Main article: LEGO WeDo Construction Set

The LEGO WeDo kit can be used to make motors and sensors interact with Scratch projects. It has a distance sensor, a tilt sensor, and a motor.

Example uses of the WeDo parts:

  • Making a machine move when the distance sensor detects a certain distance.
  • Wave a hand to change the size of a sprite when the distance sensor detects a certain distance.
  • Using the 'motor to spin attached objects.
  • Using the distance sensor to control the speed of the motor.

To find out more about LEGO WeDo parts and how you can use them in Scratch, LEGO Education WeDo Robotics Kit.

To purchase LEGO WeDo, visit the LEGO Education Website.

PicoBoard

Main article: PicoBoard


Archive.png This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective.
PicoBoard Diagram.png

The PicoBoard provides a way for you to make Scratch projects sense and respond to events/objects in the world outside of the computer.

Examples of use with the PicoBoard:

  • Use the sound sensor to make your sprite change how it looks whenever there is a loud sound.
  • Use the light sensor to program a sprite to hop up or down whenever a shadow passes by.
  • Use the slider and button to control a character in a video game.
  • Use the USB cable and four sets of alligator clips that come with the PicoBoard to measure an electrical resistance in a circuit. The alligator clips can be used to build all kinds of custom sensors.

For more ideas on what to make visit the PicoBoard website.

To get started using the PicoBoard visit the PicoBoard Getting Started Guide.

To purchase a PicoBoard visit the SparkFun website.

If you own a ScratchBoard, a product similar to a PicoBoard that was sold through the Scratch website, the support information you'll find at the PicoBoard's website is applicable to your product as well.

If you own a ScratchBoard or PicoBoard and want to know about sensors that you can connect to it, look at the Sensor Types and Sources below.

Sensor Types and Sources

The following list shows different types of sensors that have been used in Scratch Sensor Board projects. (They are typically attached to alligator clip-heads plugged into sensor board jacks A, B, C, or D.) Visit the vendor site for pricing and ordering information.

Name; Description; Vendor Part Number


Note Note: When using resistive sensors with the XO microphone port, it appears that the interesting resistance range goes from around 2k to 5k. (Experimentally determined; the user's mileage may vary.)

Kinect2Scratch

Kinect2Scratch1.png

Kinect2Scratch works by using the sensor recognition in Scratch and the Microsoft Kinect. The Microsoft Kinect works by recognizing certain bone movements in the human body, such as waving an arm, and Kinect2Scratch has created the software to have Scratch recognize this as well.

To download the Kinect2Scratch software, visit Kinect2Scratch's Website.

For the set-up guide on how to install and use Kinect2Scratch, visit Kinect2Scratch's Set-Up Guide.

For ideas on what to do with Kinect2Scratch and sample projects, visit Kinect2Scratch's Examples.

GoPiGo for Raspberry Pi

Gopigo Raspberry Pi Robot In Scratch.png

GoPiGo is a robot that is controlled by an onboard Raspberry Pi to create an autonomous vehicle. The Raspberry Pi is a low-cost Linux-based computer that is very popular in classrooms. Once assembled, the GoPiGo can be controlled with Scratch 1.4, found on board the 'Raspberry Pi.

The easiest way to control GoPiGo is through Wi-Fi and a portable computer running VNC viewer. That way, GoPiGo can be untethered. It's also possible to hook it up through an Ethernet cable, or even as a desktop setup with keyboard and monitor.

Details on how to set it up can be found at Getting Started with GoPiGo

Example uses:

  1. Make the GoPiGo go forward, backward, turn, and of course, stop.
  2. Blink your left turn signal, and then proceed with the turn.
  3. Take a GoPiGo outside and race others. (Wi-Fi must be accessible)

To purchase a GoPiGo, visit GoPiGo Starter Kit Page

To see various projects that can be done with a GoPiGo, visit GoPiGo Projects.

GrovePi for Raspberry Pi

Dexter Industries GrovePi Kit
The Dexter Industries GrovePi is an Internet of Things (IoT) device built on the Raspberry Pi. The GrovePi can be programmed using the native Scratch installed on the Raspberry Pi (Scratch 1.4 or NuScratch). Programs that read plug-and-play sensors, and control everyday devices can be written.

The GrovePi can be used with the Raspberry Pi Models A, A+, B, B+, 2 and 3.

See Also

References