View previous topic :: View next topic |
Author |
Message |
Turd HG Ruler

Joined: 18 Aug 2007 Posts: 274 Location: Saskatchewan, Canada
|
|
Back to top |
|
 |
|
 |
Alan Site Admin

Joined: 29 Jan 2006 Posts: 1399 Location: Winnipeg, MB
|
Posted: Wed Aug 22, 2007 4:38 pm Post subject: |
|
|
Seems like the PicAxe is catching on... It is featured in Nuts and Volts Magazine quite often. |
|
Back to top |
|
 |
Turd HG Ruler

Joined: 18 Aug 2007 Posts: 274 Location: Saskatchewan, Canada
|
Posted: Wed Aug 22, 2007 10:11 pm Post subject: |
|
|
They're really easy to use. Some times I find my self reprogramming a chip 5 times with in 5 minutes, just changing my code and trying again to get my program to work (downloads are really fast )
I don't think I'll ever be able to rap my head around C or assembly, so for me basic is the way to go
Plus, theres a built-in simulator, so you don't even need a chip to play around and have a little fun
eric |
|
Back to top |
|
 |
Turd HG Ruler

Joined: 18 Aug 2007 Posts: 274 Location: Saskatchewan, Canada
|
Posted: Wed Oct 31, 2007 2:23 am Post subject: How to get started with PICAXE microcontrollers |
|
|
Micro controllers are micro-chips that can be programed to do cool things, like blink an LED. And I'll show you how in this small tutorial
First you need to order a PICAXE 08M> Link.
You can also order a bread board and a download cable but I'll show you how to make your own from an old serial cable.
You'll need the fallowing parts:
1 3 AAA or 3 AA battery holder with three batteries
1 LED
1 0.1 uf ceramic capacitor (marked 104)
1 100 ohm resistor (brown, black, brown, gold)
1 1k ohm resistor (brown, black, red, gold)
1 10k ohm resistor (brown, black, orange, gold)
1 22k ohm resistor (red, red, orange, gold)
and a strip of three pins. I found mine on an old circuit board.
To make the download cable cut the end with the nine pins and save the end with the nine holes. pic 1, pic 2, pic 3.
Cut almost an inch of the black outer shell off the end. Using a multi-meter or continuity tester find the wires that connect to pin hole 2, 3 and 5. Save those and cut the rest off. The wires in my cable were colored brown(2), red(3) and yellow(5). pic 1, pic 2.
Skin the three wires, add a little solder paste to the ends and apply some hot solder to tin the ends. pic 1, pic 2, pic 3.
Now solder the wires to the three pins. pic.
Download the FREE editor/compiler here.
And install it.
Add the parts to the bread board. pic 1, pic 2, pic 3.
In the editor, go to View > Mode tab > select 08M. Click the Editor tab select Color Syntax and Enhanced. Click OK.
Type this into the editor to make the LED blink:
Code: | do 'Start a loop
high 2 'Make pin2 high to light the LED (lag 5 on the PICAXE)
pause 500 'Wait here for 1/2 a second
low 2 'Make pin2 low to turn off the LED (lag 5 on the PICAXE)
pause 500 'Wait here for 1/2 a second
loop 'Go back to the start and do it again
|
Plug your download cable into the bread board and computer. pic.
Plug the power in. Do not exceed +5 volts (3 AAA is 4.5 volts) Be careful that you have the power connected correctly! pic.
Now click the little blue arrow in the editor and your done!
Your LED should be blinking now
For cool project ideas and help, go to the PICAXE forum.
Here are the .pdf manuals:
http://www.picaxeforum.co.uk/docs/datasheets/picaxe_manual1.pdf
http://www.picaxeforum.co.uk/docs/datasheets/picaxe_manual2.pdf
http://www.picaxeforum.co.uk/docs/datasheets/picaxe_manual3.pdf |
|
Back to top |
|
 |
precisewitem HG Master

Joined: 07 Dec 2006 Posts: 130 Location: NY
|
Posted: Fri Nov 02, 2007 11:39 am Post subject: |
|
|
Thanks Turd, I've been looking into this for a few days now. I need to research more before I can code anything for that game we have been working on. _________________ "Genius is one per cent inspiration and ninety-nine per cent perspiration. Accordingly, a 'genius' is often merely a talented person who has done all of his or her homework..."
Thomas Edison |
|
Back to top |
|
 |
Turd HG Ruler

Joined: 18 Aug 2007 Posts: 274 Location: Saskatchewan, Canada
|
Posted: Fri Nov 02, 2007 12:44 pm Post subject: |
|
|
No problem
The best things to start with would be to look over manual one and two.
eric |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|