Let's Make Robots!

Question about Picaxe Random function

 

I understand that the picaxe does not have a clock, and that the "random" function will produce numbers in a sequence between 0 and 65535 (not really random), but I have a question.

From memory, when I used commodore basic all those years ago, you could write something like rnd(9), which would produce a random number between 0 and 9 (I think that's right), so is there any way I can get picbasic to do the same. I want to switch, on and off, 4 led's in a random sequence.

Thanks in advance :)

Something silly to smile about.....

 

Just a bit of fun...

 

 

You know how it is sometimes, you start something and everything along the way goes wrong. This project started as something to get me into object recognition, but … Read more

I'm a little confused with pin numbers on the Picaxe 28 project board

I have a motor driver fitted to the board, and 2 motors connected to the 2 sets of motor pins. These motors are driven in the code using low 4 : high 5 : high 6 : low 7.

I have a servo fitted to pin 0, and some led's fitted to pins 1, 2, and 3.

This all works fine, and it does what I want.

There are "vacant" digital output pins, which are numbered on the board 4, 5, 6 and 7, which are the same numbers that the motors use.

Wait for button pressed before program runs?

 

 

I have just received my new Uno, and was wondering if there is a way to get the code that has been uploaded to it, to wait until the button is pressed before proceeding?

Simple object/light avoidance, and line follower.
Using a
  UPDATE 19/11/2010 As promised, I've added a short video of some of the functions I can use RDP-01 for. I know they're not brilliant, but at least I am beginning … Read more

Which micro-controller etc should I buy?

As some of you may be aware, I'm still very new to this pastime, both with regards to electronics and programming, but have built a couple of bots which have been reasonably successful, using an Axon II Microcontroller, shown here http://www.societyofrobots.com/axon2/.

I am finding it extremely difficult to get on with the C language (I'd never even heard of it until about 3 months ago), but I do seem to be able to "read" basic fairly easily.

Pimp My Bot

My first robot was a photovore, which was reasonably successful, and I was quite pleased with it. It soon, however got converted to an object avoidance robot, using a Sharp GP2D12. I used the same chassis for this, as the basics were there to make it easy to convert. I will probably continue to use this chassis for various testing of sensors and programming, for the forseeable future.

Simple light following Photovore
Using a
This is my first attempt at building a robot. A very simple Photovore. As we don't get much sun in our house, I had to use a torch to make the video. This is all … Read more