Freescale Race Challenge 2010 Slot Car Equipment



Similar documents
Quick Start Guide. TWR-MECH Mechatronics Board TOWER SYSTEM

USB Mass Storage Device Host Bootloader

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

USB HID bootloader for the MC9S08JM60

HVP-KV31F120M Quick Start Guide

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

How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player

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

Quick Start Guide. MRB-KW01 Development Platform Radio Utility Application Demo MODULAR REFERENCE BOARD

Field Software Updates Using TPMS LF An example using the Low Frequency radio (LFR) for wireless software updating

Designing an Induction Cooker Using the S08PT Family

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

UniPi technical documentation REV 1.1

UPS PIco. to be used with. Raspberry Pi B+, A+, B, and A. HAT Compliant. Raspberry Pi is a trademark of the Raspberry Pi Foundation

M68EVB908QL4 Development Board for Motorola MC68HC908QL4

Hagenberg Linz Steyr Wels. API Application Programming Interface

DRV8312-C2-KIT How to Run Guide

USB Human Interface Device Boot Loader for ColdFire Plus, Kinetis K, and Kinetis L MCUs

CB-OLP425 DEVELOPMENT KIT GETTING STARTED

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

Microstep Driver Manual Version 6/13/2006

Automatic Accident Alert and Safety System using Embedded GSM Interface

TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT

Using the HCS12 Serial Monitor on Wytec Dragon-12 boards. Using Motorola s HCS12 Serial Monitor on Wytec s Dragon-12 boards

XBee/XBee PRO Code Development

Dolphin In-Circuit programming Updating Firmware in the field

Robust Over-the-Air Firmware Updates Using Program Flash Memory Swap on Kinetis Microcontrollers

Quick Start Guide. USB Packet Sniffer/Dongle for Kinetis MKW22D and MKW24D Wireless MCUs USB-KW24D512

Comparison of MC9S08QE128 and MCF51QE128 Microcontrollers Scott Pape and Eduardo Montanez Systems Engineering, Freescale Microcontroller Division

AN3265 Application note

MFRD52x. Mifare Contactless Smart Card Reader Reference Design. Document information

Application Module Student Learning Kit Users Guide featuring the Freescale MC9S08QG8

UM0834 User manual. Developing and debugging your STM8S-DISCOVERY application code. Introduction. Reference documents

FLYPORT Wi-Fi G

Applications Development on the ARM Cortex -M0+ Free On-line Development Tools Presented by William Antunes

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

UM1724 User manual. STM32 Nucleo boards. Introduction

Freescale, the Freescale logo and CodeWarrior are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Xtrinsic is a trademark of

USB Thumb Drive. Designer Reference Manual. HCS12 Microcontrollers. freescale.com. DRM061 Rev. 0 9/2004

Z8 Encore! XP F082A Series Development Kit

The Programming Interface

Embedded Systems on ARM Cortex-M3 (4weeks/45hrs)

FRDM-KL25Z User's Manual Rev. 1.0

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

IQRF Quick Start Guide

Designing VM2 Application Boards

DSO138 oscilloscope program upgrade method

SM1231 USER GUIDE SM1231 RF MODULE USER GUIDE

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

AN10866 LPC1700 secondary USB bootloader

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

AN1754 APPLICATION NOTE

HC08 Welcome Kit. Hardware- Version User Manual

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

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

Description of High Accuracy Digital Pressure Gauge Design

Programming Flash Microcontrollers through the Controller Area Network (CAN) Interface

Customer Experience. Silicon. Support & Professional Eng. Services. Freescale Provided SW & Solutions

ET-BASE AVR ATmega64/128

Open1788 User Manual. Features

Chapter 12. Development Tools for Microcontroller Applications

CryptoAuth Xplained Pro

AN3990 Application note

PICNet 1. PICNet 1 PIC18 Network & SD/MMC Development Board. Features. Applications. Description

