GETTING STARTED WITH PICs
After the last note is played, the program simply delays
for half of a second and then plays the tune again by jumping back to the “main” label with a GOTO command.
‘Pause half second and play the
‘ tune again
‘Jump to program beginning
As you can see, this is not a very difficult program to
write. You can do a very similar program with PICBasic Pro
if you have that compiler. The full software listing is available
on the Nuts & Volts website at www.nutsvolts.com.
boards. My point is hobbyists and basement professionals
want a path to produce higher volume products without
having to shell out $50 per design, and $20 Atom PIC chips
just don’t cut it either. There is always the pure .hex
producing compiler route, but some people just don’t want
to spend all that money up front for a design that may only
sell 10-50 units a year. Well it’s not set in stone yet, but I
may be announcing a discounted price for Atom PIC chips
on my website, so stay tuned.
Happy Holidays to all the readers of Nuts & Volts
and I’ll see you next month as we start a whole new year of
programming PICs. NV
This was a fun little project to
build and I even played “Name That
Tune” with my son and daughter to
see if they could tell what song it was
playing. My son was quick to point
out that the delay in the middle wasn’t
long enough, so I added more zeros.
This helped, because my daughter
who couldn’t quite figure out
the tune, started singing along after
You could easily add several tunes
to this on different LOOKUP
command lines and then select which
one by reading a switch or two. If you
have the PICBasic Pro compiler, you
can program a smaller PIC so it can be
built into a plastic Christmas ornament
or something small that can hang on
the tree. How about adding a CDS
cell tied to an A/D port so it plays the
music every time someone walks by
and blocks the light? Sound familiar?
Christmas is loaded with these types
of gadgets on the shelves and if
you’ve been reading all the articles in
this series, you know how to build
Keep those emails coming. I have
gotten some great tips on compilers
from readers that I want to talk about
in the future. And speaking of reader
feedback, one common theme occurs
every time I hear about the Atom.
Most people that have used the Atom
love it, but they don’t love the price of
the modules or even the less expensive Atom PIC chips. I took this feedback to the owners of Basic Micro and
they are willing to hear me out.
Basic Micro gives away their
compiler for free and makes their
money on the hardware modules and
The technology builder's source for kits, components, supplies, tools, books and education.
Robot Kits For All Skill Levels
ICs, Transistors, Project Kits
Motors, Frame Components
and Scratch Builder Supplies.
BEAM Kits and Components
Order by Internet, phone, fax or mail.
180 El Camino Real
Millbrae, CA 94030
Visit our store near SFO!
Most orders ship the day received! World-wide shipping. Convenient payment options.
December 2006 83