Let's Make Robots!

Breadboard Basics II (Add PICAXE)


Time to add PICAXE to the board.

This requires:

  1. A breadboard
  2. 5volt power source
  3. PICAXE 28x1 chip
  4. Stereo Socket
  5. USB or Seriel Transfer cable
  6. 4k7 ohm resistor
  7. 330 ohm resistor
  8. 22k ohm resistor
  9. 10k ohm resistor
  10. LED
  11. Wire

Note how there are 5 pins on the socket, but you only really use 3 (serial out, serial in, and ground). The 2 sets of 2 pins get tied together and then they get tied to each other via a 10k ohm resistor. When looking above the socket as shown in the picture the left 2 pins go to ground, the right 2 pins go to serial in via a 22k resistor, then the last pin which is near the opening of the socket goes to serial out.

 

Basically all this did was help me to learn how to hook up the chip and a stereo socket to a breadboard and get basic output (blinking LED). Hopefully it will help someone else too! Lots of pics to follow so you can see how it is connected. The code follows the pictures.

For help on how to hook up the stereo socket or for what pins do what on the chip click here.

http://www.rev-ed.co.uk/docs/AXE001_pinout.pdf

 socket.JPG

100_0984.JPG100_0985.JPG

100_0986.JPG

100_0987.JPG

 100_0990.JPG

Symbol LED = 0

AGAIN:
HIGH LED
pause 1000

LOW LED
pause 1000

GOTO AGAIN

END

 

The code assumes you are using output 0 for the LED. If you can't get the editor to connect to your chip make sure you have the com port setting correct.

  1. Click START (lower left corner of your screen)
  2. Right click My Computer
  3. Click Properties
  4. Click Hardware Tab
  5. Click Device Manager Button
  6. Expand the Ports (COM & LPT)
  7. It should have an item called AXE027 PICAXE USB (COMX) X is your COM Port Number
  8. In the editor go to View->Options
  9. Click Seriel Port tab
  10. Select the Com Port you found in step 7 and click OK
  11. Try to transfer the code again.
  12. If it still doesn't work make sure your batteries are charged and connected to the breadboard.
  13. If it STILL doesn't work take a picture that shows the connections and post

For larger more detailed images click here. No fair making fun of my dirty coffee table.

 

Updated to include new pics using resistors, which should have been there in the first place.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

 I really dont get the whole "home made board thing" so im gonna fire up some Questions.

I ordered a Picaxe 08 and a picaxe 18.

Do these need resistors? I mean.... can i just hook it up to the sterio socket and everything works Presto?

  Thanks in advance,

/Nick

the datasheet says to use resistors. I wired it up without them but it can damage the picaxe. I really should edit this walkthrough to use resistors.

 Uh.... great.

now i need resistors.... iv got a whole ton from Trap... but they're not colur coded ones, so i dont "get" them

 

/Nick

DSC01818.jpg/Nick

Lets say the resitor reads RN55C The 55 means 1/8watt. And if it says 1542F that means 15400 omhs aka 15.4K. Sorry to not let you in on all this i sort of got busy. The reason these do not have color codes is because they are all .1%  aka  on the money. Every one of them. LOOK

Get a magnifier to see the writing on the resistors, or simply use your multimeter to measure them. Probably marked like caps, but read differently, ie : 104 would be 10 and 4 more 0s to be a 100000 or 100k resistor. 221 would be a 220 ohm resistor.

Maybe Trap can verify this, but (some of) these look like capacitors. They appear to have numbers on them. They would tell you what the capacitance is. Usually a three digit code "XYZ".

Read XY as usual. Z is telling you what the multiplyer should be. The unit is in picoFarad. For example:
103 would be 10 (ten) times 10^3 (thousand) = ten thousand pF or 10 nF.

474 would be 47 x 10^4 = 470 nF.

But only if these are indeed capacitors.... Hope this helps a bit.

8ik

http://www.rev-ed.co.uk/docs/AXE001_pinout.pdf

You need a 22k and a 10k. If you live near a Radioshack they charge $1 for 5 resistors. So for $2 you have enough for 5 circuits with stereo adapters. I think 5 resistors for $1 is a ripoff, but if you only need a few it isn't too bad.

I would like to see that in a picture. That's something new to me. Are you sure they are not something else?

i too unlpug the battery via a switch, but sometimes (i don't really know why) i have to hold down the reset switch (that is on my picaxe board, not on the breadboarded prototype which i haven't tried yet).

 


 

Bad news chaps (actually bad new for me :) ).

the circuit i'm using appears to be working fine, it's the chip that doesn't work (the other one works correctly). It is a pic16f872 (the non-working one). I don't really know what to do know.

I'm gonna open a new thread as this one is not the right one for the discussion of this problem.

All the feedback i can give is that i tried the enhanced download circuit and it works great!