01 TM SuperModified Testing with Arduino

Similar documents
AVR1922: Xplain Board Controller Firmware. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

MODFLEX MINI GATEWAY ETHERNET USER S GUIDE

APPLICATION NOTE. AT07175: SAM-BA Bootloader for SAM D21. Atmel SAM D21. Introduction. Features

AT88CK490 Evaluation Kit

USER GUIDE EDBG. Description

USER GUIDE. ZigBit USB Stick User Guide. Introduction

8-bit. Application Note. Microcontrollers. AVR282: USB Firmware Upgrade for AT90USB

32-bit AVR UC3 Microcontrollers. 32-bit AtmelAVR Application Note. AVR32769: How to Compile the standalone AVR32 Software Framework in AVR32 Studio V2

How To Use An Atmel Atmel Avr32848 Demo For Android (32Bit) With A Microcontroller (32B) And An Android Accessory (32D) On A Microcontroller (32Gb) On An Android Phone Or

Atmel AVR4920: ASF - USB Device Stack - Compliance and Performance Figures. Atmel Microcontrollers. Application Note. Features.

udrive-usd-g1 Embedded DOS micro-drive Module Data Sheet

Dell One Identity Cloud Access Manager How to Configure vworkspace Integration

AVR1510: Xplain training - XMEGA USART. 8-bit Microcontrollers. Application Note. Prerequisites. 1 Introduction

AVR1900: Getting started with ATxmega128A1 on STK bit Microcontrollers. Application Note. 1 Introduction

APPLICATION NOTE. Atmel AT02985: User s Guide for USB-CAN Demo on SAM4E-EK. Atmel AVR 32-bit Microcontroller. Features. Description.

Application Note. C51 Bootloaders. C51 General Information about Bootloader and In System Programming. Overview. Abreviations

CryptoAuth Xplained Pro

APPLICATION NOTE Atmel AT02509: In House Unit with Bluetooth Low Energy Module Hardware User Guide 8-bit Atmel Microcontroller Features Description

formerly Help Desk Authority Quest Free Network Tools User Manual

Dell Spotlight on Active Directory Server Health Wizard Configuration Guide

Dell InTrust Preparing for Auditing Cisco PIX Firewall

Using the RS232 serial evaluation boards on a USB port

SMARTCARD XPRO. Preface. SMART ARM-based Microcontrollers USER GUIDE

AN10866 LPC1700 secondary USB bootloader

APPLICATION NOTE. AT16268: JD Smart Cloud Based Smart Plug Getting. Started Guide ATSAMW25. Introduction. Features

AVR1600: Using the XMEGA Quadrature Decoder. 8-bit Microcontrollers. Application Note. Features. 1 Introduction. Sensors

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

APPLICATION NOTE. Atmel AT04389: Connecting SAMD20E to the AT86RF233 Transceiver. Atmel SAMD20. Description. Features

Application Note. 8-bit Microcontrollers. AVR270: USB Mouse Demonstration

Application Note. 8-bit Microcontrollers. AVR272: USB CDC Demonstration UART to USB Bridge

Dell Statistica Statistica Enterprise Installation Instructions

Introduction to Version Control in

AVR1309: Using the XMEGA SPI. 8-bit Microcontrollers. Application Note. Features. 1 Introduction SCK MOSI MISO SS

Spotlight Management Pack for SCOM

User Manual. AS-Interface Programmer

8051 Flash Microcontroller. Application Note. A Digital Thermometer Using the Atmel AT89LP2052 Microcontroller

Atmel AVR4903: ASF - USB Device HID Mouse Application. Atmel Microcontrollers. Application Note. Features. 1 Introduction

AVR115: Data Logging with Atmel File System on ATmega32U4. Microcontrollers. Application Note. 1 Introduction. Atmel

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

AT91SAM ARM-based Flash MCU. Application Note

APPLICATION NOTE. Secure Personalization with Transport Key Authentication. ATSHA204A, ATECC108A, and ATECC508A. Introduction.

RFRB0413 RF Ranging Base (Preliminary)

Using CryptoMemory in Full I 2 C Compliant Mode. Using CryptoMemory in Full I 2 C Compliant Mode AT88SC0104CA AT88SC0204CA AT88SC0404CA AT88SC0808CA

New Features and Enhancements

USB / Data-Acquisition Module NOW LEAD-FREE

AVR033: Getting Started with the CodeVisionAVR C Compiler. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Atmel AVR4921: ASF - USB Device Stack Differences between ASF V1 and V2. 8-bit Atmel Microcontrollers. Application Note. Features.

APPLICATION NOTE. Authentication Counting. Atmel CryptoAuthentication. Features. Introduction

AVR287: USB Host HID and Mass Storage Demonstration. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Quest vworkspace Virtual Desktop Extensions for Linux

Dell Unified Communications Command Suite - Diagnostics 8.0. Data Recorder User Guide

Dell Statistica Document Management System (SDMS) Installation Instructions

4.0. Offline Folder Wizard. User Guide

Dell InTrust Preparing for Auditing and Monitoring Microsoft IIS