CodeWarrior Development Studio for Freescale S12(X) Microcontrollers Quick Start

MAX6683 Evaluation System/Evaluation Kit

How To Control A Motor Control On An Hvac Platform

Tutorial for MPLAB Starter Kit for PIC18F

Freescale Variable Key Security Protocol Transmitter User s Guide by: Ioseph Martínez and Christian Michel Applications Engineering - RTAC Americas

POCKET SCOPE 2. The idea 2. Design criteria 3

Hitchhiker's Guide to CodeWarrior EE371, EE475 Fall 2005

UT165 Advanced USB2.0 Flash Drive Controller

Using the Kinetis Security and Flash Protection Features

USB / Data-Acquisition Module NOW LEAD-FREE

Quick Start Guide for High Voltage Solar Inverter DC-AC Board EVM. Version 1.3

Web Site: Forums: forums.parallax.com Sales: Technical:

Software Real Time Clock Implementation on MC9S08LG32

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

HC(S)08-System for Development and Training

Bill Of Material: The turtle

EasyPIC4 User s Manual

Avoiding Read While Write Errors When Developing In-Software Flash Programming Applications for Kinetis and ColdFire+ MCUs

USB - FPGA MODULE (PRELIMINARY)

M52233DEMO Demonstration Board for Freescale MCF52233

Lab Experiment 1: The LPC 2148 Education Board

DAKTON µ BOX MANUAL µbox User Manual 1

Using WinUSB in a Visual Studio Project with Freescale USB device controller

AN3354 Application note

DALI Control Gear Software Stack

Electronic Transmission Control/ Continuously Variable Transmission Control

Freescale USB Mass Storage Device Bootloader

Atmel AVR ATxmega384C3 microcontroller OLED display with pixels resolution Analog sensors. Ambient light sensor Temperature sensor

Ocean Controls RC Servo Motor Controller

Application Note. Introduction AN2395/D 12/2002. PC Master Software Usage

Scalar Network Analyzer

MC433 Stepper Motor Controller

How To Develop A Toolstick

SmartFusion csoc: Basic Bootloader and Field Upgrade envm Through IAP Interface

i.mx USB loader A white paper by Tristan Lelong

Transcription:

November 27, 2009 rev 1.1 Freescale Race Challenge 2010 Slot Car Equipment Milan Brejl Freescale Semiconductor, Rožnov p.r., Czech Republic Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. Freescale Semiconductor, Inc. 2008.

FRC2010 Slot Car Equipment Equip the standard slot car by electronics and control algorithm to make it a self-driving slot car Take benefits of: FRC2010 Participant Package Code Warrior Special Suit free software development tools Quick Start on-line resources: trainings, software template, etc. Your creativity, skillfulness and enthusiasm! 2

FRC2010 Slot Car Features Reference design slot car features 3-axis acceleration measurement using accelerometer MMA7361 4-quadrant DC motor control using monolithic H-bridge MC33931 USB connection miniusb connector slot car connected to the PC behaves as a mass storage device copy.s19 file in to program your application into Flash no debugger provided (although BDM port available on extension header) microsd card slot runtime storage of data (microsd card not provided) easy transfer to PC for analysis and algorithm development 4 LEDs control using PWM original Carrera Audi R8 head and bread LEDs changeover detection 3

Every registered FRC2010 participant obtains: Slot car Carrera Audi R8 Unpopulated PCB Devices Microcontroller MCF51JM64 Accelerometer MMA7361 H-Bridge MC33931 miniusb connector microsd card slot 8.000MHz Crystal 1A Bridge Rectifier DB106S 3.3V Linear Voltage Regulator LP2951 FRC2010 Participant Package 4

Slot Car Electronic Equipment - PCB PCB design files (Eagle 5.1.0): http://hw.cz/files/frc2010slotcarhw.zip Populate the provided PCB resistors, capacitors and diodes are not provided use line filter from the original car PCB line filter 5

