Interfacing a Servo to the ATmega16

Size: px
Start display at page:

Download "Interfacing a Servo to the ATmega16"

Transcription

1 Learning Objectives: Interfacing a Servo to the ATmega16 After successfully completing this lab, students will be able to: Desribe how a radio control (RC) servo works Interface a RC servo to a microcontroller Use the ATmega16 to control the movement of a servo Components: Qty. Item 1 ATmega16 microcontroller with STK 500 development board, serial port cable 1 Futaba FP-S148 servo or similar Servo-1 Introduction: In this lab you will explore the workings of a radio control (RC) servo and how the ATmega16 can be used to control one. An RC servo consists of a dc motor, gear train, potentiometer, and some control circuitry all mounted compactly in a case. RC servos are commonly used in radio-controlled cars, airplanes, and boats to provide limited rotational motion to steer, move control surfaces, etc. RC servos are attractive for educational use in mechatronics, because they are relatively inexpensive (about $12-$20), they can put out about 42 oz/in of torque, they can easily be modified to produce continuous shaft rotation at relatively slow speeds, and they can easily be controlled by a microcontroller. Figure 1 shows that there are three wires, white, red, and black on the servo leading from a 3-pin female connector to the case. These carry the control signal, power, and ground return respectively. Black Red White or yellow Figure 1. RC Servo. The RC servo uses three wires: white carries the control signal, red carries power (usually 4.8 V to 6 V), and black is ground. Figure 2 shows how an RC servo is made to rotate. The control circuitry inside the servo must receive a stream of pulses whose widths may vary between about 1 to 2 ms. These pulses must occur at intervals of about 10 to 20 ms. A potentiometer coupled to the rotation of the output shaft produces a voltage corresponding to the angle of the shaft. The control circuitry compares the average voltage of the control signal (i.e., by low pass filtering) with the voltage from the potentiometer, and the shaft rotates until the two voltages are the same. Figure 2. RC Servo Operation. The RC servo needs to see a pulse-width modulated control signal in order to position the output shaft. Pulse-widths vary between approximately 1ms to 2 ms, and have a period between 10 ms to 20 ms.

2 Servo-2 Procedure: In this lab, we are going to build a circuit to control the servo using the switches on the STK As shown in Figure 3, connect the PORTA pins to the 10-pin header for the SWITCHES using a 10-pin ribbon cable jumper. Similarly, connect the PORTC pins to the 10-pin header for the LEDs. (Figure A1 in the Appendix explains how the switches and LEDs on the STK500 are wired internally.) Do not connect the servo yet! 2. Test your connections to the switches and LEDs by starting a new project in AVR Studio using the servo_switch_control_test.c program found on the ME 106 website. Your program should allow you to turn on the LEDs when the corresponding switch is pressed. Explain how the ifelse statement works and the significance of the ~ operator. STK500 PORTA SWITCHES +5V red PB3 white Servo PORTC black LEDs Figure 3. Servo control circuit. PORTA pins are jumpered to the SWITCHES, and PORTC pins are jumpered to the LEDs on the STK500. The 5V source to power the servo can come from a VTG pin of one of the headers on the STK After you have proven that the switches and LEDs have been wired correctly, add the servo. Connect the servo s white wire to the STK500 board at pin PB3. The red and black wires should be connected to power and ground, and thus can be hooked up to a VTG and GND on the STK500 board. Now connect the oscilloscope to the white wire going to the servo. Don t forget to connect the oscilloscope s ground clip to a GND pin on the STK500. Also, we will be using RS232 communication for the next part of the lab, so connect a jumper from RS232 SPARE to pins PD0 and PD1. 4. Create a new project in AVR Studio, copy main_servo.c, uart.c, and uart.h from the ME 106 website into your project folder, and add these files to AVR Studio as you have done in previous labs. You are going to need to print out floating point values, so follow the instructions in the comments in uart.h to add the necessary information in your linker options. See Figure 4 below. Click on the Custom Options button on the left hand side of the window, click [Linker Options] in the list and paste this line in the text field. Don t forget to press the Add button!

