() motor ()

Free or lock motor

() motor () block is a stack block available in actuators extension for evive and all Arduino boards. The block free or locks the motor connected to the selected slot from evive, Arduino Uno, Mega & Nano.

Input Parameters

  1. Motor stopping action:
    1. Lock: This means that both the motor output pins will be HIGH, resulting in stopping the motor. But in this case, the motor also resists any rotational movement. This is like the brake.
    2. Free:  This means that both the motor output pins will be LOW, resulting in stopping the motor. But in this case, the motor if free for any rotational movement. This is like the clutch.
  2. Motor channel:
    1. evive: The motor channel can be motor channel 1 or motor channel 2.
      evive motor channel
    2. Arduino Uno, Mega, and Nano: The motor channel can be 1-4 depending on which channel has been initialized previously using connect motor () direction 1 () direction 2 () & PWM () block.  
evive Notes Icon
Note: This block is available in both Upload mode and Stage mode.

Example

  1. This script locks and frees the motor.

run motor example upload mode

Content is available under CC BY-SA 4.0 unless otherwise noted.

Related Tutorials, Projects & Documentation

DC Motor

Introduction evive has two inbuilt motor control units with which you can control motors with a current limit of 1A each. It uses an SN754410NE…
3D-Printed-Text-Display

DIY 3D Printed Text Display

This project will show you how to make a DIY home decor with animated text using Camshaft mechanism that can be controlled using a Smartphone.

All articles loaded
No more articles to load
PictoBlox Supported Boards
Extensions
Close Menu
×

Cart