Bill Of Materials Slot Car Electronic Equipment - PCB provided not provided Self-Driven Slot Car v2.1 BOM -------------------------------------------------------------------------------- Part Value Package Source -------------------------------------------------------------------------------- IC4 MCF51JM64VLH LQFP64 Freescale http://www.freescale.com/files/32bit/doc/data_sheet/mcf51jm128.pdf IC3 MMA7361LR1 LGA14 Freescale http://www.freescale.com/files/sensors/doc/data_sheet/mma7361l.pdf IC2 MC33931VW HSOP44 Freescale http://www.freescale.com/files/analog/doc/data_sheet/mc33931.pdf IC1 LP2951CDM-3.3R2G MICRO8 ON Semi http://www.onsemi.com/pub/collateral/lp2950-d.pdf IC5 MICRO_SD microsd http://www.gme.cz/cz/index.php?product=823-036 CON8 MINI-USB-SCHIELD 32005-301 http://www.gme.cz/cz/index.php?product=832-177 B1 DB106S DBS http://www.gme.cz/cz/index.php?product=924-009 Q1 8MHz HC49UP http://www.gme.cz/cz/index.php?product=970-023 L1 SF0905 DB-1S line filter from the original Carrera Audi R8 PCB -------------------------------------------------------------------------------- JP1 JUMPER JP2 D1,D2 MBRS130LT3G SMB D3,D4 1N4148 MICROMELF-W R1,R2 62k R0603 R3,R4 12k R0603 R5,R9,R12,R17 10k R0603 R6 270R R0603 R7 1M R0603 R8 0R R0603 R10,R11 220R R0603 R13,R14 33R R0603 R15,R16 27R R0603 R18 330k R0603 C1 100uF SMC_C C2,C3 1uF SMC_A C4,C5 (100nF)? C0603 C6 100nF C0603 C7 1uF SMC_A C8 33nF C0603 C9,C10 5pF C0603 C11,C12,C13 100nF C0603 C14 4.7uF SMC_A C15 0.47uF C0805 C16 100nF C1206 C17 100nF C0603 C18,C19,C20 3n3 C0603 6

Slot Car Electronic Equipment - Installation 1. Remove the traction magnets they are not allowed 7

Slot Car Electronic Equipment - Installation 2. Dismount the bodywork from the chassis 8

Slot Car Electronic Equipment - Installation 3. Unplug all connectors 4. Remove the original PCB Line Filter to be used on the new PCB 9

Slot Car Electronic Equipment - Installation 5. Use a knife to cut out two protrusions 10

Slot Car Electronic Equipment - Installation 6. Install the populated PCB in, use the original screw 11

Slot Car Electronic Equipment - Installation 9. Connect original LEDs, motor, power and external capacitor 12

Slot Car Electronic Equipment - Installation 8. Connect external capacitor (prevents from MCU reset on changeovers) 13

Slot Car Electronic Equipment - Installation 9. Make holes in the body for miniusb connector and microsd card 14

Slot Car Electronic Equipment Schematic

Datasheets Slot Car Electronic Equipment - Datasheets Microcontroller MCF51JM64 http://www.freescale.com/files/32bit/doc/ref_manual/mcf51jm128rm.pdf Accelerometer MMA7361 http://www.freescale.com/files/sensors/doc/data_sheet/mma7361l.pdf H-Bridge MC33931 http://www.freescale.com/files/analog/doc/data_sheet/mc33931.pdf miniusb connector http://www.gme.cz/_dokumentace/dokumenty/832/832-177/dsh.832-177.1.pdf microsd card slot http://www.soselectronic.com/a_info/resource/f/2900_serie.pdf 8.000MHz Crystal http://www.gme.cz/_dokumentace/dokumenty/970/970-023/dsh.970-023.1.pdf 1A Bridge Rectifier DB106S http://www.gme.cz/_dokumentace/dokumenty/924/924-009/dsh.924-009.1.pdf 3.3V Linear Voltage Regulator LP2950 http://www.onsemi.com/pub_link/collateral/lp2950-d.pdf 16

