home *** CD-ROM | disk | FTP | other *** search
-
- Robotics - Part 3
-
-
- Last time we covered how to switch on
- more than one light at a time by adding
- all the numbers together, e.g. to turn
- lights 1 and 2 on you send chr$(3).
-
- This is most of the basics covered.
- Most of the rest is basic programming
- that hopefully you should know a bit
- about, if not WHY NOT!!!!
-
- I think the final bit that should be
- covered is actually getting something
- to move that is being controlled from
- the computer. At this stage it will
- help if you know something about
- electronics, and know how to use a
- soldering iron.
-
- When you buy an I/O card you may get a
- relay with it which plugs into the I/O.
- For people who don't know what a relay
- is, I will tell you:
- It is switch which is controlled from
- very low volts. You can get them from
- any good electrical shop, e.g. Tandys.
- You must make sure it works on about 1
- volt, which is about the same power
- that comes out of the printer port.
- You can the connect the relay to high
- voltage, e.g. 5 volts from the joystick
- port. This is what I used.
- The 5 volts can be used to run
- electric motors, which in turn can
- power a small vehicle.
-
- I used a Big Track for my robotics
- vehicle (remember the advert for them?
- It was a kid who got it to take an
- apple to his dad...).
- I took most of the componants out of
- it and wired the relays up to the motor
- via a long ribbon cable.
- Now all that was left to do was write
- a program which I could control it.
-
- I turned both motors on at the same
- time to make it go forward, switched
- the right motor of to make it go right
- and switched the left motor off to go
- left - just like a tank!!!
-
- In the program, I could get it to
- store commands so it could go on a set
- route. Also, I programmed it to be
- controlled from the joystick, which was
- different...
-
- I have included the program I used, so
- if anyone has an I/O port you can stick
- the lights in and see how it works...
-
- Well that's the lesson over with. I
- hope you have learnt something about
- robotics and if you have any questions,
- my address is in the Contacts section.
-
- Good luck then and I hope you do well.
-
- Matthew Green.
-
-