Servo Sequencer Servo Robot motion controller & General Purpose microcontroller board

Similar documents
Using Z8 Encore! XP MCU for RMS Calculation

Generating DTMF Tones Using Z8 Encore! MCU

Training Schedule. Robotic System Design using Arduino Platform

Technique for Measuring System Temperature Using the On-chip Temperature Sensor of the Z8 Encore! XP

AC Power Switching Relay with ZAURA Control

ZKit-51-RD2, 8051 Development Kit

Electric Bike BLDC Hub Motor Control Using the Z8FMC1600 MCU

3.3V regulator. JA H-bridge. Doc: page 1 of 7

Design and Development of Smart. Harmonic Analyzer

Triscend E5 Support. Configurable System-on-Chip (CSoC) Triscend Development Tools Update TM

CMU232 User Manual Last Revised October 21, 2002

Motor Control Development Kit

Controlling DC Brush Motor using MD10B or MD30B. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

TLE9879 EvalKit V1.2 Users Manual

Quick Start Guide. TWR-MECH Mechatronics Board TOWER SYSTEM

EVDP610 IXDP610 Digital PWM Controller IC Evaluation Board

PCAN-MicroMod Evaluation Test and Development Environment for the PCAN-MicroMod. User Manual. Document version ( )

ESP32 Utility Driver

Hardware Guide. Control Made Simple. Model 401A Signal Generator

Project Final Report: Directional Remote Control

DEVKIT-S12ZVC QUICK START GUIDE (QSG)

The Guitar Chord Learning System

Cortex-M3 based Prepaid System with Electricity Theft Control

Breadboard Arduino Compatible Assembly Guide

CR 33 SENSOR NETWORK INTEGRATION OF GPS

Motor Control Demonstration Lab

A Unipolar Stepper Motor Drive Using the Z8 Encore! MCU

Using the Z8 Encore! XP Timer

Introduction to the Arduino Kit

The Speech Based Floor Cleaning Robot

Preliminary Design Report. Project Title: Search and Destroy

RX23T inverter ref. kit

Robotic Development Kit. Powered using ATMEL technology

TMS320F241 DSP Boards for Power-electronics Applications

ADVANCED EMBEDDED MONITORING SYSTEM FOR ELECTROMAGNETIC RADIATION

Low Power with Long Range RF Module DATASHEET Description

PICee Development System

ESE 350 Microcontroller Laboratory Lab 5: Sensor-Actuator Lab

The Skiidometer. Hardware Description By: Adam Lee ; Etec474; Prof. Morton; WWU

DTMF Signal Detection Using Z8 Encore! XP F64xx Series MCUs

The µbotino Microcontroller Board

Apr - 12, 05. Most recent REV DATE : page #

MAKEVMA502 BASIC DIY KIT WITH ATMEGA2560 FOR ARDUINO USER MANUAL

Preliminary GHz Transceiver-µController-Module. Applications PRODUCT SPECIFICATION FEATURES MICROCONTROLLER MHz

Bill of Materials: PWM Stepper Motor Driver PART NO

SC16A SERVO CONTROLLER

2.0 Discussion: 2.1 Approach:

JUMA-TRX2 DDS / Control Board description OH2NLT

SmartRF CC1010DK Development Kit

Introduction to Using the PIC16F877 Justin Rice IMDL Spring 2002

HF-Z100A ZigBee Module Datasheet

TECHNICAL DATASHEET #TDAX QUAD VALVE CONTROLLER P/N: AX SERIES

DASL 120 Introduction to Microcontrollers

FMS Flight Simulator Encoder

Tarocco Closed Loop Motor Controller

UM1589 User manual. M24LR-Discovery kit user guide. Introduction

ZKit-ARM-1769, ARM Dev. Kit

ARDUINO BASED DC MOTOR SPEED CONTROL

QRPGuys SMT Digital Dial/Frequency Counter

CHAPTER 6 IMPLEMENTATION OF FPGA BASED CASCADED MULTILEVEL INVERTER

RFID Door Unlocking System

SD2085 Low Power HART TM Modem

INSTANT ROBOT SHIELD (AXE408)

Lifetime Power Energy Harvesting Development Kit for Wireless Sensors User s Manual - featuring PIC MCU with extreme Low Power (XLP) Technology

Downloading a ROBOTC Sample Program

Constructional Project

Experiment #3: Micro-controlled Movement

Simulation Of Radar With Ultrasonic Sensors

2W UHF MHz Radio Transceiver

Exercise 3: Sound volume robot

SilverMax Datasheet. QuickSilver Controls, Inc. NEMA 23 Servomotors.

PID MOTOR CONTROLLER. Version 1.0. October Cytron Technologies Sdn. Bhd.

1. GENERAL DESCRIPTION FEATURES PIN DESCRIPTION BLOCK DIAGRAM... 5

