Variable Watch icon Variable Watch Live view of script variables, types, sizes and values for debugging; auto-refresh, hex view, pause/clear; may affect program performance. Try it →
Tutorial
Published — Updated

Create Auto Position Actions From EZ-Script

This tutorial uses the ControlCommand() EZ-Script command that instructs the Auto Position control to create a frame and respective action from the current servo positions. Every time the ControlCommand() is executed, another frame is added to the specified action with the current servo positions.

The result is that you end up creating an animation. This can be done using external controllers, such as the WiiMote, Joystick or even touch screen controls.


Related Hardware (view all EZB hardware)
JD Humanoid by EZ-Robot
JD humanoid robot kit - WiFi-enabled, 16 DOF with metal-gear servos; easy, fun, educational, available from the EZ-Robot online store.
Wi-Fi / USB
Servos 24
Camera
Audio
UART 3
I2C
ADC 8
Digital 24
EZ-B V4 by EZ-Robot
EZ-B v4/2 robot controller: dual Cortex ARM, Wi-Fi, audio/video, 24 servo/digital ports, I2C/UART, camera and Synthiam ARC control for custom robots
Wi-Fi / USB
Servos 24
Camera
Audio
UART 3
I2C
ADC 8
Digital 24
EZ-B Iotiny by EZ-Robot
Control IoTiny with Synthiam ARC: 100MHz Cortex‑M4 Wi‑Fi IoT/robot controller-camera, servos, ADC, I2C and digital I/O for easy internet automation
Wi-Fi / USB
Servos 8
Camera
Audio
UART
I2C
ADC
Digital
Program Arduino Uno with EZB firmware for Synthiam ARC control; pinouts, PWM pins and frequency details for Arduino boards.
USB
Servos 12
Camera
Audio
UART
I2C
ADC 6
Digital 14
Synthiam ARC enables Arduino Mega 2560 control with 8 ADC, 13 PWM, 21 digital ports and 24 servos; includes firmware, shield and tutorials
USB
Servos 24
Camera
Audio
UART 3
I2C
ADC 8
Digital 21
Darwin Mini by Robotis
ROBOTIS MINI for Synthiam ARC: 16 XL-320 servos, OpenCM9.04 controller, 3D-printable frame and Bluetooth/firmware setup tips.
USB / Bluetooth
Servos 16
Camera
Audio
UART
I2C
ADC
Digital
Opencm 9.04 by Robotis
Control Robotis DYNAMIXEL servos with OpenCM9.04-C using Synthiam ARC - XL-320 TTL support, expansion board for AX/MX, UART0 or UART2 selectable
USB
Servos 200
Camera
Audio
UART
I2C
ADC
Digital
Opencr by Robotis
OpenCR 1.0 ARM robot controller compatible with Synthiam ARC-Arduino firmware install, 921,600 baud, pin mapping, PWM & EZ-Script
USB
Servos 200
Camera
Audio
UART
I2C
ADC
Digital
Lattepanda by DF Robot
LattePanda runs Windows and Synthiam ARC, with onboard Arduino (EZB firmware) for GPIO and direct EZ‑B v4 hardwire control with low latency.
Wi-Fi / USB
Servos 12
Camera
Audio
UART 1
I2C
ADC 5
Digital 12
Connect Synthiam ARC to Arduino Leonardo via USB using EZB firmware to control GPIO, PWM, servos, and ADC; enable DTR in ARC connection.
USB
Servos 12
Camera
Audio
UART Varies
I2C
ADC Varies
Digital Varies
Esp32 by Espressif
Control ESP32 boards with Synthiam ARC: EZB-like firmware for GPIO, PWM/servos, serial, WiFi modes, safe pins, wiring and power tips.
Wi-Fi
Servos Varies
Camera
Audio
UART Varies
I2C
ADC Varies
Digital Varies

Step 1

This video explains the step by step example of how to use the following controlcommands for the Auto Position.


ControlCommand("Auto Position", AddFrameToAction, "Action Name")
ControlCommand("Auto Position", AddFrameToAction, [delay], [steps], [speed], "Action Name")
ControlCommand("Auto Position", AddPauseToAction, [delay in ms], "Action Name")
ControlCommand("Auto Position", DeleteActionAndAssociatedFrames, "Action Name")


ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

#9  

Wow! Wish I had known about this one earlier, that's a very advanced way to do autoposition.