|
More Advanced Robotics with Lego Mindstroms
Contents 1 Spirit. OCX Beyond RCX code Spirit. OCX? Operating Modes The Commands Motor On/Off Float AlterDir Wait Random Set Power SetVar SetVar SumVar SubVar MulVar DivVar SgnVar AbsVar AndVar OrVar Flow control Loop EndLoop If EndIf Else While EndWhile SetSensorType SetSensorMode Slope BeginOfTask EndOfTask GoSub BeginOfSub EndOfSub StopTask StartTask Timers PlayTone PlaySystemSound SetWatch InitComm CloseComm SendPBMessage Sources Number confusion 2 Using Visual Basic Visual BASIC 6 VBA Starting with VB Command Buttons Loading Spirit.OCX Visibility Adding Code Tasks VB Shortcut VB Alternatives Using VBA Happy Ending Demo Program 3 Making Connections Right connections DIY connectors Simple approach Checking connections Making connections Limitation Wirier method Drilling for coil Fitting the wire On a plate Tinplate Connector plates 4 Ins and outs Inputs Passive sensors Mathematics Right choice Topsy-turvy Active Sensors Lost potential Facts and figures More Inputs Other Sensors Improved Detection Outputs Polarity Power setting Current limiting Colour change 5 Light sensors Double vision Simple DIY sensor Sensor with LED Sensor Construction Circuit board Practice Makes Perfect Small is beautiful Finishing off Components list Directional sensor Rover robot Step 1 (Figures 5.21 to 5.24) Step 2 (Figures 5.25 to 5.29) Step 3 (Figures 5.30 and 5.31) Step 4 (Figures 5.32 and 5.33) Step 5 (Figures 5.34 to 5.36) Step 6 (Figures 5.37 to 5.39) Step 7 (Figures 5.40 to 5.42) Adding the sensors 20/20bot VB software Findbot Slow response Camerashybot Slope version 6 Sound sensing Motor noise Sensor operation Circuit operation Construction Case Components list Test software Waiter service Applausebot Coughing up Mechanism Step 1 (Figures 6.18 to 6.20) Step 2 (Figures 6.21 to 6.24) Step 3 (Figures 6.25 and 6.26) Step 4 (Figures 6.27 to 6.30) Step 5 (Figures 6.31 and 6.32) Step 6 (Figures 6.33 and 6.34) Step 7 (Figures 6.35 to 6.37) Step 8 (Figures 6.38 to 6.40) Step 9 (Figures 6.41 to 6.44) Step 10 (Figures 6.45 to 6.49) Step 11 (Figures 6.50 to 6.53) Sweetiebot software Sensor modification Alternative triggering 7 Pot-pourri Bouncing back System operation Ciruit operation Construction Components list Testing Batbot software VB version Hootbot Rotation sensor Increased resolution Step 1 (Figures 7.14 and 7.15) Step 2 (Figures 7.16 and 7.17) Step 3 (Figures 7.18 to 7.21) Step 4 (Figure 7.22 to 7.25) Step 5 (Figures 7.26 to 7.28) Step 6 (Figures 7.29 and 7.30) Step 7 (Figures 7.31 and 7.32) Step 8 (Figures 7.33 to 7.35) Alternative gearing Owl command Data capture Thermometer Data logging Graphing Extra motor Crabbot Step 1 (Figures 7.48 to 7.50) Step 2 (Figures 7.51 to 7.53) Step 3 (Figures 7.54 and 7.55) Step 4 (Figures 7.56 to 7.61 Step 5 (Figures 7.62 and 7.63) Step 6 (Figures 7.64 to 7.68) Step 7 (Figures 7.69 to 7.72) Crabbot software Armbot Armbot software Having Vision Onboard View Seebot Colour sense Program operation Ups and downs Step 1 (Figures 7.95 to 7.97) Step 2 (Figures 7.98 and 7.99) Step 3 (Figures 7.100 and 7.101) Step 4 (Figures 7.102 to 7.105) Step 6 (Figures 7.106 to 7.110) Appendix 1 Appendix 2 Appendix 3 Appendix 4 Appendix 5 Appendix 6 Appendix 7 Index
|