home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 10: Diskmags / nf_archive_10.iso / MAGS / STOSSER / STOSSE04.MSA / TUTORIAL.DOC / ROBTICS.DOC < prev    next >
Encoding:
Text File  |  1987-04-22  |  2.1 KB  |  75 lines

  1.  
  2.             Robotics - Part 3
  3.  
  4.  
  5.  Last time we covered how to switch on
  6. more than one light at a time by adding
  7. all the numbers together, e.g. to turn
  8. lights 1 and 2 on you send chr$(3).
  9.  
  10.  This is most of the basics covered.
  11. Most of the rest is basic programming
  12. that hopefully you should know a bit
  13. about, if not WHY NOT!!!!
  14.  
  15.  I think the final bit that should be
  16. covered is actually getting something
  17. to move that is being controlled from
  18. the computer. At this stage it will
  19. help if you know something about
  20. electronics, and know how to use a
  21. soldering iron.
  22.  
  23.  When you buy an I/O card you may get a
  24. relay with it which plugs into the I/O.
  25. For people who don't know what a relay
  26. is, I will tell you:
  27.  It is switch which is controlled from
  28. very low volts. You can get them from
  29. any good electrical shop, e.g. Tandys.
  30.  You must make sure it works on about 1
  31. volt, which is about the same power
  32. that comes out of the printer port.
  33.  You can the connect the relay to high
  34. voltage, e.g. 5 volts from the joystick
  35. port. This is what I used.
  36.  The 5 volts can be used to run
  37. electric motors, which in turn can
  38. power a small vehicle.
  39.  
  40.  I used a Big Track for my robotics
  41. vehicle (remember the advert for them?
  42. It was a kid who got it to take an
  43. apple to his dad...).
  44.  I took most of the componants out of
  45. it and wired the relays up to the motor
  46. via a long ribbon cable.
  47.  Now all that was left to do was write
  48. a program which I could control it. 
  49.  
  50.  I turned both motors on at the same
  51. time to make it go forward, switched
  52. the right motor of to make it go right
  53. and switched the left motor off to go
  54. left - just like a tank!!!
  55.  
  56.  In the program, I could get it to
  57. store commands so it could go on a set
  58. route. Also, I programmed it to be
  59. controlled from the joystick, which was
  60. different...
  61.  
  62.  I have included the program I used, so
  63. if anyone has an I/O port you can stick
  64. the lights in and see how it works...
  65.  
  66.  Well that's the lesson over with. I
  67. hope you have learnt something about
  68. robotics and if you have any questions,
  69. my address is in the Contacts section.
  70.  
  71.  Good luck then and I hope you do well.
  72.  
  73.  Matthew Green.
  74.  
  75.