Skip to Content
Hardware Hacking Projects for Geeks
book

Hardware Hacking Projects for Geeks

by Scott Fullam
January 2004
Intermediate to advanced
348 pages
13h 33m
English
O'Reilly Media, Inc.
Content preview from Hardware Hacking Projects for Geeks
252
Part II: Advanced Hacks, Tools, and Techniques
Software Setup Instructions
After you have verified that power is going to the chips, it is time to pro-
gram the microcontroller inside the IR cannon and the hit-sensor board. I
chose the PIC16F876A controller, which is versatile and reasonably priced.
You will need to locate a programmer for this part; I used the ICD2 pro-
grammer/emulator from Microchip. A large number of companies offer
low-cost (less than $50) programmers on the Web. Do a quick search for
“PIC programmer” and ensure that the model you choose can program the
PIC16F876A (or whatever controller you use).
I wrote the control software for this hack in C to allow easy debugging. I
used the C2C compiler from http://www.picant.com/ as my C compiler. The
very efficient C2C compiler targets the PIC family of processors.
After you purchase a programmer,
download an evaluation copy of the
C compiler. Compile the code, and
then program the processor.
Software operation
The software looks for incoming IR
signals and generates outbound IR
cannon signals. A simple flowchart
illustrating the logic is shown in
Figure 13-13.
The IR cannon can be fired only
15 times, and the vehicle can take
only four hits before it becomes dis-
abled. Note that the four LEDs are
used for three different purposes;
the total number of hits will display
on the
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Home Hacking Projects for Geeks

Home Hacking Projects for Geeks

Eric Faulkner, Tony Northrup

Publisher Resources

ISBN: 0596003145Catalog PageErrata