DroidCoTM
Cigar Box Computers
The idea for my first Cigar Box Computer came from when I was kid, my
Dad had made a cigar box crystal radio for me. I loved this thing, it
had a crystal earphone, a loopstick tuning coil and best of all; it
needed NO POWER. It peaked my interest in how it worked. This was how I
got started in electronics, I just could not get enough of gadgets. I
kept going with learning about electronics and eventually computers and
programming. So, in April 2003, the idea for a low-cost small simple
computer was born.
The Cigar Box Computer or CBC for short has several attributes that
make it unique among computers.
- Very Low Cost
- Simple to Build
- Portable
- Simple to Program
- Useful for non programmers
Cigar Boxes
Cigar Boxes come all kinds of sizes and shapes including some very nice
fine wooden ones.
These can usually be found for free at most places that sell cigars,
like
gas stations, supermarkets, Walgreens, etc. Just ask if they have any
empty ones! I get one to five almost every time I ask. If you frequent
any of these places, you could ask one of the employees to save the
boxes for you.
Computers
Almost any low power programmable embedded computer will do. You can
even build it yourself if you are good at soldering. But the
best ones are the low cost development boards available from many of
the chip vendors. These come pre-assembled with an IDE and development
software
for the chip they are pushing at a very low cost. Here are some of the
vendors that I have used:
- Zilog (Z8, Z8Encore!, Z8Encore XP)
- Motorola (now Freescale)
- Microchip
- Atmel
- Texas Instruments
- Dontronix SimmStick (Both AVR and PIC Processors)
All of these companies sell development kits for low cost. Some of
these developement boards are very small.
This is a Zilog Z8 Encore XP
Developement
This is a Zilog Z8 Encore Developement Board
Board
Inputs
Input to you CBC can as simple as a push button that starts a timer to
multiple triggers that include TV remotes, motion detectors, switches
or pretty nuch anything that can be coverted into an electrical
stimulus.
Outputs
The output is where the work is done. This can as simple as lighting an
LED or as complcated as running a servo in a preset pattern to running
your whole house.
Software
Software is the key to the usefulness of a CBC. There are many ways to
program a CBC depending on what your goal is. You can use the canned
software I have provided or you can write your own from scratch or
anything in between. The choice of language to program in is up to you,
I like C, so most of the examples are written in that.
This is about as simple as you can get for a 'C' program:
Assume: trigger = an input pin, work
= output pin controlling something electrical
main()
{
while
(1) // means "do this loop forever"
{
// check for trigger
if (trigger) {
// if trigger is on, do work
work =
1;
} else {
work =
0;
}
}
}
There are many variations on this same theme {look for trigger, then do
work}.
For more Information Contact:
cbc@droidco.com
DroidCoTM
DroidCo,
emC, Embedded C, EFS, and Embedded FileSystem are Trademarks of
DroidCo.
All
other marks are the property of the trademark owners.
Copyright© 2006, 2009 DroidCo
All Rights Reserved. Do not
duplicate or
redistribute in any form without written permission.
Last
Update: 06/12/09