CEEN 1060 Microprocessor Applications Spring 07. LABORATORY 7 Completion Demo: week of 4/2/07

Similar documents
ET-BASE AVR ATmega64/128

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

Mobius 3 Circuit Board Programming Instructions

The $25 Son of a cheap timer This is not suitable for a beginner. You must have soldering skills in order to build this kit.

Lab Experiment 1: The LPC 2148 Education Board

EasyPIC4 User s Manual

K128. USB PICmicro Programmer. DIY Electronics (HK) Ltd PO Box 88458, Sham Shui Po, Hong Kong. mailto:

INTRODUCTION TO SERIAL ARM

Programming Device Manual Booklet AVR Prog USB v2

Programming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II

Programming the On-Chip Flash on a phycore-xc161 phycore-xc167

EvB 5.1 v5 User s Guide

The Quadcopter Controller

AVR Butterfly Training. Atmel Norway, AVR Applications Group

EXPRESS PCB TUTORIAL Author: Lee Morey Revised: JE Feb 2015

TEECES DOME LIGHTING SYSTEMS

STK User Guide

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

HITT101 H-ITT Audience Response System 101

WIZ-Embedded WebServer User s Manual (Ver. 1.0)

Total solder points: 167 Difficulty level: beginner advanced DMX CONTROLLED RELAY K8072 ILLUSTRATED ASSEMBLY MANUAL

RS232C < - > RS485 CONVERTER S MANUAL. Model: LD15U. Phone: / 97 / 98 (M)

STIM202 Evaluation Kit

!Operation:!1. Connect an external power source to J1 (+ and - IN terminals). The

KTA-223 Arduino Compatible Relay Controller

DDS VFO CONSTRUCTION MANUAL. DDS VFO Construction Manual Issue 1 Page 1

ISP Engineering Kit Model 300

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

Controlling a Dot Matrix LED Display with a Microcontroller

BUILDING INSTRUCTIONS

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

An Introduction to MPLAB Integrated Development Environment

How to setup a serial Bluetooth adapter Master Guide

KI6501 Data Manager. Software User Manual

Lab 1: Introduction to Xilinx ISE Tutorial

This lab is due 5:30PM Tuesday November 2, 2010 at 115 Hackerman Hall

K8025 VIDEO PATTERN GENERATOR. Check the picture quality of your monitor or TV, ideal for adjustment or troubleshooting.

RLC Series Resonance

5. Tutorial. Starting FlashCut CNC

Ocean Controls RC Servo Motor Controller

AVR Prog User Guide. Section 3

Six-servo Robot Arm. DAGU Hi-Tech Electronic Co., LTD Six-servo Robot Arm

MTX-D, Oil Temperature/Pressure Gauge

COPYRIGHT TOP NOTCH TABLETS LLC HOW TO: Install the Drivers to your PC so you can Flash Firmware to your RK3066 Powered Tablet.

PICmicro tm Development Board

Alpha 10 SERVICE MANUAL. Downloaded from MAX 10 Meter Amateur Transceiver AM/FM/CW/SSB 6 BAND PROGRAMMABLE MODEL AM-1000.

Pocket Verifier Quick Start HTC Touch Diamond

Microstep Driver Manual Version 6/13/2006

Troubleshooting Tips Lifestyle SA-2 & SA-3 Amplifier. Troubleshooting Tips

Tutorials Drawing a 555 timer circuit

Assembly Instructions: Shortwave Radio Kit

