Home About Me Getting Started Projects Links

Google

   The Web    JRHackett.net




Getting Started with PICAXE Microcontrollers


If you are interested in getting started with PICAXE microcontrollers, the following project is an easy way to do so. First, download the free Programming Editor software from Revolution Education and install it on your PC. A large amount of documentation is included with this software, and is available under the "Help" menu. Look for the "Getting Started" manual - it includes all the information you need, and then some! Also, download the PICAXE BASIC Summary for beginners to get an idea of the range of powerful commands in PICAXE BASIC. Next, assemble the following pieces of hardware, many of which are available on this site (see the "Products" Sidebar).

For parts that I don't carry, I have included links to Radio Shack part numbers where possible. Of course, most of these items would be much cheaper ordered from Digikey, Jameco, Mouser, or any of the various "surplus electronic parts" suppliers easily found on the internet with a quick Google search.

Parts List:


Construct the programming adaptor by soldering three wires to the female DB-9 connector as indicated in the following Circuit Diagram. Assemble the circuit as shown below and check the photo to be sure your circuit is wired correctly.


Circuit Diagram:

Circuit Diagram


Circuit Photograph

Breadboard Layout


Once you have the circuit assembled and double-checked, connect it to your PC using the straight-through serial cable, type the following program into the Programming Editor. Make sure you have chosen "08M" and the correct serial port under the View-Options menu, power-up your PICAXE circuit and download the program - it should automatically start to run. By the way, anything following a semi-colon in the program listing is a comment. Comments are ignored by the PICAXE interpreter, so they can be omitted entirely. However, they do make the program more understandable, so they are very helpful!


Program Listing:

; ==== Hello.bas =======================================
;      This program runs on a PICAXE-08M at 4MHz
;      and blinks an LED on output1 (pin 6).
; ======================================================


; ==== Constant Definitions ============================

       symbol LED = 1    ; LED on output1 (pin 6)
                         ; (with a 330 ohm resistor)


; ==== Beginning of Main Program =======================

main:  high LED          ; turn on LED
       wait 1            ; delay 1 second
       low LED           ; turn off LED
       wait 1            ; delay 1 second

       goto main         ; do it again, forever


If you have trouble, go back and re-check all your wiring. If the Programming Editor doesn't "see" the PICAXE-08M, carefully re-check the connections to the programming adaptor. Also, be sure the flat edge of the LED is connected to ground, or it won't light at all (even if everything else is correct). If all else fails, send me an email (Ron@JRHackett.net) describing the problem, and I'll see if I can help.