Evaluation Board for DC Motor Control with the IFX9201. This board user manual provides a basic introduction to the hardware of the H-Bridge Kit 2Go.

Applications. Operating Modes. Description. Part Number Description Package. Many to one. One to one Broadcast One to many

V 1.1 TABLE OF CONTENTS LIST OF FIGURES... 2 LIST OF TABLES... 2 HISTORY... 2

ZICM35xSPx Hardware Design Guidelines

ZX-SERVO16. Features : Packing List. Before You Begin

International Journal of Advance Engineering and Research Development

SD2057 Low Power HART TM Modem

Mechatronics Laboratory Assignment 3 Introduction to I/O with the F28335 Motor Control Processor

ECE 511: FINAL PROJECT REPORT GROUP 7 MSP430 TANK

UHF RFID Micro Reader Reference Design Hardware Description

Easy start with UWB technology

EITF40 Digital and Analogue Projects - GNSS Tracker 2.4

2F. No.25, Industry E. 9 th Rd., Science-Based Industrial Park, Hsinchu, Taiwan Application Note of OGM220, AN001 V1.8

Revision History. Rev. No Issued Date Page Description Summary. V Initial Release

UM1082 User manual. The STPM10 single-phase meter evaluation boards. Introduction

MD04-24Volt 20Amp H Bridge Motor Drive

NVA-R661 Radar Module

Study of M.A.R.S. (Multifunctional Aero-drone for Remote Surveillance)

FABO ACADEMY X ELECTRONIC DESIGN

AVR42778: Core Independent Brushless DC Fan Control Using Configurable Custom Logic on ATtiny817. Features. Introduction. AVR 8-bit Microcontroller

HF-Z100A ZigBee Module Datasheet

Circuit Board Assembly Instructions

Ocean Controls KT-5221 Modbus IO Module

Datasheet DS0011 AM093 Wireless Meter-Bus Dual Band 169/868MHz Narrowband Modem Advance Information Production Status Production

R2868 Flame Detector Driver Board Usage (ACM A)

Jackrabbit (BL1800) C-Programmable Controller User s Manual D

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino

Transcription:

Robot Construction Component Servo Sequencer Servo Robot motion controller & General Purpose microcontroller board The servo sequencer is in reality a general purpose reprogrammable microcontroller board built for ease of use with e-gizmo Servo Driver-Controller kit. These two kits, when put together, form a powerful servo motor motion control system. The servo sequencer is built around Zilog Encore! XP microcontroller, z8f08a. This IC is essentially a complete microcontroller system, everything you need, plus more, are already built inside this chip. Even the flash programmer and debugger are onchip. The On-Chip Debugger OCD, through the ZDS II PC development software, lets you program the IC in-circuit, and allows you to do complex debugging operations (real time program tracking, breakpoints, register access, etc), eliminating the need for expensive development hardware like those required by most other competing microcontroller chips. Even the PC development software ZDS II, a full featured integrated development software with ANSI C compiler and assembler, is free! The Servo Sequencer can readily connect with two e-gizmo Servo Driver-Controller, making it capable of controlling up to servo motors at the same time. Note that this is not the physical limit for sequencer; you can actually add more servo driver-controller board if there is a need to by using a few servo sequencer user I/Os. Servo Sequencer is just a name we have given to the board. Being a general purpose microcontroller board, you can use it freely for many other applications, even to circuits not at all related to servo control. General Specifications Controller: Program Memory: RAM Memory: Clock Frequency: Servo Controller Interface: User I/O: Built-in Peripherals: Power Supply: Programming Language: PC Development Software: z8f08a 8 pins Encore! XP 8Kbytes Flash 0 bytes. MHz Internal Servo Driver-Controller (Up to servo motors) Multi function I/O 0 bit ADC Two -bit Counter/Timers Comparator OPAMP UART On chip Temperature Sensor V-9V DC ANSI C and Assembly Zilog Developer Studio ZDSII Servo Sequencer 008 e-gizmo Mechatronix Central page

POWER INDICATOR LED Power - Supply Input. - 9VDC + - PA/CTS0 - PA/DE0 - PA/T0OUT/XOUT - PA0/T0IN/T0UT/XIN +.V out - PC/COUT/LED - PC/ANA/LED - PC/ANA/CINN/LED - PC0/ANA/CINP/LED +.V out - PA7/TOUT - PA/TIN/TOUT - PA/TXD0 - PA/RXD0 - +.V out - +.V Out - GND - DEBUG - PC7/LED - PC/LED - PC/LED - PC/LED +.V out - +.V OUT 9 - +.V OUT 7 - +.V OUT - +.V OUT - PB/ANA/AMPINN - PB0/ANA0/AMPOUT - GND 0 - GND 8 - GND - PD0 - PB/VREF - PB/ANA7 9 - +.V OUT 7 - +.V OUT - +.V OUT - PB/CLKIN/ANA - PB/ANA/AMPINP 0 - GND 8 - GND - PD0 - PB/VREF - PB/ANA7 Figure. Connectors layout of the Servo Sequencer. Servo Sequencer 008 e-gizmo Mechatronix Central page

