DigiMix-3. Servo Controller & Development Board

Similar documents
Programmer AVR USBasp

Getting Started with STK200 Dragon

PSU 2008 Winter - PH-315 Experimental Physics

AC : INFRARED COMMUNICATIONS FOR CONTROLLING A ROBOT

keyestudio Keyestudio MEGA 2560 R3 Board

Rhino Robot Control Board [RKI-1550]

ET-AVRProg mini. Technical Specifications of ET-AVRProg mini

Doc: page 1 of 8

AVR 40 Pin Rapid Robot controller board

AVR Development Board

Installation and Maintenance

Figure 1-1 ISPAVRU1 application

An FTDI connection: The ATtiny microcontrollers don t have a hardware UART External Crystal header pins for an optional crystal

AlphaBeam. Description. Requirements. for PC

PART 1 : MR-162. PART 2 : CPU Board. PART 3 : Software Tools. PART 4 : Compile and Download. 1. Introduction 2. Features

Arduino Uno. Arduino Uno R3 Front. Arduino Uno R2 Front

Lab - Data Migration in Windows

ROTOR CONTROL DXA. de K4JRG. User s Manual

M32 Development Board

AVR Development Board

D100 ISM Step by Step Installation Guide

WTS Intelligent Tactile Sensor Module. - User s Manual

ARDUINO UNO REV3 Code: A000066

Doc: page 1 of 6

MP3 Trigger v2 User Guide

Lab Course Microcontroller Programming

Mega128-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

Wireless Sensor Networks. FireFly 2.2 Datasheet

EXL x240 Graphic LCD Smart Module 3,8 SHORT FORM TECHNICAL SPECIFICATIONS. Via di Corticella, Bologna, Italy

AVR Intermediate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

Figure 1. A test controller communicates with User I/O, the DUT, a DMM, and a PC (for program development).

Installing the Ampire UART TFT

ARDUINO MEGA 2560 REV3 Code: A000067

Pridgen Vermeer Robotics ATmega128 Revision 0

Serial Interface. Upgrading Firmware

MR-Servo8 User Manual

Doc: page 1 of 6

Cerebot Nano Reference Manual. Overview. Revised April 15, 2016 This manual applies to the Cerebot Nano rev. A

Figure 1. JTAGAVRU1 application The JTAGAVRU1 is supported by AVR Studio. Updated versions of AVR Studio is found on

Writing Code and Programming Microcontrollers

PS2 Controller Starter Kit SKPS

ARDUINO UNO REV3 SMD Code: A The board everybody gets started with, based on the ATmega328 (SMD).

ARDUINO MICRO WITHOUT HEADERS Code: A000093

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

Click-A-Tune. User Manual

Wireless Modem Evaluation Board User s Guide

Intel Galileo gen 2 Board

*on-board power supply capability limited. External battery should be used for higher power servos.

SYNOPSIS FOR GSM AND GPS BASED VEHICLE SPEED MONITORING AND CONTROL SYSTEM

PX-4000 mini-avr In-System programmer

Wasp Embedded Controller

LUFA & Studio5 Beginner s Guide Part 3: Create New Project with USB CDC Connectivity

Microchip WebSeminar

Programmer. User Guide

Antenna Rotator System USB

Quick-Start Guide. BNS Solutions. QSK62P Plus

Configuring the LI-1400 Datalogger for Illuminance and Irradiance Studies

ATMega128 Rapid Robot Controller Board [RKI-1148]

Firmware Reprogramming Guide

Introduction to Microcontrollers

AX1500. Dual Channel Digital Motor Controller. Quick Start Manual. v1.9b, June 1, 2007

AXE Stack 18. BASIC-Programmable Microcontroller Kit. An inexpensive introduction to microcontroller technology for all ability levels

1.4 MConfig PC software can be optionally used to upload/download configuration settings to the VRU Pro using RS-485 communication.

DJI Ace One product release notes

Note that FLIP is an Atmel program supplied by Crossware with Atmel s permission.

DMC-1400 Documenting Multi-function Calibrator

Fire Bird V Insect - Nex Robotics

SWC1090 configuration software for G.M. International Isolators series D1000 and E1000. Installation and use manual

MOD-RFID125 User Manual. All boards produced by Olimex are ROHS compliant. Rev.A, February 2008 Copyright(c) 2008, OLIMEX Ltd, All rights reserved

Adafruit Metro Mini. Created by lady ada. Last updated on :12:28 PM UTC

QUICK START GUIDE TO THE JUMPSTART MICROBOX

ARDUINO MINI 05 Code: A000087

Cascade Configuration Tool

MOD-RFID125-BOX User Manual

Gauss/Tesla Meters. Application Note January 2013 Data Logging using HyperTerminal and SCPI Commands on the 8000 Series

P89V51RD2 Development Board May 2010

R-DAS Tiny User s Manual

Dual-POB. View Full-Size Image View Full-Size Image. ( POB-Technology ) ( POB-Technology ) Description