AVR32701: AVR32AP7 USB Performance. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AN2680 Application note

FN:PCMCSET-M1.DOC. PCMCSET SOFTWARE for ATS Master Clocks System Clocks and Displays

Spotlight Management Pack for SCOM

APPLICATION NOTE. Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Atmel AVR 8-bit Microcontroller. Introduction.

Application Note. Atmel ATSHA204 Authentication Modes. Prerequisites. Overview. Introduction

ChangeAuditor 5.6. For Windows File Servers Event Reference Guide

Dell Migration Manager for Enterprise Social What Can and Cannot Be Migrated

Dell Recovery Manager for Active Directory 8.6. Quick Start Guide

Dell InTrust Preparing for Auditing CheckPoint Firewall

AVR1318: Using the XMEGA built-in AES accelerator. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V th November L6470 Stepper Motor Shield

SN 132 SNAPstick QUICK START GUIDE

DATASHEET. ADAM Arduino Display Adaptor Module. Arduino Compatible Shield P/N: 4Display-Shield-FT843 For the 4D Systems 4DLCD-FT843 Display

AVR32138: How to optimize the ADC usage on AT32UC3A0/1, AT32UC3A3 and AT32UC3B0/1 series. 32-bit Microcontrollers. Application Note.

AVR353: Voltage Reference Calibration and Voltage ADC Usage. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR030: Getting Started with IAR Embedded Workbench for Atmel AVR. 8-bit Microcontrollers. Application Note. Features.

Bluetooth + USB 16 Servo Controller [RKI-1005 & RKI-1205]

Security Analytics Engine 1.0. Help Desk User Guide

UM0462 User manual. STM32 and STM8 Flash loader demonstrator. Introduction

AN Boot mode jumper settings for LPC1800 and LPC4300. Document information

ChangeAuditor 6.0 For Windows File Servers. Event Reference Guide

Craig Pelkie Bits & Bytes Programming, Inc. craig@web400.com

Dell Statistica. Statistica Document Management System (SDMS) Requirements

How to Deploy Models using Statistica SVB Nodes

Active Directory Change Notifier Quick Start Guide

APPLICATION NOTE. AT05558: Wireless Manufacturing Test Kit. Atmel ATmega256RFR2. Description. Features

Temperature & Humidity SMS Alert Controller

PC Base Adapter Daughter Card UART GPIO. Figure 1. ToolStick Development Platform Block Diagram

Introduction The IMX-1 mixer allows single-stick driving for tank drive style robots. One feature that sets it apart from other mixers is the third in

AVR106: C Functions for Reading and Writing to Flash Memory. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

APPLICATION NOTE. Atmel AVR443: Sensor-based Control of Three Phase Brushless DC Motor. Atmel AVR 8-bit Microcontrollers. Features.

APPLICATION NOTE. Atmel LF-RFID Kits Overview. Atmel LF-RFID Kit. LF-RFID Kit Introduction

TWR-KV31F120M Sample Code Guide for IAR Board configuration, software, and development tools Rev.0

DK40 Datasheet & Hardware manual Version 2

COM Port Stress Test

Work with Arduino Hardware

APPLICATION NOTE. Atmel AVR2033: SAM-ICE Adapter Hardware User Manual. 8-bit Atmel Microcontrollers. Features. Introduction

Self Help Guides. Create a New User in a Domain

Using Self Certified SSL Certificates. Paul Fisher. Quest Software. Systems Consultant. Desktop Virtualisation Group

How To Develop A Toolstick

Software Prerequisites Linux Ubuntu LTS. Estimated completion time: 15min. The goal of this hands-on is to:

Testing PCI/ISA & PCMCIA Serial Cards

SUDT AccessPort TM Advanced Terminal / Monitor / Debugger Version 1.37 User Manual

INTRODUCTION TO SERIAL ARM

Transcription:

01 TM SuperModified Testing with Arduino 1. Preinstalled cables The Supermodified controller comes with several wires soldered. By default the power and RS485 cables are soldered. I2C and legacy RC servo interface cables can also be soldered upon request. These are represented in the schematic below. Please note that the pre-soldered cables always have the illustrated colors. 01 TM SuperModified Miniature Controller for DC Motors The robotic rebirth of the hobby servo Testing with Arduino 1/9

2. Prerequisites Windows XP or later. Arduino installation. It can be downloaded at: http://arduino.cc/en/main/software 01 TM Supermodified Arduino library files. They can be downloaded at http://www.01mechatronics.com/sites/default/files/docs/zeroonesupermodified.zip After downloading the archive with the Supermodified Arduino library simply unzip it inside your Arduino libraries folder. This is usually C:/Program Files/Arduino/libraries. 3. Connections 3.1. UART The Arduino library supports UART, RS485 and I2C communication to the Supermodified controller. Connections and examples for each case follow. The connections needed for UART operation are illustrated below: Important Note: The Arduino must have the external power supply connected. Almost any motor can draw more than 500mA of current which is usually the USB maximum current. 2/9

