Picaxe manual3

Page 1

MICROCONTROLLER INTERFACING CIRCUITS

www.picaxe.co.uk 1

Section 3

Contents About this manual .......................................................................................... 2 Microcontroller Interfacing Circuits ................................................................... 3 What is a PIC Microcontroller? .......................................................................... 3 What is a PICAXE microcontroller? ..................................................................... 3 Interfacing to the PICAXE Microcontroller .......................................................... 4 Note on the BASIC Code Samples ...................................................................... 5 Note on Component Selection .......................................................................... 5 Standard Interfacing Circuits ............................................................................ 6 Standard Circuits 1 - The Transistor Interfacing Circuit ........................................ 6 Standard Circuits 2 - Using a Darlington Driver IC ............................................... 7 Standard Circuits 3 - The Relay Interfacing Circuit .............................................. 8 Standard Circuits 4 - The Power MOSFET Interfacing Circuit ................................. 8 Output Device Interfacing ................................................................................ 9 Output Device 1 - Light Emitting Diode (LED) .................................................... 9 Output Device 2 - Signal Lamp ....................................................................... 1 0 Output Device 3 - Buzzer ................................................................................ 1 0 Output Devices 4 - Piezo Sounder & Speaker .................................................... 1 1 Output Devices 5 - Solar & DC “Toy” Motors ...................................................... 1 2 Output Device 6 - Unipolar stepper motor ....................................................... 1 5 Output Device 7 - Bipolar Stepper motor ......................................................... 1 7 Output Device 8 - Radio Control Servo ............................................................ 1 9 Output Device 9 - Counter module .................................................................. 2 0 Output Device 10 - Seven Segment Display ...................................................... 2 1 Output Device 11 - Solenoid & Solenoid Valves ............................................... 2 4 Output Device 12 - Smart Wire & Smart Springs ................................................ 2 5 Input Device Interfacing ................................................................................ 2 6 Input Device 1 - Switches .............................................................................. 2 6 Switch Bounce .............................................................................................. 2 7 Input Device 2 - Potentiometer ...................................................................... 2 8 Input Device 3 - Light Dependant Resistor (LDR) ............................................. 2 9 Input Device 4 - Thermistor ........................................................................... 3 0 Advanced Component Interfacing ................................................................... 3 1 Advanced Interfacing 1 - LCD Display .............................................................. 3 1 LCD Characters ............................................................................................... 3 1 A Simple LCD Program .................................................................................... 3 7 More Advanced LCD Program ........................................................................... 3 8 Standard LCD Sub-Procedures (Direct Connection) ............................................ 3 9 Advanced Interfacing 2 - Serial Interfacing to a Computer. ............................... 4 3 Computer Communication Software ................................................................. 4 3

revolution

Revolution Education Ltd. Version 4.4 12/2010

Web: www.picaxe.co.uk

1


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.