MAVRIC-IIB Mega AVR Integrated Controller II Revision B Technical Manual

Innovation First, Inc Full-Size Robot Controller Reference Guide

Various power connectors. 3.3V regulator. 64K Flash (Internal) 2K EEPROM (Internal) 4K SRAM (Internal) JA Mem Adr/ Data. Doc: page 1 of 9

AVR XMEGA TM. A New Reference for 8/16-bit Microcontrollers. Ingar Fredriksen AVR Product Marketing Director

ECE 353 Lab 4. General MIDI Explorer. Professor Daniel Holcomb Fall 2015

Embedded Vision Processor. CMUcam3 SDK Installation Guide

Description: USB to Serial interface and USB development platform

PCAN-Router FD Universal, programmable Converter for CAN FD and CAN. User Manual. Document version ( )

Mega128-Net Mega128-Net Mega128 AVR Boot Loader Mega128-Net

Arduino ADK Rev.3 Board A000069

User Manual. HEDS-8949 & HEDS-8969 Alignment Kit for AEAT-9000 Encoders. 1. Introduction. Overview. Features. Ordering Information

AC-PG-USBASP USBASP AVR Programmer

Freeduino USB 1.0. Arduino Compatible Development Board Starter Guide. 1. Overview

USB. Bluetooth. Display. IO connectors. Sound. Main CPU Atmel ARM7 JTAG. IO Processor Atmel AVR JTAG. Introduction to the Lego NXT

Pridgen Vermeer Robotics Xmega128 Manual

Part1: Building a new project with AVRstudio and avr-gcc

8051 Intermidiate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

Espardino micro2142/8

ARDUINO M0 PRO Code: A000111

AVR32 Studio Tutorial AVR32 UC3. EVK1100 Control Panel Tutorial

Breeze Board. Type A. User Manual.

Submit this lab and the extended learning (optional) to TEACH by Monday at 11:59pm. You must get checked off by a TA by the beginning of lab 7.

Transcription:

DigiMix-3 Servo Controller & Development Board Introduction DigiMix-3 is the ultimate platform to develop your own servo control software! This includes all types mixing from simple V-tail mixing to gyro stabilised flybarless helicopter rotor heads, and everything inbetween. It is supplied with a software update cable to load your custom firmware to the microcontroller. No other hardware is needed! The compiler (GCC) is completely free and is very well supported. It is supplied with example code which will get you up and running in no time at all. The supplied software includes a set of functions that allow you to very easily control and manipulate RC signals. DigiMix-3 has 3 inputs and 2 outputs which can be configured for standard rate (50Hz to 120Hz) and high rate 274Hz output for digital servos. This is an excellent platform for your custom applications, from beginner to high-end, or to learn more about how servos are controlled, or even just to get started with the amazing world of microcontrollers! It contains an industry-leading Atmel AVR microcontroller with a wealth of information, examples and support. Features Contains a powerful Atmel AVR RISC microcontroller. Xmodem bootloader allows HypterTerminal (comes free with Windows 1 ) firmware updating. Open source compiler (GCC) means it s totally free to start developing your own applications. A number of powerful example programs are supplied, including V-tail mixing. Example programs are precompiled so may be used as is, with no need to compile anything. All timing-critical functions are provided in a library, making development extremely easy. 3 inputs, 2 outputs make it suitable for a wide range of applications. The 3 rd input may be configured as an Analog-to-Digital Converter input (10-bit). Technical Information Input Timing Resolution Output Timing Resolution Operating Voltage Processor Frequency Current Consumption Weight Board Size Mixing 135ns 135ns 1.8 V to 6.0 V 7.3728 MIPS (million instructions per second) 15.0 ma +- 25 g 38 mm x 14mm x 7mm Fully configurable NOTE: Supplying more than 6 volts to the mixer could cause permanent damage. Please only use 4 cell battery packs. First Step If the source code supplied on a CD, copy the \DigiMix3 v<version> directory to your local hard drive (for example C:\DigiMixDevelopment\) and make all files writeable (right click and choose Properties, and make sure the Read-only attribute is unchecked). This will be your working directory and will allow you to edit the source files (since you can t edit files on a CD!). 1 Windows Vista does not come with HyperTerminal. It can be downloaded for free from http://www.hilgraeve.com/.

