Misty Lessons
  • Misty Lessons
    • 📖Welcome to Misty Lessons
    • 📚Get to know your Misty
    • 📲Connect to Misty
    • 👩‍💻Misty Studio
    • 🖥️Desktop Environment
    • ⬆️Update your Misty
    • 👥Projects
  • Blockly
    • 🧩Blockly Lessons
      • 🤸Lesson 1: Movement
      • 🎶Lesson 2: Voice and Sound
      • 🎭Lesson 3: Expressions
      • 🎥Lesson 4: Robot Cinema
      • 🛠️Lesson 5: Events
      • ☺️Lesson 6: Face recognition
      • 🔢Lesson 7: Variables and Functions
      • 💬Lesson 8: NLP
    • 🏫Blockly projects
  • Blockly Elements
    • ⚛️Misty Blocks
      • Movement
      • Speech
      • Audio
      • Vision
      • Events
      • Miscellaneous
      • NLP
      • System
    • 🔁Basic Blocks
      • Logic
      • Loops
      • Math
      • Text
      • Lists
    • 🅰️Advanced Blocks
      • Variables
      • Functions
  • Python
    • 🐍Python Lessons
      • 🦿Lesson 1: Loco-motion
      • 🤖Lesson 2 : Build a character
      • 🧠Lesson 3: Create memories
      • ⚒️Lesson 4: Event skills
      • 👀Lesson 5: Expand awareness
      • 🔗Lesson 6: Compact code
      • 🗣️Lesson 7: Start a conversation
  • Python Elements
    • 🐸Misty Python API
      • Motion and Mobility
      • Display and LED
      • Record Assets
      • Change/Remove Assets
      • Stream Assets
      • Get Assets
      • Events
      • Sensor Events
      • Speech and NLP
      • Arduino Backpack
      • System
      • Slam
    • 📗Python Definitions
  • Python Projects
    • 🔮MistyGPT
    • 🚨Misty Intruder Alert
    • 📺Conference Assistant
    • 🏷️QR code detector
    • 🕵️‍♂️Misty follow human
    • 👋Misty wave back
    • 🖲️Misty OA
    • 🌐Get weather
    • 🚚Misty Delivery
    • 🫂Motivational Misty
    • 🖼️Misty Museum Guide
    • 🎃Who for Halloween
  • ARDUINO
    • ♾️Arduino Backpack
    • 🦎Arduino
    • 🔧Arduino Lessons
      • 🔌Arduino to Misty
      • ➕Misty to Arduino
  • ARDUINO PROJECTS
    • 🛠️Misty Tracker
    • 🦾Misty Arm
  • Community Projects
    • 🌤️Misty weather forecaster
  • HARDWARE EXTENSION
    • ⚙️Arduino breadboard support
    • 🦾Misty arm
    • 🥤Tin holder
  • Resource Database
    • 📁Image files
    • 📁Audio files
    • 📁Languages
    • 📁Known objects
    • 📁NLP Actions
    • 📁Action Commands
    • 📁ChatGPT PDF files
    • 📁AR Tag Dictionary
    • ⚙️Technical Specifications
Powered by GitBook
On this page
  • Head movement
  • Arm movement
  • Drive command
  • Timed Drive Command
  • Drive arc
  • Motor controls
  1. Blockly Elements
  2. Misty Blocks

Movement

Last updated 1 year ago

In this folder, you can find detailed information about the movement blocks and understand Misty's range of motion.

When you start building your first sequence with movement blocks, it's important to keep in mind that if you need to have a timed delay between each block, otherwise Misty won't have enough time to execute all of the action. You can set a delay using the timer block found in the 'Miscellanious' tab.

Head movement

Misty's head has three ranges of motion head and the values are calculated in degrees.

The first one is the pitch, its range is -40 (Up) to 25 (Down) . It represents the front movement up and down of the head, as you can see in the first vector.

The second one is roll, its range is -42 (Left) to 42 (Right). It represents the side movement of the head, as you can see in the last doodle.

The thirds is yaw, its range is -90 (Left) to 90 (Right). It represents the lateral movement of the head, right to left, as you can see in the second vector.

The last parameter to set is the speed with which Misty will achieve that position. Its range is [1,100].

Arm movement

Misty has the possibility to move her arms on one singular plane. The values are also in degrees.

The range of Misty's arms is -90 (Up) to 90 (Down). The velocity parameter is the speed that Misty will use to achieve that position with a range between 1 and 100.

Drive command

The drive block allows you to move Misty forward or backward at a specific speed.

When using this block, it's important to understand how linear velocity (speed in a straight line) and angular velocity (speed and direction of rotation) work together:

  • Linear velocity (-100) and angular velocity (0) = driving straight backward at full speed.

  • Linear velocity (100) and angular velocity (0) = driving straight forward at full speed.

  • Linear velocity (0) and angular velocity (-100) = rotating clockwise at full speed.

  • Linear velocity (0) and angular velocity (100) = rotating counter-clockwise at full speed.

  • Linear velocity (non-zero) and angular velocity (non-zero) = Misty drives in a curve.

Parameters:

  • Linear velocity - A percent value that sets the speed for Misty when she drives in a straight line. The default value range is from -100 (full speed backward) to 100 (full speed forward).

  • Angular velocity- A percent value that sets the speed and direction of Misty's rotation. The default value range is from -100 (full-speed rotation clockwise) to 100 (full-speed rotation counter-clockwise).

The maximum speed achievable from misty is about 0.5m/s.

If the robot is not moving forward or backward, try to reboot it or refresh the interface.

Timed Drive Command

Using a drive block with a timer allows you decide how long you want Misty to drive in a particular direction. While the timer is set in seconds, you can also write half of seconds and use the comma freely.

Drive arc

If you're not a fan of straight lines, you can drive Misty in an arc with the drive arc block. Here you need to calculate the amount of time you need to execute the whole arc depending on the heading and radius that you've chosen.

There are several parameters:

  • Heading - This is the absolute heading Misty should obtain when the arc is complete. To set the absolute heading, use either: 0 to 360, where 0 is straight ahead, 90 is directly to the left, 180 is straight behind, and 270 is directly to the right, or: -180 to 180, where 0 is straight ahead, 90 is directly to the left, 180 and -180 are straight backwards, and -90 is directly to the right.

  • Radius - The radius (in meters) of the arc.

  • Duration - The duration (in seconds) that Misty needs to execute the arc.

Motor controls

These two blocks control the movement and they are pretty self-explanatory, you will find that most Blockly language is. The first stops only the driving blocks and the second stops all other movement blocks . You can also use the 'Halt' button in the top right corner of Misty Studio to stop the program.

Note: We don't recommend using the halt button frequently. Misty's drive motors remain engaged after she stops moving and attempt to hold her in her current position. This can be useful when Misty needs to stop moving while she's on an incline; sending Halt keeps the motors engaged so that Misty does not roll down the slope. Stopping Misty's driving with the stop blocks should suffice under most circumstances and can prolong the life of your robot's drive motors.

⚛️
movement blocks
head movements block
arms movement block
right and left hand
drive block
drive by time block
drive arc block
stop driving and stop all motors blocks