PIC DESIGN (version 1) 2/11/2009

Similar documents
ECE 372 Microcontroller Design

Input/Output Ports and Interfacing

Mark Schutzer December 9, 2007 (updated fix for older rev B and C ProCabs)

Mechatronics and Measurement. Lecturer:Dung-An Wang Lecture 6

Unit 2. Computer Control. PIC stands for PROGRAMMABLE INTERFACE CONTROLLER. A PIC chip takes in input signals and then controls output transducers

Digital I/O Operations

PIC Dev 14 Through hole PCB Assembly and Test Lab 1

Olfaction Satisfaction Week #10 April 5, 2006 Senior Design Team 8

EMBEDDED SYSTEMS COURSE CURRICULUM

Dwarf Boards. DB021 : L298 dual motor driver

GammaRay USB Module. Beta Innovations DOC No. : Rev. : A2-102 Date : 2, 2004 Part No. : ,

PCB Design for Capacitance Rain Sensor

Electromechanical Arithmetic Logic Unit

Goal: We want to build an autonomous vehicle (robot)

Explorer V1.20. Features

Variable Power Supply Digital Control Circuit Diagram Using Lm317

PIC Dev 14 Surface Mount PCB Assembly and Test Lab 1

PVK40. User's manual. Feature Rich Development and Educational Kit for 40-pin Microchip PIC microcontrollers

12v Power Controller Project Board

PANDORA HACKER GUIDE

Intro to Multisim & Ultiboard

Chapter 9. Input/Output (I/O) Ports and Interfacing. Updated: 3/13/12

Lab 9 Introduction to Multisim & Ultiboard

Problem Score 1 / 27 2 / 19 3 / 16 4 / 14 code check off 5 / 22 /2 Total /100

DEVBOARD3 DATASHEET. 10Mbits Ethernet & SD card Development Board PIC18F67J60 MICROCHIP

TinyTrak4 v7 Hardware Manual

Introduction to Mechatronics and the Mechatronic Design Center Microchip Technology Incorporated. All Rights Reserved. 1

ACU6. Technical Reference Manual. Specifications Interfacing Dimensions. Document topics. ANSARI Controller Unit Type 6 technical reference manual

TLE9869 Eval.Kit V1.0 Users Manual

MP6500 Stepper Motor Driver, Digital Current Control

EasyPIC5 Development System

Lecture 14: Prototyping and Schematics

HM9708 HM9708. Battery-Powered Equipment Motherboard USB Power Switch USB Device Power Switch Hot-Plug Power Supplies Battery-Charger Circuits DC+ VIN

Homework 5: Circuit Design and Theory of Operation Due: Friday, February 24, at NOON

Adafruit Powerboost 1000 Basic

Introduction to NI Multisim & Ultiboard

GammaTron USB Module

eace PLC Velocio s Embedded Ace (eace) PLC

DEV-1 HamStack Development Board

Electronic Coin Toss

Adafruit TB A DC/Stepper Motor Driver Breakout Board

TEXAS INSTRUMENTS ANALOG UNIVERSITY PROGRAM DESIGN CONTEST MIXED SIGNAL TEST INTERFACE CHRISTOPHER EDMONDS, DANIEL KEESE, RICHARD PRZYBYLA SCHOOL OF

What are output transducers An output transducer will convert electrical signals passed to it by the process into another form of energy.

Developement of Multi Interface Board for Educational Trainer Kit

MX Educational Target User Manual

A PIC-based LCD Display for Stand-Alone Instrumentation

AAZ-0914A USB, Blue tooth and Graphic CPU 50MHZ Antenna Analyzer

Homework 6: Printed Circuit Board Layout Design Narrative

Study of LED Electronic Writing Screen based on Single Chip Dengjin Wu 1

A4988 Stepper Motor Driver Carrier, Black Edition

A4988 Stepper Motor Driver Carrier

A4988 Stepper Motor Driver Carrier with Voltage Regulators

MAXREFDES108#: NON-ISOLATED 12V/1A POE POWERED DEVICE POWER SUPPLY

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

How-To: Make an RGB combination door lock (Part 1)

Contents. The USB Logic Tool... 2 Programming... 2 Using the USB Logic Tool... 6 USB Logic Tool Features... 7 Device Hardware...

ELECTRONICS MANUFACTURE-The In-Circuit Test sequence

LTC4089/-5 DESCRIPTION

eip-24/100 Embedded TCP/IP 10/100-BaseT Network Module Features Description Applications

Adafruit INA219 Current Sensor Breakout

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING B.ENG (HONS) ELECTRICAL AND ELECTRONIC ENGINEERING EXAMINATION SEMESTER /2016

Bolero3M Nexus Emulation Adapter 256BGA 176TQ

8:1 Serial Port Expander

Good Idea to Working Electronic Model

XYLOPHONE KIT ESSENTIAL INFORMATION. Version 2.0 CREATE YOUR OWN ELECTRONIC MUSICAL INTRUMENT WITH THIS

PROGRAMMABLE POWER SUPPLY

I2C-OC805S, I2C-OC805SA I2C Bus 8-Output Open Collectors

BSCB-2 BASIC STAMP CARRIER BOARD

MINI DSP EVM KIT Application Manual