Make Voice Calls and Share Documents using Skype*

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) (

Start A New Project with Keil Microcontroller Development Kit Version 5 and Freescale FRDM-KL25Z

Before installation it is important to know what parts you have and what the capabilities of these parts are.

EMBEDDED C USING CODEWARRIOR Getting Started Manual

Real Time Clock USB Evaluation Board V3.0

AUTOMATIC CALL RECORDER JAMECO PART NO

Arduino Lesson 0. Getting Started

AXE114S BINARY CLOCK. revolution Revolution Education Ltd. Web: Version /09/08 AXE114.PMD.

The Radio-Kits Digital SWR meter kit Construction and user manual

Config software for D2 systems USER S MANUAL

RC2200DK Demonstration Kit User Manual

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

Assembly and User Guide

USBSPYDER08 Discovery Kit for Freescale MC9RS08KA, MC9S08QD and MC9S08QG Microcontrollers User s Manual

Analog control unit for mobile robots

BMD16N-SD. version 1.2

SoundLAB Software Download Software from the Bogen website:

XConsole GUI setup communication manual September 2010.

Troubleshooting and Diagnostics

MAX17061A Evaluation Kit/Evaluation System

Lab 3: PCB design with EAGLE

Quick Start Tutorial. Using the TASKING* Software Development Tools with the Intel 8x930 Family Evaluation Board

User's Guide. Integrating Sound Level Datalogger. Model Introduction

PN L, Revision B, October Epic 950 TM. Master Programmer User s Guide

Objectives: Part 1: Build a simple power supply. CS99S Laboratory 1

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Microprocessor Project Laboratory

Kit Watt Audio Amplifier

Series 2000 Audit and Calibration Users Guide

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

Compaq Presario MyMovieSTUDIO. Getting Started

V.I.P. Kit. Video Insight Pilot Kit. (Video Insight Pilot Kit).


Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

Accessing vlabs using the VMware Horizon View Client for OSX

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

Table of Contents. Use. Troubleshooting. Setup. Welcome. 11 How to arm/disarm system/camera(s) 19 Sync Module setup issues. 3 Installing the Blink app

GLOLAB Universal Telephone Hold

Animated Lighting Software Overview

AVR Prog USB v3 MK II Eco Manual

How to use AVR Studio for Assembler Programming

Instructions for Formatting APA Style Papers in Microsoft Word 2010

The new Velleman Projects catalogue is now available. Download your copy here:

Robot Board Sub-System Testing. Abstract. Introduction and Theory. Equipment. Procedures. EE 101 Spring 2006 Date: Lab Section # Lab #6

FlowKit in-circuit debug system

DsPIC HOW-TO GUIDE Creating & Debugging a Project in MPLAB

DS2149DK/DS21349DK T1/J1 Line Interface Unit Design Kit

Table of Contents. 1. Overview Materials Required System Requirements User Mode Installation Instructions..

Wireless Genie Mini MODEL C41W

Transcription:

CEEN 1060 Microprocessor Applications Spring 07 OBJECTIVES: LABORATORY 7 Completion Demo: week of 4/2/07 TekBot TM MICROCONTROLLER BOARD The purpose of Laboratory 7 is to replace the Analog Brain Board on the TekBot with a digital microcontroller board. This will provide the existing TekBot platform features such as added control and expandability. PROCEDURE: Several files have been included on the CEEN 1060 Blackboard site to aid in the assembly of your TekBot microcontroller board. Two video files provide clear instructions. These should be viewed along with this handout. The AVR tutorial file should be read before and consulted during the programming of your ATmega32 microcontroller. In the past, several students have damaged equipment and their systems because of failure to READ the instructions. Don t consult the handouts to solve problems; use them to avoid problems. Of particular interest is the disabling of the JTAG interface and the powering of the ISP. REPORT: No report is required for Lab 7. Twenty course points will be awarded by the lab instructor for your demonstration of a working, microcontroller based TekBot. This is an individual assignment and must be completed during your lab period of the week of 4/2/07.

CEEN 1060 Microcontroller Assembly Instructions Ver. 1.1 1. Verify Parts Kit The parts kit should include the parts and quantities listed in Table 1. Verify your kit includes these before constructing the board. A photograph of the parts is shown in Fig 1. Part Quantity ATmega32 1 40 Pin Soldertail Socket 1 SIP Resistor - 470 2 Potentiometer -10k 1 Resistor - 10k 1 Resistor - 470 1 Diode - 1N4001 1 8 Position DIP Switch 1 Lumex 16X2 LCD Display 1 Female Header 0.100 36 Contacts 2 Male Header 0.100 36 Contacts 2 Tactile SPST 1 7805 Regulator 1 4.7uF capacitor 2.1uF capacitor 1 Shunt Connector 4 LED Bar Graph 10-Segment Green 1 Table 1 Figure 1

2. 40 Pin Soldertail Socket Solder the 40 pin Soldertail Socket into position. Place the socket into the board with the notch pointing toward the top of the board. Results shown in Fig 2. Figure 2 3. 7805 Regulator Insert the 7805 into the board and bend down so it lays on the board as shown in Fig 3. Figure 3

4. Sip Resistors Insert the two SIP resistors making sure the dot is pointing toward the top of the board. The board should now look like Fig 4. Figure 4 5. Power LED Resistor Insert the 470 Ohm resistor in the location labeled PWR_LED_RES as shown in Fig 5. Figure 5

6. Pull-up Resistor Insert the 10K resistor as shown in Fig 6. Figure 6 7. Diode Insert the diode as shown in Fig 7. Figure 7

8. 100nF Cap_1 Insert the 100nF capacitor as shown in Fig 8. Figure 8 9. Tactile SPST (Reset Switch) Insert the switch as shown in Fig 9. The legs should match with the holes exactly. The switch is not square, if the legs do not match with the holes rotate the switch 90 degrees. Figure 9

10. Male Header Solder male headers for the AVRISP, AVCC_JMP, AREF_JMP, LCD_PWR, LED_JMP. When finished the board should look like Fig 10. Figure 10 11. Female Header Solder female headers for PORTA, PORTB, PORTC, PORTD, LCD, PWR, 5V_OUT, XTAL, and AVCC/AREF. When finished the board should look like Fig 11. Figure 11

12. Capacitors Insert both capacitors with proper polarity per the notations on the board. The result should look like Fig 12. Figure 12 13. Potentiometer Insert the potentiometer in the location marked LCD_POT. The resultant board should look like Fig 13. Figure 13

14. DIP Switch Insert the DIP switch with the dot facing toward the top. The board should look like Fig 14. Figure 14 15. LED Bar Insert the LED bar with the notch facing toward the top of the board. Board should now look like Fig 15. Figure 15

16. LCD Display Solder the Male header into the LCD display so it looks like Fig 16. Figure 16

17. Connecting LCD to LCD Port The LCD connects into the LCD Port as shown in Fig 17. Figure 8

PROCEDURE: Programming The Microcontroller Board The objective for Laboratory 7 is to introduce programming the AVR microcontroller. For this particular laboratory, the assembly file has already been written. This will be the file that will be assembled and used to program your microcontroller. Future TekBot laboratories will require you to write, assemble, and program the microcontroller with your own source code. To this end, a supplemental tutorial is included that will aid you in the process. 1. Before any type of programming is done, the target board must be set up properly. Disconnect the LCD from the board. Disconnect the motors and the sensors from the target board. We need to make sure that the power is conserved for programming via the ISP, since the microcontroller board is the supplier of power to the ISP Programmer. 2. Next, note that a text file named TekBot_code should be downloaded to the desktop. Assemble this code to create a hex file for programming your TekBot. 3. Connect the ISP Programmer to the back of the computer through COM port 2 and fasten down. 4. THE POWER ON YOUR TEKBOT MUST BE OFF!! MAKE SURE THIS IS THE CASE, OTHERWISE, IT WILL DAMAGE THE ISP PROGRAMMER!! Connect the ISP Programmer to the target board. 5. From the Start Menu, select AVR Studio and open. From here, you should see a pop-up screen that will ask you if you would like to create or open an existing project. Click cancel to exit out of this.

6. Next, turn on the power to the microcontroller board. Make sure the LED comes on. You should also see that the LED on the ISP will transition from red-orange-green, then remain green. This means that the ISP is ready for programming. 7. Select Tools Program AVR Connect. 8. Select AVR ISP and COM2 from the popup window. Then hit Connect

9. From the popup window below, you need to select the ATMega32 from the device list. 10. Verify that device is ATmega32. Then click the Fuse tab. Verify that Enable JTAG Interface is disabled. Verify that Brown-out detection level=2.7 V is enabled. Verify that Int. RC Osc. 1 MHz, Start-up time: 6 CK + 0 ms is selected. Lastly verify that Boot flash section size =256 words is selected. Everything else should not be selected. 11. Click the Program tab. Click the icon by Input HEX File. Select the hex file that will be used to program the ATmega32. This HEX file will have the same name as the assembly file. 12. After the HEX file has been selected click Program. This will program the ATmega32. Once this is completed verify that the code works as expected. Please note: The light on the ISP will signal orange when in the programming mode. If the light is green after programming, the ATmega32 has been programmed successfully. If the light is red, you must re-program. (Refer to Message Window in AVR Studio)

INSTRUCTOR VERIFICATION SHEET (Turn This In to Receive Completed 20 Points For this Laboratory) VERIFICATION OF FUNCTIONALITY AFTER PROGRAMMING: Light Turns On Motors Work RESET Works LEDs Work (Test Separately) LCD Display Works (Test Separately) Programmed Correctly