WHIP UP SOME FIENDISHLY FUN PICAXE MICROCONTROLLER DEVICES "Ron has worked hard to explain how the PICAXE system operates through simple examples, and I'm sure his easy-to-read style will help many people progress with their PICAXE projects." This wickedly inventive guide shows you how to program, build, and debug a variety of PICAXE microcontroller projects. PICAXE Microcontroller Projects for the Evil Genius gets you started with programming and I/O interfacing right away, and then shows you how to develop a master processor circuit. From "Hello, World!" to "Hail, Octavius!" All the projects in Part I can be accomplished using either an M or M2 class PICAXE processor, and Part II adds 20X2-based master processor projects to the mix. Part III culminates in the creation of Octavius--a sophisticated robotics experimentation platform featuring a 40X2 master processor and eight breadboard stations which allow you to develop intelligent peripherals to augment Octavius' functioning. The only limit is your imagination! PICAXE Microcontroller Projects for the Evil Genius: Features step-by-step instructions and helpful photos and illustrations Allows you to customize each project for your purposes Offers all the programs in the book free for download Removes the frustration factor--all required parts are listed, along with sources Build these and other devious devices: Simple mini-stereo jack adapter USBS-PA3 PICAXE programming adapter Power supply Three-state digital logic probe 20X2 master processor circuit TV-R input module 8-bit parallel 16X2 LCD board Serialized 16X2 LCD Serialized 4X4 matrix keypad SPI 4-digit LED display Countdown timer Programmable, multi-function peripheral device and operating system Octavius--advanced robotics experimentation platform L298 dual DC motor controller board Visit www.JRHackett.net to learn more.
Author(s): Ron Hackett
Edition: 1
Publisher: McGraw-Hill TAB Electronics
Year: 2010
Language: English
Pages: 288
Contents......Page 12
Foreword......Page 16
Acknowledgments......Page 18
Prologue......Page 20
Part One: PICAXE Basics......Page 24
Choosing a PICAXE Processor......Page 26
Interfacing a Project with Your Mac or PC......Page 27
Using RevEd’s Free Programming Editor or AXEpad Software......Page 28
Programming in PICAXE BASIC......Page 29
Breadboards, Stripboards, and PC Boards......Page 30
Project 1 “Hello World”......Page 31
Debugging a PICAXE Project......Page 37
Designing Stripboard Circuits......Page 38
Tools for Stripboard Circuit Construction......Page 41
Project 2 The USBS-PA3 PICAXE Programming Adapter......Page 44
Hello Again......Page 46
3 Designing and Building a +5V Regulated Power Supply......Page 50
Designing a +5V Regulated Power Supply for Breadboard Circuits......Page 51
Project 3 More Power, Scotty!......Page 56
4 Hardware Overview of the PICAXE M2-Class Processors......Page 62
General-Purpose Variables......Page 63
Storage Variables......Page 64
Special-Function Variables......Page 65
Project 4 Cylon Eye......Page 68
PICAXE I/O Interfacing......Page 74
Setting Up an Interrupt Routine......Page 79
Project 5 Mary......Page 83
6 Introduction to ADC Inputs on M2-Class Processors......Page 88
Voltage Dividers......Page 89
Project 6 A Three-State Digital Logic Probe......Page 93
Part Two: PICAXE Peripheral Projects......Page 104
Advanced Features of the 20X2 Processor......Page 106
Project 7 Implementing the 20X2 Master Processor Circuit......Page 109
Reception and Transmission of Standard TV IR Signals......Page 116
Simple IR Object-Detection......Page 117
Experiment 1: A Simple TV-IR Input Circuit......Page 118
Experiment 2: Interfacing the IR Circuit with the Master Processor......Page 121
Project 8 Constructing the TV-IR Input Module......Page 124
9 Interfacing Parallel LCDs......Page 130
Understanding the Basics of HD44780-based LCDs......Page 131
Experiment 1: Interfacing an HD44780-based Parallel LCD......Page 133
Project 9 Constructing an Eight-bit Parallel 16 x 2 LCD Board......Page 137
Programming Challenge......Page 141
Receiving Serial Data in the Background......Page 142
Project 10 Constructing a Serialized 16 x 2 LCD......Page 144
11 Interfacing Keypads......Page 160
Decoding Matrix Keypads......Page 161
Project 11 Constructing a Serialized 4 by 4 Matrix Keypad......Page 168
The MAX7219 8-Digit LED Display Driver......Page 178
Project 12 Constructing an SPI 4-Digit LED Display......Page 181
Learning to Count......Page 191
Using Timer1 on the 20X2 Processor......Page 196
“Deconstructing” a Matrix Keypad......Page 198
Testing the “New and Improved” Keypad......Page 200
Project 13 Constructing a Countdown Timer......Page 202
Project 14 The Evil Genius Multifunction Peripheral Device......Page 210
Understanding the 20X2’s Built-in Comparator Hardware......Page 226
“We Interrupt This Program to Bring You a Keypress!”......Page 229
Project 15 A Simple MPD Operating System......Page 232
Part Three: Octavius: An Advanced Robotics Experimentation Platform......Page 236
16 Birthing Octavius......Page 238
Understanding Octavius......Page 241
Project 16 Building Octavius......Page 244
H-Bridge Motor Control Circuits......Page 248
The L298 Dual H-Bridge Driver......Page 249
Project 17 Constructing an L298 Dual DC Motor Controller Board......Page 251
The MaxBotix LV-MaxSonar Ultrasonic Range Finders......Page 262
Who’s in Charge Here?......Page 267
Project 18 Hail, Octavius!......Page 273
Epilogue: What’s Next for Octavius?......Page 276
B......Page 278
E......Page 279
K......Page 280
M......Page 281
O......Page 282
P......Page 283
S......Page 286
U......Page 287
W......Page 288