Development Tools Compiler Freescale Code Warrior for Microcontrollers Special Suite (free) http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=cw-microcontrollers editor compiler & linker simulator Debugger no hardware debugger provided, use USB Bootloader to program your application into the MCU Trainings Control Algorithm Development Introduction to CodeWarrior http://www.freescale.com/webapp/sps/site/training_information.jsp?code=wbt_24571 Learn Programming with C http://www.freescale.com/webapp/sps/site/training_information.jsp?code=tp_c_programming 17

Control Algorithm Development USB Bootloader Enables to program MCU flash memory via USB preflashed to every MCF51JM64 provided with the participant package 1. Connect car to PC via USB Mass Storage Device and new disk letter appears contains READY.TXT (0 bytes) file 2. Copy your application.s19 file in The bootloader programs it to flash 3. Disconnect, put car on track 18

Slot Car Application Working in Bootloader Framework After reset, based on the power source, either the Bootloader or the User Application is started: USB power Bootloader runs Track power User Application runs Coexistance of Bootloader and User Application 1. Use the provided Linker Command File (.lcf) to keep the memory limits for the user application: MEMORY { bootcode (RX) : ORIGIN = 0x00000410, LENGTH = 0x000033F0 code (RX) : ORIGIN = 0x00003A00, LENGTH = 0x0000C600 vectorram (RWX) : ORIGIN = 0x00800000, LENGTH = 0x00000200 userram (RWX) : ORIGIN = 0x00800200, LENGTH = 0x00003E00 } 0x0000 0x0410 0x39FF 0x3A00 Flash Bootloader Interrupt Table Bootloader (13kB) User Application (51kB) 2. Redirect Interrupt Vectors into RAM, because Interrupt Vector Table in Flash is occupied by the Bootloader use the provided routine: RedirectInterruptVectorsToRAM(); 3. Include interrupt handlers into a table in ramvector.c, include its prototype in ramvector.h 0xFFFF RAM Application Interrupt Table Application usage (15.5kB) 19

Slot Car Application Quick Start Template Slot car embedded application quick start template Available for download at http://hw.cz/files/frc2010-slotcarapp.zip Created under USB Bootloader framework Includes MCU and slot car hardware initialization Simple application: car runs, all analog values and measured and logged on SD card X and Y accelerations are filtered by two different filter types (suitable or not?). Head lights indicate the detection of a right or a left curve, based on simple thresholding of X-acceleration. Break lights indicate detection of a curve beginning, based on a simple thresholding of Y-acceleration. 4 interrupts: 0.5 ms TPM interrupt to update PWM duty cycle and start conversion of all analog inputs ADC interrupt to handle sequence of conversions 10 ms periodic RTC interrupt for data logging KBI interrupt can be used to check power outage on crossover track piece Macros SET_LED_xy_ON/OFF control LEDs GET_SWITCH_STATE read switch position MOTOR_ENABLE/DISABLE, SET_MOTOR_VOLTAGE(x) control the motor START_CONV(channel), READ_ADC_SAMPLE use the ADC and more SD card driver supporting SD/SDHC, FAT/FAT32, using f_open, f_printf, f_close, etc. port of ChaN s FAT File System Module to ColdFire v1 20

Slot Car Application Analyzing logged data in Excel Quick Start Application logs all analog inputs into a CSV file, which can be opened in Excel f_printf(&file,"%d;%d;%d;%d;%d;%d\n", timecounter, accxfilt, accyfilt, accz, trackvoltage, motorcurrent); Files names are automatically incremented numbers File dates are fixed 21

Slot Car Application Analyzing logged data in Matlab Use Matlab CSV Import Wizard 1. 2. 3. >> plot(timecounter, [accxfilt accyfilt accz]); 22

Training Track Modify connection piece so that the hand controller is not used The track is continuously powered by the a power supply voltage 23