Pin Description Zilog has thrown literally everything inside the F08A chip. Personally, I find it even tougher to think of applications that will require some peripherals not present inside this chip. Aside from the usual I/O drivers and buffers, there is nothing else you will need (for the microcontroller sub circuit). This fact is revealed with the simplicity of the Sequencer module. It contains only the chip itself, and a.v on board regulator - which is not even necessary if an external.v source is available. The on-board regulator, however, allows the module to operate over a wider range of supply voltage, and to limited extend, protects it from damaging abnormal input supply conditions. The F08A Encore! XP chip used in this product is a 8 pin variant. To gain access to all internal hardware features with only 8 pins to work on, each I/O pins are shared by two or more peripherals. Hence, as shown in the following pin descriptions, each pins can have two or more software selectable alternate functions. Each pins can be indepently configured to function as follows: JP7 User I/O Pin +.V out - PC0/ANA/CINP/LED - PC/ANA/CINN/LED - PC/ANA/LED - PC/COUT/LED PC0.. PC General purpose logic input/output ANA..ANA 0-bit ADC analog inputs CINP Comparator (+) input CINN Comparator (-) input COUT Comparator Output LED Direct LED drive capable outputs Figure. Servo sequencer with LED I/O Monitor board installed. JP9 User I/O Pin +.V out - PA0/T0IN/T0UT/XIN - PA/T0OUT/XOUT - PA/DE0 - PA/CTS0 PA0..PA General purpose logic input/output V tolerant (note ) T0IN Timer0 input. This input can be used for gating, counting, and capture functions T0OUT Timer0 output. T0OUT Complement of T0OUT in PWM Mode. DE0- Device Enable. This allows automatic control of external RS-8 drivers. CTS0 Clear to Send, flow control input for the UART. XIN External crystal input. XOUT External crystal output. JP8 User I/O Pin +.V out - PC/LED - PC/LED - PC/LED - PC7/LED PC.. PC7 General purpose logic input/output LED Direct LED drive capable outputs JP0 User I/O Pin +.V out - PA/RXD0 - PA/TXD0 - PA/TIN/TOUT - PA7/TOUT PA..PA7 General purpose logic input/output, V tolerant (note ) RXD0 Receive input of UART or IRDA TXD0 Transmit ouput of UART or IRDA TIN Timer0 input. This input can be used for Servo Sequencer 008 e-gizmo Mechatronix Central page

gating, counting, and capture functions TOUT Timer output. TOUT Complement of TOUT in PWM Mode. JP and JP are reserved for Servo Controller Functions. JP- Servo Driver Controller Interface (M to M) - ENABLE - ACKNOWLEDGE - ENABLE - CLOCK OUT,7,9, - +.V Out - DATA OUT 8,0, - GND JP- Servo Driver Controller Interface (M7 to M) - ENABLE - ACKNOWLEDGE - ENABLE - CLOCK OUT,7,9 - +.V Out - DATA OUT 8,0 - GND JP Debug - +.V out - GND - Debug JP is used for in system flash programming and debugging. Program Development Setup This guide assumes that you are already familiar with Z8 Encore! Microcontroller chip. Detailed discussion of the chip s architecture and programming is beyond the scope of this document. Zilog s site www.zilog.com contains a wealth of information detailing everything you need to know about this chip, from specifications to application examples. JP and JP, when not used for servo functions, assumes their native functions as listed follows: JP- User I/O - PB0/AN0/AMPOUT - PB/ANA7 - PB/ANA/AMPINN - PB/VREF,7,9, - +.V Out - RESET/PD0 8,0, - GND JP- User I/O - PB/ANA/AMPINP - PB/ANA7 - PB/CLKIN/ANA - PB/VREF,7,9 - +.V Out - RESET/PD0 8,0 - GND Designing with the Z8 Encore! Microcontroller by Luis G. Sison and Osmonn T. Burgos This book is for everyone who wants to design electronic products using a microcontroller. Numerous easy-tofollow exercises take you through the hardware and firmware design of a microcontroller-based system. Publisher: Alexan Commercial JP is where you connect the programming/debugging cable. Servo Sequencer 008 e-gizmo Mechatronix Central page