3.2. RS485 The connections needed for RS485 operation are illustrated below. An external RS485 transceiver is necessary in this case as can be seen on the schematic. Important Note: The Arduino must have the external power supply connected. Almost any motor can draw more than 500mA of current which is usually the USB maximum current. 3/9

3.3. I2C The connections needed for I2C operation are illustrated below. Although the Arduino Wire library activates the MCU internal pull up resistors, it is recommended to connect two external ones of approx. 2KOhm each. Important Note: The Arduino must have the external power supply connected. Almost any motor can draw more than 500mA of current which is usually the USB maximum current. 4/9

3.4. Legacy RC interface The connections needed for legacy RC interface are illustrated below. Note that according to 01 TM Supermodified firmware, standard PPM pulses can be interpreted in different manner, allowing e.g. for speed instead of position control. Also the angular range can be manipulated with different firmware. Please let us know your requirements and a custom firmware will be available as soon as you ask. Important Note: The Arduino must have the external power supply connected. Almost any motor can draw more than 500mA of current which is usually the USB maximum current. 5/9

4. Testing with Arduino After installing the library and making the necessary connections go ahead and try running the appropriate example. From the Arduino menu go File > Examples > ZerooneSupermodified > test. Compile and download the example. Then open the serial monitor and configure it at 57600 baud. 6/9

Before trying out some of the available commands, go ahead and check that the controller is currently not applying any force on the motor. Try to move the shaft of the motor and notice that it rotates freely. Now type 1 on the serial monitor and press enter. The motor now holds its position firmly. Type 3 and press enter. The motor moves with a velocity of 5000 ticks/sec. Type 4 and hit enter. The motor moves with a velocity of - 5000 ticks/sec. There are some strange characters on the serial monitor. They are the controller s response to the command just received. Because they are in binary and not ASCII format they do not display correctly on Arduino s serial monitor. You can monitor them on a terminal that displays bytes received from serial in hexadecimal representation. The base unit for the 01 TM Supermodified controller is the encoder tick. The MagEnc utilizes an absolute encoder that has 32768 ticks per revolution. So in order to instruct the controller to do a full turn you must tell the controller to move by 32768 ticks. All commands utilize the encoder tick as a base unit. Thus velocities are in ticks/sec and accelerations in ticks/sec 2. Testing with legacy RC-Interface: This is supported by the core Arduino library Servo.h 5. Warnings and errors Try pressing 2 followed by enter and then 3 followed by enter. The motor does not move at all and at the serial monitor this message appears: Communication warning 20 -> 0x14 in hex format. You can see what exactly this means in the error code reference section of the Supermodified datasheet: If you try to execute any command after that, it will fail with the same error code. This is 7/9

because the Supermodified controller needs to be explicitly instructed to erase the error. There are many good reasons for this and some of them are related to safety. So if you want to continue using the controller you must issue a RESET ERRORS command. Hit 5 and enter and then 1 and enter and 3 and enter. You have now reset the error, started the controller and instructed the motor to move at 5000 ticks/sec. Now disconnect the Rx and Tx wires and try hitting 2 and then enter. The Arduino responds with Communication warning 105. Warnings with a code of 100+ are issued by Arduino itself. You can see what this means by referring to the library header file: C:\Program Files\Arduino\libraries\ZerooneSupermodified\ ZerooneSupermodified.h In this case a response timeout has occurred. This means that the Supermodified did not issue a valid response within the predefined time window of 200ms ( RESPONSE_TIMEOUT_MS). 8/9

6. Arduino as a USB <> UART / RS485 bridge If you have an Arduino that has an IC socket and the microcontroller can be removed it is possible to use the board without the microcontroller as a USB<>UART or USB<>RS485 bridge. For UART or RS485 the connections are illustrated below: With these connections you can use your Arduino board exactly as an USB<>UART / USB/RS485 bridge. Please refer to Testing with USB<>UART on how to easily send commands to the Supermodified controller. 7. Contents 1. Preinstalled cables... 1 2. Prerequisites... 2 3. Connections... 2 3.1. UART... 2 3.2. RS485... 3 3.3. I2C... 4 3.4. Legacy RC interface... 5 4. Testing with Arduino... 6 5. Warnings and errors... 7 6. Arduino as a USB <> UART / RS485 bridge... 9 7. Contents... 9 Disclaimer: The information in this document is provided in connection with 01 Mechatronics products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of 01Mechatronics products. EXCEPT AS SET FORTH IN 01 MECHATRONICS TERMS AND CONDITIONS OF SALE LOCATED ON 01 MECHATRONICS WEB SITE, 01 MECHATRONICS ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL 01 MECHATRONICS BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF 01 MECHATRONICS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 01 Mechatronics makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. 01 Mechatronics does not make any commitment to update the information contained herein. Unless specifically provided otherwise, 01 Mechatronics products are not suitable for, and shall not be used in, automotive applications. 01 Mechatronics s products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life. 2015 ZEROONE LTD. All rights reserved. 01 TM ZEROONE LTD 01 TM is a registerd trademark of ZEROONE LTD. Other terms and product names may be trademarks of others. 9/9