Discuss Scratch
- Discussion Forums
- » Connecting to the Physical World
- » Ideas for new external sensors.
- ARM32
-
38 posts
Ideas for new external sensors.
Here are some ideas for new external sensors:
Voice Recognition + Search Engine:
Additions:
Wiimote:
Additions:
Changes:
Example:
Voice Recognition + Search Engine:
Additions:
(recognition [text v])
search web for [Scratch] with engine [Google v]
(recording [audio v]?)
say [Hello!] with the speaker until doneExample:
when green flag clicked
forever
wait until <(recognition [text v]) = [Search the web.]>
say [What do you want to search the web for?] with the speaker until done
wait until <not <recording [recognition voice v]?>>
search web for (recognition [text v]) with engine [Google v]
end
Wiimote:
Additions:
set rumble to (100 v)
change rumble by (10)
(wiimote [shake value v]) // All values:
// x position
// y position
// shake value
<wiimote [A v] button pressed> // All values:
// A
// B
// -
// +
// 1
// 2
<[wiimote-pointer v] is in range of x: (-240) y: (180) to x: (240) y: (-180)> // category=sensing
Changes:
<touching [wiimote-pointer v]?>
// New undeletable sprite called "Wiimote Pointer" that has no motion or looks blocks, cannot be cloned or stamped,
// and is always in the position of the wiimote pointer. It can also have costumes, but the default is the player 1
// hand from the Wii console.
Example:
when green flag clicked
forever
if <wiimote [A v] button pressed> then
if <touching [wiimote-pointer v]?> then
broadcast [Start Game v]
stop [this script v]
else
wait until <not <wiimote [A v] button pressed>>
end
end
end
// Remember, I may come up with new ideas.
// Add your own ideas by posting, or talk about my ideas.
Last edited by ARM32 (Dec. 28, 2013 22:21:19)
- MidnightMystique
-
100+ posts
Ideas for new external sensors.
That's cool, perhaps there could be a Siri like thing on Scratch, only with the Scratch Team.
- ARM32
-
38 posts
Ideas for new external sensors.
No, I mean anyone can implement it into their project. That's cool, perhaps there could be a Siri like thing on Scratch, only with the Scratch Team.
- Discussion Forums
- » Connecting to the Physical World
-
» Ideas for new external sensors.