Table of Contents

move () in () axis in () ms

Description

This block allows the user to control the end-effector of a robotic arm to move in a specified axis by a set value, with all other axes remaining constant. The input parameters of this block include a numerical value to specify how far the end-effector should move, a drop-down menu to select the axis along which the motion happens, and an input value to set the time to complete the move.

Input Parameters

  1. Value by which the robotic arm moves.
  2. Drop down to choose between X, Y, and Z axis.
  3. Time to complete the move.

Example

Learn how to use PictoBlox to control a Quarky robotic arm wirelessly using keyboard keys.

Learn How to Control a Quarky Robotic Arm Wirelessly

Are you looking for a way to make a robotic arm that can be controlled wirelessly? If so, you’ve come to the right place! This tutorial will teach you how to control a Quarky robotic arm using the Bluetooth communication extensions of Quarky and PictoBlox. With this technique, you’ll be able to provide precise control over its movement and actions from a remote location.

The robotic arm can be used for various tasks, such as picking up objects or manipulating tools. It can also be used for applications like manufacturing, medical, research, and exploration. This type of robotic arm will increase the productivity and safety of operations that would otherwise be too hazardous or inaccessible for humans.

Let’s get started learning how to create a wirelessly controlled robotic arm.

 

Project

In this project, we are making Quarky Robotic Arm to be controlled wirelessly using keyboard inputs. Following are the controls we will program:

  1. Right Arrow – Move 10mm in X axis
  2. Left Arrow – Move -10mm in X axis
  3. Up Arrow – Move 10mm in Z axis
  4. Down Arrow – Move -10mm in Z axis
  5. w Key – Move 10mm in Y axis
  6. s Key – Move -10mm in Y axis
  7. o Key – Open gripper
  8. c Key – Close gripper

Code

  1. Open the Pictoblox application.
  2. Select the Block Coding Environment.
  3. Click on the Robotic Arm extension available in the left corner.

Following is the code to implement the project:

  1. When the green flag is clicked the Robotic Arm initializes and goes to the home position. Then we set the gripper open and close angle for the project. A variable named time is created to control the speed of the gripper. Finally, a loop is implemented calling custom blocks for controlling the X axis, Y axis, Z axis, and gripper controls.
  2. X Axis Control block moves the gripper in the X-axis.
  3. Y Axis Control block moves the gripper in the Y-axis.
  4. Z Axis Control block moves the gripper in the Z-axis.
  5. Gripper Control block open or close the gripper on command.

Run the program to test the code.

Output

 

You can explore doing pick and place using the robotic arm.

Read More
All articles loaded
No more articles to load