Let's Make Robots!

Programming Help (PICAXE 28)

Below is the code I am trying. I stole it from a book. I figured it was an easy one to start with, but I have a few questions. Can someone explain what TRISB and PORTB are? Also what exactly does POKE do? It looks like it is creating variables LED (at port 0), TRISB and PORTB. When I run the simulator on the code it gives a syntax error on Symbol PORTB = $06 and says Poking at this address is not recommended (POKE TRISB, 0). Can anyone help me understand what this is doing prior to the AGAIN: tag (I put the lines in bold)?

My First Circuit

As you can see God spoke and there was LIGHT!

I'm trying to get the circuit thing down. I can code all day long but this electronic stuff is tricky...

Once I get it down pat I'll post some walkthoughs so other people like me who lack the electronics background can get stuff going easier. I won't post all my minor successes, but I did do a jig when the little light went on. My Picaxe stuff shipped today so I won't post more until I have motors and wheels moving ;)

The journey of a thousand robots begins with a single LED.

Is it here yet?

It's been 5 minutes where is my stuff?

  1. Picaxe 28 starter pack USB
  2. motor driver
  3. picaxe servo upgrade pack
  4. SRF05 range finder
  5. gear motors with wheels
  6. 5v regulator
  7. a few red leds
  8. 330 and 1000ohm resistors

Its goign to be a LONG couple of weeks since some of it is coming from the UK. I hope to have something built in a month or so. I want to start off small so its blinking lights for my first few projects. I won't even touch the motors until I know what I am doing.

Getting Started

I want to get started, but I need help putting a decent started pack together. I know I need a board, download cable, etc, but what other toys should I start with?

 I want to be able to start off small: get a light to blink. Then move to getting several lights to blink in order or random order. Then I want to move onto attaching a motor and getting it to spin. Eventually I want to build a robot that will do all of my work, but baby steps right?