Arduino_EMBRYO_2

Device Control

Control stepper motor
Allows you to control a stepper motor in a linear axis, EArduino Embryo 2

Compatibility

This library is compatible with the avr, megaavr architectures so you should be able to use it on the following Arduino boards:

Compatibility Note

Note: while the library is supposed to compile correctly on these architectures, it might require specific hardware features that may be available only on some boards.

Releases

To use this library, open the Library Manager in the Arduino IDE and install it from there.

Usage

This library allows Arduino boards to control stepper motors to be used in the EMBRYO 2 educational modular machine. The linear axis of this machine are controlled with the stepper motor, buttons and switches. This library has two classes:

  • StepMotor class: allows us to control an individual linear axis.
  • Embryo class: allows us to control two coupled linear axis.

Attention: For the library to work the endstops must be configure as pull-down, and the forward direction must rotate the step motor clockwise and backward direction must rotate the step motor anticlockwise.

To use this library:

#include <Arduino_Embryo_2.h>

Circuit

  • X-axis motor connections Step motor connections

  • Y-axis motor connections Step motor connections

  • Linear axis endstops Linear axis

StepMotor

Embryo Class Methods