[PictoBloxExtension]
3D and XR Studio Sensing
Extension Description
Sensing blocks detect conditions related to sprites and the stage, allowing interaction and responses based on touch, distance, or other inputs.
-
Available in: Block Coding, Python Coding
-
Mode: Stage Mode
-
WiFi Required: No
-
Compatible Hardware in Block Coding: evive, Quarky, Wizbot, Arduino Uno, Arduino Mega, Arduino Nano, ESP32, T-Watch, Boffin, micro:bit, TECbits, LEGO EV3, LEGO Boost, LEGO WeDo 2.0, Go DFA
-
Compatible Hardware in Python: evive, Quarky, Wizbot, Arduino Uno, Arduino Mega, Arduino Nano, ESP32, T-Watch, Boffin, micro:bit, TECbits, LEGO EV3, LEGO Boost, LEGO WeDo 2.0, Go DFA
-
Object Declaration in Python: .
-
Extension Catergory: 3D and XR Studio
Introduction
Sensing is one of the ten categories of default Scratch blocks. They are color-coded cyan and are used to detect different factors of a project.
Read More
PictoBlox Blocks
The block gets values of the video, either motion (on a scale of 1 to 100) or direction (which way the detected motion is going, measured on the same plane as sprite direction), on either the Stage or the current sprite. If there is no video, the block will return -1. It calculates the values based on “optical flow”.
This block reads the value from the analog pins of boards such as Arduino Uno, Arduino Mega, or Arduino Nano. It returns the 10-bit resolution of the analog pin, with a range of 0 – 1023, which is mapped to the voltage of the pin (usually 0 – 5V). For example, if the value received is 512, then the voltage is roughly 2.5V.
All articles loaded
No more articles to load
Table of Contents