Connections Servos are connected to the dual-row connector with the signal pin being closest to the edge of the board. The bottom row is output 2 and the top row is output 1. The two pins next to output 2 are the RS232 pins. These are at TTL levels and require a level shifter if they are to be connected to a PC. The RS232 interface should be connected as shown below right. Below left shows the inputs. Output2 Signal Output1 Signal Note that the ground pin for Output 1 shares the ground pin for the RS232 connector. For this reason, Output 1 and the RS232 connector cannot be both connected to the board. GCC Compiler All software (firmware, more accurately) is complied using the GNU C/C++ Compiler (GCC). Support for Atmel AVR microcontrollers (http://www.atmel.com) is provided through a free set of open-source development tools called WinAVR (http://winavr.sourceforge.net/). WinAVR runs on Windows platforms. Other platforms are supported but are out of scope of this document. At the time of writing this document, the most recent version of WinAVR is 20081205 which is available on the CD that was supplied with the kit. If there is a newer version available online, you may download it although no guarantees are given. Although C++ is supported, we will stick to programming in straight C. You are of course free to develop your own C++ applications but this is outside the scope of this document. Useful Documentation To find out more about the GCC AVR support, please look at the avr-libc documentation which can be found in the C:\WinAVR\doc\avr-libc\ directory once WinAVR has been successfully installed. For microcontroller-specific information, please refer to the ATmega88 datasheet which is available on the supplied CD and on Atmel s website. Supplied Examples A number of examples are supplied with the kit. A description of each example is given at the top of the main.c file in each example directory. The CD also contains the.bin file (compiled object code) which can be uploaded to the microcontroller without having to compile anything, or without even having to install WinAVR. Of course, if you d like different functionality from what the examples offer, you will have to edit and compile the example code. The following examples are provided: Basic shows how to use the UART (serial interface) and basic capture and output of RC pulses. Mixer a mixer which mixes input 1 and 2 either with or without ratio input from input 3. Mixer with ADC as above but with ratio depending on ADC value on input 3. This requires a potentiometer to be connected on input 3. TraverseLock provides a pan and tilt function for camera mounts, etc. Please go to http://www.firmtronics.com/apps/ for any updates to the supplied source code and examples. Source Code Editor Once WinAVR is installed, you should be able to access the program group: Start->Programs->WinAVR (version).

Within this group, the Programmer s Notepad (PN) should be available. This is the editor we will use. Launch PN to begin editing: At this point you are ready to edit and compile your own source code. The next step is to open the digimix-3 example1 project supplied with your DigiMix-3 Development Board. In Programmer s Notepad, choose File->Open Project(s) and navigate to the \\\DigiMix3Dev\examples\basic1\project directory and open it: Make sure all the files that are shown below are included in the list on the left-hand side of the window. Double-click on the main.c file to open it in the editor.

This example project is immediately ready to compile. Simply choose Tools->Make All: The complier will compile and link all necessary files and you should be able to see the listing in the output screen, ending in this: Size after: AVR Memory Usage ---------------- Device: atmega88 Program: 2124 bytes (25.9% Full) (.text +.data +.bootloader) Data: 21 bytes (2.1% Full) (.data +.bss +.noinit) -------- end --------

You will now have a number of extra files in your \example1\ directory, one of them being a.bin file (digimix3_example1.bin in this case). This is the firmware file that will be uploaded to the DigiMix-3 Development Board. Uploading Firmware using HyperTerminal The Development Board is supplied with a simple bootloader application that allows users (that s you!) to upload new firmware to it via HyperTerminal using the Xmodem protocol. Make sure your board is correctly connected to the RS232 interface (see the user manual). Connect this to your PC s RS232 port. If your PC doesn t have a serial port, you ll need to purchase a USB to RS232 converter (available from almost every computer shop). Next, open HyperTerminal. Go to Start->All Programs- >Accessories->Communications->HyperTerminal. HyperTerminal will launch. If you have never used HyperTerminal, you may be asked for your area code and country (which you should enter) before you see the screen below.

Type in the name DigiMix-3 Development as shown above, then click OK. Next, choose the COM port your DigiMix-3 Development Board is connected to. If you re using a USB to RS232 converter, you will need to access your hardware device manager and check under Port to see what COM number your USB device has enumerated to. Click OK once you have selected the correct COM port. Next, select the settings as shown in the following image, then click OK.

Your HyperTerminal session will now start. At this point, you can send the digimix3_example1.bin file (we created earlier) to the DigiMix-3 Development Board. Start by choosing Transfer->Send File Select Xmodem from the drop-down list then Browse to the digimix3_example1.bin file in the /example1/ directory. Click Send once the.bin file has been selected.

The following screen will appear. This is the screen that waits for a connection to an Xmodem client (i.e. the bootloader). Applying power to the DigiMix-3 Dev Board will kick off the transfer. When the transfer has completed, you will see a welcome message appear on the HyperTerminal window. This message has been sent from the microcontroller, as you will notice in the main.c file. TIP: When you close HyperTerminal, click Yes when you are asked if you d like to save your settings. The next time HyperTerminal starts, you can simply open the DigiMix-3 Development.ht file which will open HyperTerminal with all the settings you ve just set up. Programming Tips 1. Press F7 to compile (make all) 2. Press CTRL + F7 to clean (make clean) 3. Make sure the main.c file is open before compiling. 4. Double-click on any errors or warnings in the output window your cursor will go to the error in the source file. Contact For any custom designs, please contact us at info@firmtronics.com.