SSD1963 EVK Rev3B User s Guide

SHARP PC-1600 Custom Barcode Reader

None. MICROCONTROLLERS III

solutions for teaching and learning

Adafruit Powerboost 1000C

04/12/11 version 1.0

This presentation will..

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

Laboratory 10. Programming a PIC Microcontroller - Part II

Eddie Control Board with Power Connector (#28993) Eddie Control Board PCB (# )

Bachelor of Engineering in Computer and Electronic Engineering

ARDUINO MINI 05 Code: A000087

Thursday, September 15, electronic components

Finite State Machine Lab

Basic Interface Techniques for the CRD155B

Bill of Materials: 8x8 LED Matrix Driver Game PART NO

DEV16T. LCD Daughter board

Parallel I/O and Keyboard Scanning

ATLD10A5-D EV1.0 Evaluation Board for ATLD10A5-D 10A High Efficiency Laser Controller ATLD10A5-D Evaluation Board Rev. 1.0

RKP08 Component List and Instructions

Adafruit PowerBoost Charger

Device: FDRV-04S. This document version: v1. Matches module version: v2 [2 Oct 2015] Document revision date: 9 November 2015

Design And Simulation Of Power Factor Measurement Circuit By Using Pic

MIDI CPU Hardware Rev K. User Manual

Adafruit PowerBoost Charger

Rapid40i PIC Prototyping PCB User Manual

Bolero Nexus Emulation Adapter 208BGA 100TQ

eip-10 Embedded TCP/IP 10-BaseT Network Module Features Description Applications

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING MSC SYSTEMS ENGINEERING AND ENGINEERING MANAGEMENT SEMESTER 2 EXAMINATION 2016/2017

Silicon Steroids for the Stamp Help Your Projects Heft Big Loads Using Switching Transistors

AL3159 Evaluation Module

Transcription:

PIC DESIGN (version 1) 2/11/2009 The decision to design and construct a custom microcontroller was dictated by both practical and educational reasons. Although microcontroller development boards are readily available, they are expensive and would have required significant modification to interface with the required peripherals. The additional educational value of starting from scratch made it an easy choice. The design of the microcontroller began by completing the specifications for the devices it would control. This list of peripherals, shown in table 1, was used to select the proper PIC to meet the I/O demands. Table 1: Peripheral Devices Peripheral Requirements Number required LCD 1 serial transmit pin 1 Keypad 8 pins with 4 pull ups 1 Switch 1 pin with pull up 5 Solenoid On/Off 12V and 2oo ma 8 Motor On/Off 12V and 3oo ma 1 The PIC16f877 was selected because it supplied an ample number of I/O pins without the need for complications such as multiplexing. This chip has the added advantage of being identical to those used in E15 laboratories and is therefore well supported by the departments development infrastructure and knowledge base. With the chip selection complete, the supporting architecture was developed in Multisim. For the PIC to operate, it must be provided with proper power and ground connections to the chip as well as the necessary programming connections through the RJ12 connection. This chip model also requires an external oscillator. Figure 1 shows the PIC with only these supporting features in place.

Figure 1: Minimum PIC microcontroller circuit. The LCD display operates on by serial communication and therefore requires only 1 pin and is relatively easy to program. The draw back is that that Serial Transmit pin must be reserved for it. The remainder of the pins was assigned in blocks to operate either the input switches of the solenoid and motor outputs. The switch connections required the addition of weak pull up resistors to ensure a stable signal, shown in figure2. The purpose of these resistors is to maintain a high voltage to the input pins until the switch is closed and they are grounded. This prevents the pins from floating at intermediate values while the switch is open. Although the PIC contains several internal pull ups, there were not a sufficient number.

Figure 2: pull up resistor and switch. The keypad also requires that half of its inputs be connected to pull ups. It operates on a matrix encoded system where pressing a key shorts two of the inputs, the schematic and decoding table is include in figures 3 and 4. Input is sensed by successively setting each column high and scanning the row outputs, this procedure will be discussed in greater detail in the software discussion. Figure 3: matrix code

Figure 4: Keypad schematic The solenoid and motor outputs all require significantly more current than the 25 ma each PIC pin can supply. These channels were equipped with simple MOSFET amplifier circuits to boost the available current, shown in figure 5. The diode, acting as a snubber diode, prevents the high inductance loads from damaging the system when they are shut off.

Figure 5: amplifier schematic. Once the entire microcontroller circuit was designed in schematic form it had to be transferred to the Ultiboard CAD tool to develop a design for the printed circuit board (PCB). Components from the standard Multisim library contain their physical footprint, which is used by Ultiboard to place the necessary Thru holes. Custom components and footprints can also be defined. The user then places each component footprint in the desired location within Ultiboard. The wire traces are generally routed automatically, although the user can intervene. The trace thickness is calculated with any number of simple online applets (http://www.circuitcalculator.com/wordpress/2006/01/31/pcb trace widthcalculator/). This design required the use of separate digital and analog ground networks because the high current sent to ground by the solenoids and motors. The completed Ultiboard CAD drawing is shown in figure 6. The PCB design flies were then sent to a Advanced Circuits for fabrication. Upon receipt of the board the requisite components were soldered into place.