Equipment Required: Zilog Developer Studio ZDS II. You can program the sequencer board in C or assembly language, or a combination of the two. The Zilog Developer Studio ZDS II packaged into one integrated software platform everything you need to develop applications. This Zilog freeware ZDS II has built in program editor, C and assembly language compiler, and debugging functions. Personal Computer running the ZDS II. Pentium II (or higher) PC running Windows 98/ME/XP operating system. Serial Port (COM port) Programming Cable (Dongle). The Sequencer board is connected to the PC running ZDS II during programming and debugging operations with the use of a programming cable (a.k.a dongle). The PC end connects to a COM port, while the Sequencer end connects to the debug JP. Power Supply. The sequencer s built-in regulator allows it to work over a wide range of input supply voltage. It will work best with a supply input of.v to VDC. Use a power supply or battery source with current rating of at least 00mA. Be careful with the polarity of the supply input. Wrong supply connection may permanently damage the sequencer board. JP Figure. The programming cable is plugged on to the Sequencer board through JP, with the programmer board component side facing out. Power Supply V DC Adaptor or.8-.0v Battery COM Port Debugging Cable Sequencer / General Purpose MCU module PC running Zilog s ZDS II development environment Figure. Servo Sequencer programming and debugging setup. Servo Sequencer 008 e-gizmo Mechatronix Central page

Servo Application Examples Figure. You can install quickly and just as easily a Servo Driver controller module with the Sequencer board. Simply plug to join them together forming a complete Servo motion controller circuit. Figure 7. A Servo Motion Controller configuration with two Servo Driver Controller installed. The lower Servo Driver module connects through JP, and the upper module connects through the Sequencer JP. This will allow independent control of up to servo motors. Figure. If your installation calls for a flexible link between the two board, you can connect them together using the JP interface connectors. Prepared wire connectors are available and are sold separately. Keep in mind that with this connection, motor addressing now starts at Motor 7 instead of Motor. Servo Application Example Program A C language program prototype containing the low level routines necessary to interface the Servo Controller with the Sequencer is bundled with the Servo Sequencer. You can download a copy of this program from the Servo Sequencer product page at www.e-gizmo.com. Servo Sequencer 008 e-gizmo Mechatronix Central page

GSM/GPRS Modem Control Application The Servo Sequencer, as previously mentioned, is actually a general purpose microcontroller board that you can use in numerous applications other than servo functions. In this sample application, you will see how the Servo controller sets up the GSM module for use as simple SMS autoresponding unit - you give it a ring, and it will reply with an SMS message. You can work this sample program to create more GSM functions such as remote output controls, data logging, and monitoring. Bill of Materials ID Description C 0 uf / V Electrolytic Cap C 0 uf /.V Electrolytic Cap C 0 D smd LED green size 0 JP pin terminal block JP0 RJ jack JP X angle connector JP HEADER X n/a JP HEADER pin con for dongle JP7 RJ jack JP8 RJ jack JP9 RJ jack R 0 ohms U BA0 DPAK.V LDO Voltage Regulator U z8f08a Flash Microcontroller Figure 8. e-gizmo GSM/GPRS modem kit easily connects with the Servo Sequencer board (JP0). These two makes a powerful GSM/GPRS application platform. Figure 9. Connection diagram of the Servo Sequencer + GSM/GPRS modem application. (Power supply connections are not shown.) Servo Sequencer 008 e-gizmo Mechatronix Central 7 page

JP HEADER C JP 7 8 9 0 HEADER X JP 7 8 9 0 HEADER X JP HEADER CAPACITOR POL + GND Vin U BA0. +V V Figure 0. Servo Sequencer Schematic Diagram. Servo Sequencer HEADER 9 Z8 ENCORE XP_8 A A A A7 VSS DBG RESET/PD0 PA0/T0IN/T0OUT/XIN PA/T0OUT/XOUT PA/DE0 PA/CTS0 PA/RXD0 PA/TXD0 PA/TIN/TOUT PA7/TOUT 7 8 8 A0 A A A A A A A7 A0 A A A 7 8 9 0 JP 7 8 0 U PB0/ANA0/AMPOUT PC0/ANA/CINP/LED PB/ANA/AMPINN PC/ANA/CINN/LED PB/ANA/AMPINP PC/ANA/LED PB/CLKIN/ANA PC/COUT/LED PB/ANA7 PC/LED 7 PB/VREF PC/LED 9 (PB) A PC/LED 0 (PB7) AVSS PC7/LED HEADER C0 C C C C C C C7 C C C C7 7 8 9 0 CAP C0 C C C C JP CAPACITOR POL D LED + C 0 R C0 C C C C C C C7 A0 A A A A A A A7 JP7 JP8 JP9 JP0 PC[0:] PC[:7] PA[0:] PA[:7] Servo Sequencer 008 e-gizmo Mechatronix Central 8 page

PCB LAYOUT TOP COMPONENT SIDE BOTTOM COPPER SIDE Servo Sequencer 008 e-gizmo Mechatronix Central 9 page