Transcript PIC - t4

Technology
Applied Control Systems
Applied Control Systems
Furby the intelligent toy? – exhibits complex interactive behaviour
Inputs
Outputs
Push switches
D.C. Motor
L.D.R.
Speaker
Microphone
Infrared LED
Tilt switch
Infrared detector
Process - Microcontroller
© t4 Galway Education Centre
2
Applied Control Systems
Microcontroller – PIC (Peripheral Interface Controller)
A PIC is an IC which can be programmed to respond
to one or more inputs and control one or more
outputs, i.e. ‘a computer on a chip’
A PIC contains on board: -
ROM (Read Only Memory)
RAM (Random Access Memory)
I / O (Input / Output)
CPU (Central Processing Unit)
© t4 Galway Education Centre
3
Applied Control Systems
PICAXE-08
PICAXE-18X
PIC 16F628
How are PICs used?
• Purchased blank
• Inserted into a circuit board
• A control program is developed and tested on the computer and
downloaded to the PIC.
PIC LOGICATOR
INPUT
PROCESS
OUTPUT
© t4 Galway Education Centre
4
Applied Control Systems
PIC Applications: • Household appliances - Washing machines / microwaves
• Alarm systems
• Medical equipment
• Vehicle subsystems - engine management / remote locking
• Traffic lights
• Car barriers
• Entertainment industry
• Vending machines
• Display units
© t4 Galway Education Centre
5
Applied Control Systems
• Advantages of PICs :•
PICs can be repeatedly programmed and reprogrammed
•
Increased reliability due to less circuitry requirements
•
Rapid product changes can be made by changing the program and not
the electronic hardware
•
Greater product flexibility and adaptability
•
Provides a platform to support the development of simple to complex
solutions i.e. What If ?
© t4 Galway Education Centre
6
Applied Control Systems
Hardware: Computer – USB port (Windows NT,ME,2000,XP)
Circuit board – PICAXE 18X Training board
Power supply unit - 9V, 550mA
Download cable
- USB AXE027
Software: PIC - Logicator Version 2
© t4 Galway Education Centre
7
Applied Control Systems
PICAXE 18X Training Board (5 inputs, 8 outputs)
Outputs
Inputs
3 Analogue: -
8 LED outputs
LDR
1 Piezo
Var. Resistor
1 Seven segment
Temp. Sensor
2 External motors
4 External outputs
2 Digital: -
1 Stepper motor
2 PTM Switches
1 Server motor
© t4 Galway Education Centre
8