3 Servo-3 Figure 4. AVR Studio compilation options. In order to add floating point support to printf, paste the linker options listed in uart.h into the text box as shown, and click Add. 5. Before we continue, let s take a look at a couple of sections of the demo program to try and get a better idea of what s going on. In the RC Filter lab, we used a timer to generate various tones to mimic a simple piano. We did this by setting up Timer1 (a 16-bit timer) so that we could vary the period while keeping the duty cycle constant at 50%. In this lab we will use Timer0 (an 8-bit timer) to vary the duty cycle while keeping the period constant. The timers that are included on the AVR line of microcontrollers are really multi-purpose devices that are capable of acting as counters that can count a number of external pulses, timers that can trigger a software interrupt after a certain period of time, as well as devices that generate square waves of varying duty cycles and periods. For this lab we will use a timer to generate a PWM signal in a configuration known as Phase Correct PWM. Phase Correct PWM works by incrementing a counter, which is attached to a reference clock signal until the counter reaches a maximum value (255 for Timer0). When this maximum value is reached, the counter starts counting back down to zero, and the process repeats. At every increment of the counter, the timer compares the value of the counter to a value stored in an Output Compare Register, if these values are the same it toggles an output pin on the microcontroller, that is, it changes its value from high (5V) to low (GND) or vice-versa. Let s take a look at the init() function in the demo program: void init() { //Initialize Timer0 TCCR0 = _BV(WGM00) _BV(COM01) _BV(CS02); } //Enable output DDRB = _BV(PB3);

4 Servo-4 Just like the ports and all other components of the ATmega16, the timers are controlled by registers. The registers that we need to deal with for Timer0 are: TCCR0 (Timer Counter Control Register 0) which configures the timer, and OCR0 (Output Compare Register 0), which holds the compare value. We set the WGM00 bit in TCCR0, which sets the timer to Phase Correct PWM, the COM01 bit to enable the output of the PWM on pin PB3, and the CS02 bit to select the CPU clock/256 as the clock source for the timer. All of these registers and bits are discussed in greater detail in the ATmega16 datasheet. The last thing to we need to do is configure the port containing the pin which will output the PWM signal. This is done by setting the appropriate bit in the DDRB register. Note that the datasheet refers to the PWM output pin as OC0, not as PB3. Since almost all the pins have additional functionality associated with them besides standard IO, we can see which pins are associated with that functionality by looking at the pinout on page two of the ATmega16 datasheet, also shown below in Figure 6. Figure 5. ATmega16 pinout. The pinout not only shows which pins are associated with which ports, but also what other functionality that they may provide. For example, we can see that the output compare pin for Counter/Timer0 (OC0) is on PB3, that the UART/RS232 communication (RXD and TXD) are on pins PD0 and PD1, and that the Analog to Digital Conversion (ADCx) pins are all on PORTA. Figure from page 2 of the ATmega16 Datasheet, 2008 Atmel Corporation. Next, we ll look at part of the UART character received interrupt where we actually set the Output Compare Register: if ((input == 'a') && (OCR0!= 255)) { OCR0++; //Increment timer0's Output Compare Register printf("period: %f/%f\tocr0: %u/255\r\n", T*OCR0/255, T, OCR0); } As mentioned in the comments, you don t have to worry too much about how the ISR works, just that it gets called whenever the microcontroller receives a character from the UART. Here, we check if the incoming character is the letter a, and we make sure that the OCR0 register is not at

5 its maximum value. If this is the case, we increment the value of the output compare register, which increases the duty cycle. Servo-5 The overall period is determined by the size of our counter and the clock signal that we re using. Since the ATmega16 has a default clock speed of 8MHz, and we re using a prescale value of 256, the actual clock speed that the timer is using is: which gives us a period of 32μs. When operating in Phase Correct PWM, one complete cycle consists of the counter counting all the way to 255 and back to zero, so one period of our output PWM signal is: which is within our required range of 10ms 20ms as required by the servo. To set the duty cycle of our PWM signal, all we have to do is set the value of the OCR0 register, which will correspond to the length of the duty cycle. If OCR0 is equal to 0, we will have a 0% duty cycle. If OCR0 register is 255, we will have a 100% duty cycle. Figure 7 below shows how OCR0 is used to control the duty cycle. When OCR0 is selected to be 50, the duty cycle will be 50/255*100% = 19.6%. When the frequency is sufficiently high, controlling the duty cycle of a PWM wave could actually be used in digital to analog conversion (i.e. DC motor speed control) Figure 6. How OCR0 Controls Duty Cycle. The figure demonstrates how the OCR0 value is used to control the duty cycle for Phase Correct PWM. The OC0 pin is initially at 5V, and once the counter reaches the OCR0 value, the OC0 pin is set to low. OC0 is pulled high when the counter reaches the OCR0 value again. [Go to the Atmel website and find the datasheet for the ATmega16. (Download the full datasheet, not the summary.) Find the section for TimeRCounter 0, and look over it. What bits of the TCCR0 register would need to be set if we wanted a clock prescale of 1024? What would the period of the output signal be? Hint: All of the bits that control the clock prescale are named CS0x.] 6. Now build your project and program the microcontroller. Check the fuses to ensure that your microcontroller s clock is actually set to 8MHz. Now connect the serial cable to the RS232 Spare port and start HyperTerminal, and reset the STK500.

6 Servo-6 7. Press the a key on your keyboard a couple of times. You should see the servo move and be able to observe the PWM signal on your oscilloscope. Add the Period and Duty Cycle measurements to your oscilloscope s display. Continue to increase the duty cycle by pressing the a key. Note that the period displayed on the oscilloscope may not exactly match the theoretical value of ms. The ATmega16 s internal oscillator is not that precise, and any projects that require exact timing should use an external oscillator or external crystal. This discrepancy should have no effect on our servo s performance though. 8. Continue to press the a and z keys on the keyboard. Find the values of OCR0 that correspond to the servo at the full left, full right, and center positions. The servos in lab only have 180 of travel so be sure that your servo is not actively trying to drive its self against one of the stops (maintain the OCR0 value within the range of 3-38). (You should be able to tell when this is happening by a noticeable twitch of the servo and hum of the motor. Leaving the servo in this state will only decrease its life.) Include these values, the theoretical on time of the duty cycle as displayed on HyperTerminal, and the actual on time of the duty cycle in your lab report. 4. Now create a new project and copy in the main_your_servo.c file from the ME 106 website. Use this template to write a program that makes the servo move all the way to the left when SW0 is pressed, all the way to the right when SW1 is pressed, and centered when no switches are pressed. Additionally, the corresponding LED should light up when the button is pressed. Be sure to include this code with your lab report. As always, your code should be properly formatted and indented to improve clarity and reduce the time you spend debugging. Notes: It is relatively easy to modify a servo so that it can rotate continuously. An excellent step-by-step guide for doing so can be found at: If you use the Futaba FP-S148, it is especially easy. You don t even need to replace the potentiometer as noted in the link above. You can manually position the pot shaft to its center position. Once you ve hacked the servo, you then have a low-cost, relatively powerful variable speed dc motor drive system that is great for any term projects or any other applications that needs a decent amount of accuracy. Using a servo can be a low-cost and efficient approach for giving mobility to your robot. Tower Hobbies ( has the best prices around for Futaba servos (3 for $39.47).

7 Servo-7 Appendix A STK500 LED and Switch Implementation Figure A1. Schematics for the switches and LEDs on the STK500 interface board. Output pins on the ATmega16 can sink enough current to turn on the LEDs, and thus can be connected directly to the LED s header on the STK500. Likewise, the SWITCHES header pins can be connected directly to the pins of an input port on the ATmega16. Note that when a switch is pressed on the STK500 board, it connects the corresponding SWn pin to ground. Otherwise the SWn pin is held high by the 10kΩ pullup resistor. Also note that a LOW signal on the LEDn pin will cause the LED to turn on.

Servo Motors (SensorDAQ only) Evaluation copy. Vernier Digital Control Unit (DCU) LabQuest or LabPro power supply

Servo Motors (SensorDAQ only) Evaluation copy. Vernier Digital Control Unit (DCU) LabQuest or LabPro power supply Servo Motors (SensorDAQ only) Project 7 Servos are small, relatively inexpensive motors known for their ability to provide a large torque or turning force. They draw current proportional to the mechanical

More information

AVR Butterfly Training. Atmel Norway, AVR Applications Group

AVR Butterfly Training. Atmel Norway, AVR Applications Group AVR Butterfly Training Atmel Norway, AVR Applications Group 1 Table of Contents INTRODUCTION...3 GETTING STARTED...4 REQUIRED SOFTWARE AND HARDWARE...4 SETTING UP THE HARDWARE...4 SETTING UP THE SOFTWARE...5

More information

ET-BASE AVR ATmega64/128

ET-BASE AVR ATmega64/128 ET-BASE AVR ATmega64/128 ET-BASE AVR ATmega64/128 which is a Board Microcontroller AVR family from ATMEL uses MCU No.ATmega64 and ATmega128 64PIN. Board ET-BASE AVR ATmega64/128 uses MCU s resources on

More information

DC Motor with Shaft Encoder

DC Motor with Shaft Encoder Learning Objectives DC Motor with Shaft Encoder By the end of this laboratory experiment, the experimenter should be able to: Explain how an encoder operates and how it can be use determine rotational

More information

CHAPTER 11: Flip Flops

CHAPTER 11: Flip Flops CHAPTER 11: Flip Flops In this chapter, you will be building the part of the circuit that controls the command sequencing. The required circuit must operate the counter and the memory chip. When the teach

More information

Servo Info and Centering

Servo Info and Centering Info and Centering A servo is a mechanical motorized device that can be instructed to move the output shaft attached to a servo wheel or arm to a specified position. Inside the servo box is a DC motor

More information

Six-servo Robot Arm. DAGU Hi-Tech Electronic Co., LTD www.arexx.com.cn. Six-servo Robot Arm

Six-servo Robot Arm. DAGU Hi-Tech Electronic Co., LTD www.arexx.com.cn. Six-servo Robot Arm Six-servo Robot Arm 1 1, Introduction 1.1, Function Briefing Servo robot, as the name suggests, is the six servo motor-driven robot arm. Since the arm has a few joints, we can imagine, our human arm, in

More information

INTRODUCTION TO SERIAL ARM

INTRODUCTION TO SERIAL ARM INTRODUCTION TO SERIAL ARM A robot manipulator consists of links connected by joints. The links of the manipulator can be considered to form a kinematic chain. The business end of the kinematic chain of

More information

STK500... User Guide

STK500... User Guide STK500... User Guide Table of Contents Section 1 Introduction... 1-1 1.1 Starter Kit Features...1-1 1.2 Device Support...1-2 Section 2 Getting Started... 2-1 2.1 Unpacking the System...2-1 2.2 System

More information

PWM IN AVR. Developed by: Krishna Nand Gupta Prashant Agrawal Mayur Agarwal

PWM IN AVR. Developed by: Krishna Nand Gupta Prashant Agrawal Mayur Agarwal PWM IN AVR Developed by: Krishna Nand Gupta Prashant Agrawal Mayur Agarwal PWM (pulse width Modulation) What is PWM? Frequency = (1/T) Duty Cycle = (Thigh/T) What is need of PWM? I answer this in respect

More information

AVR Timer/Counter. Prof Prabhat Ranjan DA-IICT, Gandhinagar

AVR Timer/Counter. Prof Prabhat Ranjan DA-IICT, Gandhinagar AVR Timer/Counter Prof Prabhat Ranjan DA-IICT, Gandhinagar 8-bit Timer/Counter0 with PWM Single Compare Unit Counter Clear Timer on Compare Match (Auto Reload) Glitch-free, Phase Correct Pulse Width Modulator

More information

Eric Mitchell April 2, 2012 Application Note: Control of a 180 Servo Motor with Arduino UNO Development Board

Eric Mitchell April 2, 2012 Application Note: Control of a 180 Servo Motor with Arduino UNO Development Board Eric Mitchell April 2, 2012 Application Note: Control of a 180 Servo Motor with Arduino UNO Development Board Abstract This application note is a tutorial of how to use an Arduino UNO microcontroller to

More information

Ocean Controls RC Servo Motor Controller

Ocean Controls RC Servo Motor Controller Ocean Controls RC Servo Motor Controller RC Servo Motors: RC Servo motors are used in radio-controlled model cars and planes, robotics, special effects, test equipment and industrial automation. At the

More information

PROJECT PRESENTATION ON CELLPHONE OPERATED ROBOTIC ASSISTANT

PROJECT PRESENTATION ON CELLPHONE OPERATED ROBOTIC ASSISTANT PROJECT PRESENTATION ON CELLPHONE OPERATED ROBOTIC ASSISTANT ELECTRONICS ENGINEERING DEPARTMENT SVNIT, SURAT-395007, INDIA Prepared by: Anurag Gupta (U05EC401) Dhrumeel Bakshi (U05EC326) Dileep Dhakal

More information

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver Electronics Exercise 2: The 555 Timer and its Applications Mechatronics Instructional Laboratory Woodruff School of Mechanical Engineering Georgia Institute of Technology Lab Director: I. Charles Ume,

More information

Using Arduino Microcontrollers to Sense DC Motor Speed and Position

Using Arduino Microcontrollers to Sense DC Motor Speed and Position ECE480 Design Team 3 Using Arduino Microcontrollers to Sense DC Motor Speed and Position Tom Manner April 4, 2011 page 1 of 7 Table of Contents 1. Introduction ----------------------------------------------------------

More information

Pulse Width Modulation Applications

Pulse Width Modulation Applications Pulse Width Modulation Applications Lecture 21 EE 383 Microcomputers Learning Objectives What is DTMF? How to use PWM to generate DTMF? How to use PWM to control a servo motor? How to use PWM to control

More information

ETEC 421 - Digital Controls PIC Lab 10 Pulse Width Modulation

ETEC 421 - Digital Controls PIC Lab 10 Pulse Width Modulation ETEC 421 - Digital Controls PIC Lab 10 Pulse Width Modulation Program Definition: Write a program to control the speed of a dc motor using pulse width modulation. Discussion: The speed of a dc motor is

More information

Work with Arduino Hardware

Work with Arduino Hardware 1 Work with Arduino Hardware Install Support for Arduino Hardware on page 1-2 Open Block Libraries for Arduino Hardware on page 1-9 Run Model on Arduino Hardware on page 1-12 Tune and Monitor Models Running

More information

Lab Experiment 1: The LPC 2148 Education Board

Lab Experiment 1: The LPC 2148 Education Board Lab Experiment 1: The LPC 2148 Education Board 1 Introduction The aim of this course ECE 425L is to help you understand and utilize the functionalities of ARM7TDMI LPC2148 microcontroller. To do that,

More information

Pulse Width Modulation

Pulse Width Modulation Pulse Width Modulation Pulse width modulation (PWM) is a powerful technique for controlling analog circuits with a microprocessor's digital outputs. PWM is employed in a wide variety of applications, ranging

More information

RC2200DK Demonstration Kit User Manual

RC2200DK Demonstration Kit User Manual Demonstration Kit User Manual Table of contents TABLE OF CONTENTS... 1 QUICK INTRODUCTION... 2 INTRODUCTION... 3 DEMONSTRATION BOARD... 4 POWER SUPPLY SECTION... 5 RS-232 INTERFACE... 6 CONNECTORS... 7

More information

[F/T] [5] [KHz] [AMP] [3] [V] 4 ) To set DC offset to -2.5V press the following keys [OFS] [+/-] [2] [.] [5] [V]

[F/T] [5] [KHz] [AMP] [3] [V] 4 ) To set DC offset to -2.5V press the following keys [OFS] [+/-] [2] [.] [5] [V] FG085 minidds Function Generator Manual of Operation Applicable Models: 08501, 08501K, 08502K, 08503, 08503K Applicable Firmware Version: 1 ) 113-08501-100 or later (for U5) 2 ) 113-08502-030 or later

