FAQFAQ   GalleryGallery   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   Forum RSS Feed   Hacked Gadgets Main Site 

PICAXE

 
Post new topic   Reply to topic    Hacked Gadgets Forum Index -> Microcontroller Resources
View previous topic :: View next topic  
Author Message
Turd
HG Ruler


Joined: 18 Aug 2007
Posts: 274
Location: Saskatchewan, Canada

PostPosted: Sat Aug 18, 2007 8:59 pm    Post subject: PICAXE Reply with quote

This is IMO the cheapest and easiest ways to get into microcontrollers (the only ones I know how to use Wink ).

All you need is a serial cable, a couple resistors, a PICAXE chip and the free editor/compiler.

You program it in basic. This is how you would blink an LED:

do
high 1 'bring pin1 high
pause 1000 'pause for 1 second
low 1 'bring pin1 low
pause 1000 'pause for 1 second
loop 'loop back to "do"

Or

do
toggle 1
pause 1000
loop


It's that easy Very Happy

Heres some .PDFs
http://www.rev-ed.co.uk/docs/picaxe_manual1.pdf
http://www.rev-ed.co.uk/docs/picaxe_manual2.pdf
http://www.rev-ed.co.uk/docs/picaxe_manual3.pdf


eric


Last edited by Turd on Thu Oct 04, 2007 2:17 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website

Alan
Site Admin


Joined: 29 Jan 2006
Posts: 1399
Location: Winnipeg, MB

PostPosted: Wed Aug 22, 2007 4:38 pm    Post subject: Reply with quote

Seems like the PicAxe is catching on... It is featured in Nuts and Volts Magazine quite often.
Back to top
View user's profile Send private message Send e-mail
Turd
HG Ruler


Joined: 18 Aug 2007
Posts: 274
Location: Saskatchewan, Canada

PostPosted: Wed Aug 22, 2007 10:11 pm    Post subject: Reply with quote

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 Laughing (downloads are really fast Wink )
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 Very Happy

Plus, theres a built-in simulator, so you don't even need a chip to play around and have a little fun Very Happy


eric
Back to top
View user's profile Send private message Visit poster's website
Turd
HG Ruler


Joined: 18 Aug 2007
Posts: 274
Location: Saskatchewan, Canada

PostPosted: Wed Oct 31, 2007 2:23 am    Post subject: How to get started with PICAXE microcontrollers Reply with quote

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 Very Happy

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 Very Happy

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
View user's profile Send private message Visit poster's website
precisewitem
HG Master


Joined: 07 Dec 2006
Posts: 130
Location: NY

PostPosted: Fri Nov 02, 2007 11:39 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Turd
HG Ruler


Joined: 18 Aug 2007
Posts: 274
Location: Saskatchewan, Canada

PostPosted: Fri Nov 02, 2007 12:44 pm    Post subject: Reply with quote

No problem Very Happy

The best things to start with would be to look over manual one and two.


eric
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Hacked Gadgets Forum Index -> Microcontroller Resources All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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