More information

Designing VM2 Application Boards

Designing VM2 Application Boards Designing VM2 Application Boards This document lists some things to consider when designing a custom application board for the VM2 embedded controller. It is intended to complement the VM2 Datasheet. A

More information

Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V1.0. 20 th November 2012. L6470 Stepper Motor Shield

Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V1.0. 20 th November 2012. L6470 Stepper Motor Shield Arduino Dual L6470 Stepper Motor Shield Data Sheet Adaptive Design ltd V1.0 20 th November 2012 Adaptive Design ltd. Page 1 General Description The Arduino stepper motor shield is based on L6470 microstepping

More information

A 5 Degree Feedback Control Robotic Arm (Haptic Arm)

A 5 Degree Feedback Control Robotic Arm (Haptic Arm) A 5 Degree Feedback Control Robotic Arm (Haptic Arm) 1 Prof. Sheetal Nirve, 2 Mr.Abhilash Patil, 3 Mr.Shailesh Patil, 4 Mr.Vishal Raut Abstract: Haptics is the science of applying touch sensation and control

More information

Accurate Measurement of the Mains Electricity Frequency

Accurate Measurement of the Mains Electricity Frequency Accurate Measurement of the Mains Electricity Frequency Dogan Ibrahim Near East University, Faculty of Engineering, Lefkosa, TRNC dogan@neu.edu.tr Abstract The frequency of the mains electricity supply

More information

AVR131: Using the AVR s High-speed PWM. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR131: Using the AVR s High-speed PWM. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE AVR 8-bit Microcontrollers AVR131: Using the AVR s High-speed PWM APPLICATION NOTE Introduction This application note is an introduction to the use of the high-speed Pulse Width Modulator (PWM) available

More information

Using the Motor Controller

Using the Motor Controller The Motor Controller is designed to be a convenient tool for teachers and students who want to use math and science to make thing happen. Mathematical equations are the heart of math, science and technology,

More information

PolyBot Board. User's Guide V1.11 9/20/08

PolyBot Board. User's Guide V1.11 9/20/08 PolyBot Board User's Guide V1.11 9/20/08 PolyBot Board v1.1 16 pin LCD connector 4-pin SPI port (can be used as digital I/O) 10 Analog inputs +5V GND GND JP_PWR 3-pin logic power jumper (short top 2 pins

More information

Quick Start Guide. TWR-MECH Mechatronics Board TOWER SYSTEM

Quick Start Guide. TWR-MECH Mechatronics Board TOWER SYSTEM TWR-MECH Mechatronics Board TOWER SYSTEM Get to Know the Tower Mechatronics Board Primary Connector / Switch MCF52259 Connectors for Up to Eight Servos SW4 (Reset) USB OTG 5V Supply Touch Panel Socket

More information

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester Leonardo Journal of Sciences ISSN 1583-0233 Issue 20, January-June 2012 p. 31-36 Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester Ganesh Sunil NHIVEKAR *, and Ravidra Ramchandra MUDHOLKAR

More information

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

APPLICATION NOTE. Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Atmel AVR 8-bit Microcontroller. Introduction. APPLICATION NOTE Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer Introduction Atmel AVR 8-bit Microcontroller This application note describes how to implement a real time counter (RTC)

More information

How to use AVR Studio for Assembler Programming

How to use AVR Studio for Assembler Programming How to use AVR Studio for Assembler Programming Creating your first assembler AVR project Run the AVRStudio program by selecting Start\Programs\Atmel AVR Tools\AVR Studio. You should see a screen like

More information

3-Digit Counter and Display

3-Digit Counter and Display ECE 2B Winter 2007 Lab #7 7 3-Digit Counter and Display This final lab brings together much of what we have done in our lab experiments this quarter to construct a simple tachometer circuit for measuring

More information

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc. SKP16C62P Tutorial 1 Software Development Process using HEW Renesas Technology America Inc. 1 Overview The following tutorial is a brief introduction on how to develop and debug programs using HEW (Highperformance

More information

EVAL-UFDC-1/UFDC-1M-16

EVAL-UFDC-1/UFDC-1M-16 Evaluation Board for Universal Frequency-to- Digital Converters UFDC-1 and UFDC-1M-16 EVAL-UFDC-1/UFDC-1M-16 FEATURES Full-Featured Evaluation Board for the Universal Frequency-to-Digital Converters UFDC-1

More information

Chapter 4: Pulse Width Modulation

Chapter 4: Pulse Width Modulation Pulse Width Modulation Page 127 Chapter 4: Pulse Width Modulation PULSES FOR COMMUNICATION AND CONTROL Pulse width modulation is abbreviated PWM, and it refers to a technique of varying the amount of time

More information

revolution Contents: Introduction Power 28-pin Project Board with input/output cables

revolution Contents: Introduction Power 28-pin Project Board with input/output cables 28-PIN IN IN PROJECT BOARD Contents: AXE020 28-pin Project Board with input/output cables Introduction The 28-pin project board is designed to allow rapid prototyping with 28-pin PICAXE microcontrollers.

More information

An Introduction to MPLAB Integrated Development Environment

An Introduction to MPLAB Integrated Development Environment An Introduction to MPLAB Integrated Development Environment 2004 Microchip Technology Incorporated An introduction to MPLAB Integrated Development Environment Slide 1 This seminar is an introduction to

More information

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

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs AN033101-0412 Abstract This describes how to interface the Dallas 1-Wire bus with Zilog s Z8F1680 Series of MCUs as master devices. The Z8F0880,

More information

Microcontroller Code Example Explanation and Words of Wisdom For Senior Design

Microcontroller Code Example Explanation and Words of Wisdom For Senior Design Microcontroller Code Example Explanation and Words of Wisdom For Senior Design For use with the following equipment: PIC16F877 QikStart Development Board ICD2 Debugger MPLAB Environment examplemain.c and

More information

Modification of an AOR AR-8600 receiver to tune it with a ACECO FC-3002 frequency finder

Modification of an AOR AR-8600 receiver to tune it with a ACECO FC-3002 frequency finder Modification of an AOR AR-8600 receiver to tune it with a ACECO FC-3002 frequency finder Matthias DD1US updated June 2 nd 2011 Description of the ACECO FC-3002 unit: The ACECO FC-3002 is a handheld frequency

More information

ARDUINO SEVERINO SERIAL SINGLE SIDED VERSION 3 S3v3 (REVISION 2) USER MANUAL

ARDUINO SEVERINO SERIAL SINGLE SIDED VERSION 3 S3v3 (REVISION 2) USER MANUAL ARDUINO SEVERINO SERIAL SINGLE SIDED VERSION 3 S3v3 (REVISION 2) USER MANUAL X1: DE-9 serial connector Used to connect computer (or other devices) using RS-232 standard. Needs a serial cable, with at least

More information

The Programming Interface

The Programming Interface : In-System Programming Features Program any AVR MCU In-System Reprogram both data Flash and parameter EEPROM memories Eliminate sockets Simple -wire SPI programming interface Introduction In-System programming

More information

AVR126: ADC of megaavr in Single Ended Mode. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR126: ADC of megaavr in Single Ended Mode. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE AVR 8-bit Microcontrollers AVR126: ADC of megaavr in Single Ended Mode APPLICATION NOTE Introduction Atmel megaavr devices have a successive approximation Analog-to- Digital Converter (ADC) capable of

More information

Advanced Data Capture and Control Systems

Advanced Data Capture and Control Systems Advanced Data Capture and Control Systems Tronisoft Limited Email: sales@tronisoft.com Web: www.tronisoft.com RS232 To 3.3V TTL User Guide RS232 to 3.3V TTL Signal Converter Modules P/N: 9651 Document

More information

Experiment 8 : Pulse Width Modulation

Experiment 8 : Pulse Width Modulation Name/NetID: Teammate/NetID: Experiment 8 : Pulse Width Modulation Laboratory Outline In experiment 5 we learned how to control the speed of a DC motor using a variable resistor. This week, we will learn

More information

Special Lecture. Basic Stamp 2 Programming. (Presented on popular demand)

Special Lecture. Basic Stamp 2 Programming. (Presented on popular demand) Special Lecture Basic Stamp 2 Programming (Presented on popular demand) Programming Environment Servo Motor: How It Work? The editor window consists of the main edit pane with an integrated explorer panel

More information

Pmod peripheral modules are powered by the host via the interface s power and ground pins.

Pmod peripheral modules are powered by the host via the interface s power and ground pins. Digilent Pmod Interface Specification Revision: November 20, 2011 1300 NE Henley Court, Suite 3 Pullman, WA 99163 (509) 334 6306 Voice (509) 334 6300 Fax Introduction The Digilent Pmod interface is used

More information

Android Controlled Based Interface

Android Controlled Based Interface Android Controlled Based Interface Objective Fix Foba Build Rofi (Fifth Generation Robot) Develop, Build, and Implement a Dynamic Balanced Biped Robot Table of Contents Objective... 1 Android Controlled

More information

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill Objectives: Analyze the operation of sequential logic circuits. Understand the operation of digital counters.

More information

Introducing AVR Dragon

Introducing AVR Dragon Introducing AVR Dragon ' Front Side Back Side With the AVR Dragon, Atmel has set a new standard for low cost development tools. AVR Dragon supports all programming modes for the Atmel AVR device family.

More information

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK Because Arduino that is the development project on AVR MCU as Open Source has been published, it is popular and widespread shortly.

More information

DMX-K-DRV. Integrated Step Motor Driver + (Basic Controller) Manual

DMX-K-DRV. Integrated Step Motor Driver + (Basic Controller) Manual DMX-K-DRV Integrated Step Motor Driver + (Basic Controller) Manual DMX-K-DRV Manual page 1 rev 1.33 COPYRIGHT 2007 ARCUS, ALL RIGHTS RESERVED First edition, June 2007 ARCUS TECHNOLOGY copyrights this document.

More information

Using a Laptop Computer with a USB or Serial Port Adapter to Communicate With the Eagle System

Using a Laptop Computer with a USB or Serial Port Adapter to Communicate With the Eagle System Using a Laptop Computer with a USB or Serial Port Adapter to Communicate With the Eagle System ECU DB9 USB 20-060_A.DOC Page 1 of 18 9/15/2009 2009 Precision Airmotive LLC This publication may not be copied

More information

Measuring Resistance Using Digital I/O

Measuring Resistance Using Digital I/O Measuring Resistance Using Digital I/O Using a Microcontroller for Measuring Resistance Without using an ADC. Copyright 2011 John Main http://www.best-microcontroller-projects.com Page 1 of 10 Table of

More information

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

APPLICATION NOTE Atmel AT02509: In House Unit with Bluetooth Low Energy Module Hardware User Guide 8-bit Atmel Microcontroller Features Description APPLICATION NOTE Atmel AT259: In House Unit with Bluetooth Low Energy Module Hardware User Guide Features 8-bit Atmel Microcontroller Low power consumption Interface with BLE with UART Bi-direction wake

More information

Electronics 5: Arduino, PWM, Mosfetts and Motors

Electronics 5: Arduino, PWM, Mosfetts and Motors BIOE 123 Module 6 Electronics 5: Arduino, PWM, Mosfetts and Motors Lecture (30 min) Date Learning Goals Learn about pulse width modulation (PWM) as a control technique Learn how to use a Mosfets to control

More information

MANUAL FOR RX700 LR and NR

MANUAL FOR RX700 LR and NR MANUAL FOR RX700 LR and NR 2013, November 11 Revision/ updates Date, updates, and person Revision 1.2 03-12-2013, By Patrick M Affected pages, ETC ALL Content Revision/ updates... 1 Preface... 2 Technical

More information

Testing Data Radio Modem with Serial Port Tool V1.20

Testing Data Radio Modem with Serial Port Tool V1.20 Testing Data Radio Modem with Serial Port Tool V1.20 This document demonstrates how to test the communication of data radio modem with tool Advanced Serial Port Monitor from AGG Software and USB board.

More information

Event counters in NOVA

Event counters in NOVA Case study: how to use the event counters in NOVA? 1 Event counter support NOVA Technical Note 22 Event counters in NOVA Most of the measurement commands, like CV staircase or Record signals (> 1 ms) provide

More information

ABB Drives. User s Manual HTL Encoder Interface FEN-31

ABB Drives. User s Manual HTL Encoder Interface FEN-31 ABB Drives User s Manual HTL Encoder Interface FEN-31 HTL Encoder Interface FEN-31 User s Manual 3AUA0000031044 Rev B EN EFFECTIVE: 2010-04-06 2010 ABB Oy. All Rights Reserved. 5 Safety instructions

More information

HOBBY SERVO FUNDAMENTALS BY: DARREN SAWICZ

HOBBY SERVO FUNDAMENTALS BY: DARREN SAWICZ HOBBY SERVO FUNDAMENTALS BY: DARREN SAWICZ I NTRODUCTION H obby servos are a popular and inexpensive method of motion control. They provide an off-the-shelf solution for most of the R/C and robotic hobbyist's

More information

2.0 Command and Data Handling Subsystem

2.0 Command and Data Handling Subsystem 2.0 Command and Data Handling Subsystem The Command and Data Handling Subsystem is the brain of the whole autonomous CubeSat. The C&DH system consists of an Onboard Computer, OBC, which controls the operation

More information

ABACOM - netpio. http://www.abacom-online.de/div/setup_netpio.exe

ABACOM - netpio. http://www.abacom-online.de/div/setup_netpio.exe ABACOM - netpio Download http://www.abacom-online.de/div/setup_netpio.exe The ABACOM netpio board is a 10Mbit network interface designed for measurement and control applications. The board is available

More information

ABB Drives. User s Manual. Pulse Encoder Interface Module RTAC-01

ABB Drives. User s Manual. Pulse Encoder Interface Module RTAC-01 ABB Drives User s Manual Pulse Encoder Interface Module RTAC-0 Pulse Encoder Interface Module RTAC-0 User s Manual 3AFE 64486853 REV A EN EFFECTIVE:.5.00 00 ABB Oy. All Rights Reserved. Safety instructions

More information

EE318 Electronic Design Lab Project Report, EE Dept, IITB, April 2009. Wireless Microcontroller Programmer

EE318 Electronic Design Lab Project Report, EE Dept, IITB, April 2009. Wireless Microcontroller Programmer EE318 Electronic Design Lab Project Report, EE Dept, IITB, April 2009 Wireless Microcontroller Programmer Group No. B04 Varun Jog (06007012), varunjog@iitb.ac.in Rohit Agarwal (06007014), rohitagarwal@iitb.ac.in

More information

Pulse Width Modulation (PWM) LED Dimmer Circuit. Using a 555 Timer Chip

Pulse Width Modulation (PWM) LED Dimmer Circuit. Using a 555 Timer Chip Pulse Width Modulation (PWM) LED Dimmer Circuit Using a 555 Timer Chip Goals of Experiment Demonstrate the operation of a simple PWM circuit that can be used to adjust the intensity of a green LED by varying

More information

IEC60601-1-8 Algorithmic Alert Tone Demo

IEC60601-1-8 Algorithmic Alert Tone Demo IEC60601-1-8 Algorithmic Alert Tone Demo Hooking up the demo - Connect the RS-232 connector to the COM1 (P3) connector on the MCB2300 demo board as shown below. Connect the USB connector (to provide power)

More information

Current Loop Tuning Procedure. Servo Drive Current Loop Tuning Procedure (intended for Analog input PWM output servo drives) General Procedure AN-015

Current Loop Tuning Procedure. Servo Drive Current Loop Tuning Procedure (intended for Analog input PWM output servo drives) General Procedure AN-015 Servo Drive Current Loop Tuning Procedure (intended for Analog input PWM output servo drives) The standard tuning values used in ADVANCED Motion Controls drives are conservative and work well in over 90%

More information

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

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE Atmel AVR 8-bit Microcontroller AVR151: Setup and Use of the SPI APPLICATION NOTE Introduction This application note describes how to set up and use the on-chip Serial Peripheral Interface (SPI) of the

More information

APPLICATION NOTE. Atmel AT01095: Joystick Game Controller Reference Design. 8-/16-bit Atmel Microcontrollers. Features.

APPLICATION NOTE. Atmel AT01095: Joystick Game Controller Reference Design. 8-/16-bit Atmel Microcontrollers. Features. APPLICATION NOTE Features Atmel AT01095: Joystick Game Controller Reference Design 8-/16-bit Atmel Microcontrollers Joystick Game Controller Atmel ATxmega32A4U microcontroller In System Programming (ISP)

More information

EasyPIC4 User s Manual

EasyPIC4 User s Manual SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD MikroElektronika - Books - Compilers User s Manual PIC MICROCHIP DEVELOPMENT BOARD 3in1 mikro IN-CIRCUIT DEBUGGER USB 2.0 IN-CIRCUIT PROGRAMMER With

More information

Massachusetts Institute of Technology

Massachusetts Institute of Technology Objectives Massachusetts Institute of Technology Robotics: Science and Systems I Lab 1: System Overview and Introduction to the µorcboard Distributed: February 4, 2015, 3:30pm Checkoffs due: February 9,

More information

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

Bluetooth + USB 16 Servo Controller [RKI-1005 & RKI-1205] Bluetooth + USB 16 Servo Controller [RKI-1005 & RKI-1205] Users Manual Robokits India info@robokits.co.in http://www.robokitsworld.com Page 1 Bluetooth + USB 16 Servo Controller is used to control up to

More information

M68EVB908QL4 Development Board for Motorola MC68HC908QL4

M68EVB908QL4 Development Board for Motorola MC68HC908QL4 M68EVB908QL4 Development Board for Motorola MC68HC908QL4! Axiom Manufacturing 2813 Industrial Lane Garland, TX 75041 Email: Sales@axman.com Web: http://www.axman.com! CONTENTS CAUTIONARY NOTES...3 TERMINOLOGY...3

More information

A Digital Timer Implementation using 7 Segment Displays

A Digital Timer Implementation using 7 Segment Displays A Digital Timer Implementation using 7 Segment Displays Group Members: Tiffany Sham u2548168 Michael Couchman u4111670 Simon Oseineks u2566139 Caitlyn Young u4233209 Subject: ENGN3227 - Analogue Electronics

More information

Timer A (0 and 1) and PWM EE3376

Timer A (0 and 1) and PWM EE3376 Timer A (0 and 1) and PWM EE3376 General Peripheral Programming Model Each peripheral has a range of addresses in the memory map peripheral has base address (i.e. 0x00A0) each register used in the peripheral

More information

Allen-Bradley/Rockwell

Allen-Bradley/Rockwell MANUFACTURER DATA SHEET High Speed Counter Manufacturer: Allen-radley/Rockwell Model Number: 1746-HSCE See www.geomartin.com for additional PDF datasheets Martin Part Number: E-014901-03 VendorPartNumber:

More information

PRODUCTIVITY THROUGH INNOVATION 600 CONTROL DIRECT DRIVE TECHNICAL/OPERATION MANUAL

PRODUCTIVITY THROUGH INNOVATION 600 CONTROL DIRECT DRIVE TECHNICAL/OPERATION MANUAL Rev. D PRODUCTIVITY THROUGH INNOVATION 600 CONTROL DIRECT DRIVE TECHNICAL/OPERATION MANUAL 10 BORIGHT AVENUE, KENILWORTH NEW JERSEY 07033 TELEPHONE: 800-524-0273 FAX: 908-686-9317 TABLE OF CONTENTS Page

More information

Arduino ADK Back. For information on using the board with the Android OS, see Google's ADK documentation.

Arduino ADK Back. For information on using the board with the Android OS, see Google's ADK documentation. Arduino ADK Arduino ADK R3 Front Arduino ADK R3 Back Arduino ADK Front Arduino ADK Back Overview The Arduino ADK is a microcontroller board based on the ATmega2560 (datasheet). It has a USB host interface

More information

Arduino Due Back. Warning: Unlike other Arduino boards, the Arduino Due board runs at 3.3V. The maximum. Overview

Arduino Due Back. Warning: Unlike other Arduino boards, the Arduino Due board runs at 3.3V. The maximum. Overview R Arduino Due Arduino Due Front Arduino Due Back Overview The Arduino Due is a microcontroller board based on the Atmel SAM3X8E ARM Cortex-M3 CPU (datasheet). It is the first Arduino board based on a 32-bit

More information

Software Manual RS232 Laser Merge Module. Document # SU-256521-09 Rev A

Software Manual RS232 Laser Merge Module. Document # SU-256521-09 Rev A Laser Merge Module Document # SU-256521-09 Rev A The information presented in this document is proprietary to Spectral Applied Research Inc. and cannot be used for any purpose other than that for which

More information

Advanced LED Controller (LED Chaser)

Advanced LED Controller (LED Chaser) Advanced LED Controller (LED Chaser) Introduction. Advanced LED controller (also known as LED Chaser) is microcontroller based circuit designed to produce various visual LED light effects by controlling

More information

ECEN 1400, Introduction to Analog and Digital Electronics

ECEN 1400, Introduction to Analog and Digital Electronics ECEN 1400, Introduction to Analog and Digital Electronics Lab 4: Power supply 1 INTRODUCTION This lab will span two lab periods. In this lab, you will create the power supply that transforms the AC wall

More information

Display Board Pulse Width Modulation (PWM) Power/Speed Controller Module

Display Board Pulse Width Modulation (PWM) Power/Speed Controller Module Display Board Pulse Width Modulation (PWM) Power/Speed Controller Module RS0 Microcontroller LEDs Motor Control Pushbuttons Purpose: To demonstrate an easy way of using a Freescale RS0K2 microcontroller

More information

XS-3525/8S-3. Preliminary DataSheet Version 2.02

XS-3525/8S-3. Preliminary DataSheet Version 2.02 XS-3525/8S-3 Preliminary DataSheet Version 2.02 X The XS-3525/8S-3 microstepping stepper motor driver is the perfect choice for CNC retrofitting of desktop and small benchtop milling machines. Connect

More information

Microtronics technologies Mobile: 99707 90092

Microtronics technologies Mobile: 99707 90092 For more Project details visit: http://www.projectsof8051.com/rfid-based-attendance-management-system/ Code Project Title 1500 RFid Based Attendance System Synopsis for RFid Based Attendance System 1.

More information

Digi-Motor Installation Guide

Digi-Motor Installation Guide Digi-Motor Installation Guide Installation Video...located at marsdelivers.com Digi-Motor Installation Guide Digi-Motor For technical assistance with your Azure Digi-Motor, call the MARS technical support

More information

Controlling a Dot Matrix LED Display with a Microcontroller

Controlling a Dot Matrix LED Display with a Microcontroller Controlling a Dot Matrix LED Display with a Microcontroller By Matt Stabile and programming will be explained in general terms as well to allow for adaptation to any comparable microcontroller or LED matrix.

More information

How To Program A Microcontroller Board (Eb064) With A Psp Microcontroller (B064-74) With An Ios 2.5V (Power) And A Ppt (Power Control) (Power Supply) (

How To Program A Microcontroller Board (Eb064) With A Psp Microcontroller (B064-74) With An Ios 2.5V (Power) And A Ppt (Power Control) (Power Supply) ( dspic / PIC24 Multiprogrammer datasheet EB064-00 00-1 Contents 1. About this document... 2 2. General information... 3 3. Board layout... 4 4. Testing this product... 5 5. Circuit description... 6 Appendix

More information

APPLICATION NOTE. AVR042: AVR Hardware Design Considerations. AVR 8-bit Microcontrollers. Features. Description

APPLICATION NOTE. AVR042: AVR Hardware Design Considerations. AVR 8-bit Microcontrollers. Features. Description APPLICATION NOTE AVR042: AVR Hardware Design Considerations AVR 8-bit Microcontrollers Features Providing robust supply voltage, digital, and analog Connection of RESET line SPI interface for In-System

More information

Arduino Lesson 14. Servo Motors

Arduino Lesson 14. Servo Motors Arduino Lesson 14. Servo Motors Created by Simon Monk Last updated on 2013-06-11 08:16:06 PM EDT Guide Contents Guide Contents Overview Parts Part Qty The Breadboard Layout for 'Sweep' If the Servo Misbehaves

More information

Key Words Student Paper, School of Professional Studies

Key Words Student Paper, School of Professional Studies Motor Speed Sensing with PIC Microcontroller Brandon Upchurch, Olivet Nazarene University Faculty Advisor: Dr. Rodney Korthals, Olivet Nazarene University Student Paper Abstract A system was designed and

More information

EvB 5.1 v5 User s Guide

EvB 5.1 v5 User s Guide EvB 5.1 v5 User s Guide Page 1 Contents Introduction... 4 The EvB 5.1 v5 kit... 5 Power supply...6 Programmer s connector...7 USB Port... 8 RS485 Port...9 LED's...10 Pushbuttons... 11 Potentiometers and

More information

C8051F020 Utilization in an Embedded Digital Design Project Course. Daren R. Wilcox Southern Polytechnic State University Marietta, Georgia

C8051F020 Utilization in an Embedded Digital Design Project Course. Daren R. Wilcox Southern Polytechnic State University Marietta, Georgia C8051F020 Utilization in an Embedded Digital Design Project Course Daren R. Wilcox Southern Polytechnic State University Marietta, Georgia Abstract In this paper, the utilization of the C8051F020 in an

More information

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT 956 24-BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT 956 24-BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION LTC2485 DESCRIPTION Demonstration circuit 956 features the LTC2485, a 24-Bit high performance Σ analog-to-digital converter (ADC). The LTC2485 features 2ppm linearity, 0.5µV offset, and 600nV RMS noise.

More information

RPLIDAR. Low Cost 360 degree 2D Laser Scanner (LIDAR) System Development Kit User Manual. 2014-2 Rev.1

RPLIDAR. Low Cost 360 degree 2D Laser Scanner (LIDAR) System Development Kit User Manual. 2014-2 Rev.1 RPLIDAR Low Cost 360 degree 2D Laser Scanner (LIDAR) Development Kit User Manual 2014-2 Rev.1 Team Contents: 1. OVERVIEW... 2 ITEMS IN DEVELOPMENT KIT... 2 RPLIDAR... 2 USB ADAPTER... 3 2. CONNECTION AND

More information

Portal Software GSM-PRO Run LED displays module activity Com LED displays activity on the GSM network GSM-PRO

Portal Software GSM-PRO Run LED displays module activity Com LED displays activity on the GSM network GSM-PRO GSM-PRO GSM-PRO perfect for communication CONTA-CLIP s GSM-PRO module offers a remote control and maintenance solution which allows you to monitor and control decentralized facilities. The GSM-PRO module

More information