Sunday, November 17, 2013

Tutorial for Lego Mindstrom Forklift

Building Instructions


1-16
Start by building the 3-Motor Chassis.  Click the picture for building instructions.

Building Instructions
 

17


You can temporarily remove the wires from ports B and C to make it easier to attach these parts.

Replace the B and C wires if you removed them.


18




19




20



Repeat this step to build two copies.


21

Align the slits in all of the parts together as shown.  This will ensure that the string loops over the smooth part of the center bushing.




22





23





24




25





26




27
Use about 20 inches (50 cm) of kite string or other thin string.  This is the same length as one of the longest NXT wires including the connectors.

Tie one end of the string to one peg of the motor winder and the other end to the center hole of the beam.

Use the gears on the motor winder to wind a couple of turns of string by hand so that string comes out on the bottom of the winder, then route the end with the beam up and over the top bar, as shown below.

Pick the model up, insert the lift platform into the vertical channels from below, then slide it up and attach it to the beam on the end of the string, as shown below.

28




Use a medium-length (35 cm) wire to attach the ultrasonic sensor to port 4 on the NXT, and route the wire out of the way as shown below.


29






30
(Optional) Create some other things for the forklift to carry.  Some ideas are shown below.



Forklift Programming
The Forklift_Test program is an example of an autonomous (not remote-controlled) task for the forklift, using a combination of rotation sensors and the ultrasonic sensor.  See the instructions below to set up this task.
The Forklift can also be operated by Bluetooth remote control from either your PC or another NXT.  If you have a working Bluetooth connection between a Microsoft Windows-based computer and your NXT (you can download programs to the NXT by Bluetooth instead of using the USB cable), then you can use this Bluetooth Vehicle Remote program written by Anders Søborg to control the Forklift using the keyboard or mouse on your computer.  See the instructions below to set it up for the Forklift. 
If you have two NXTs, see the Dial Remote Control project to control the Forklift from an NXT-based wireless (Bluetooth) remote control.
 How to Set up for the "Forklift Test" program
The Forklift_Test program is an autonomous NXT program that can be used without Bluetooth remote control.  It will make the forklift lift the load of tires and place it on top of a platform by itself.  The starting position for this task is as shown below.  
  • Platform height: 5 - 5.5 inches (13 - 14 cm)
  • Distance from Forklift to load of tires: about 2 inches (5 cm)
  • The distance from the load to the platform doesn't matter because the program will use the Ultrasonic sensor to find the platform.
  • Use the gears on the lift winder to manually lower the lift until it just barely touches the ground.
  • It helps if you straighten the castor wheel behind the robot first, so that the Forklift will start straight.


How to Use the PC Bluetooth Vehicle Remote with the Forklift
  1. You need a Microsoft Windows based computer to run the Bluetooth Vehicle Remote program.
  2. You need a working Bluetooth connection between your computer and your NXT.  Your connection works if you can download programs from your computer to your NXT by Bluetooth instead of a USB cable.  If you have never tried this before, see your Mindstorms User Guide for instructions.  Bluetooth can be tricky to get set up, and some computers are not capable of doing it.   Sorry, I cannot help you with this part.
  3. If you have more than one NXT, make sure that the one you are using for the Forklift was the last one to connect the LEGO Mindstorms software by Bluetooth.  You can do this by downloading a program (any program) to your NXT by Bluetooth.
  4. Exit the LEGO Mindstorms software.  The Bluetooth Vehicle Remote will not be able to connect to the NXT if the LEGO Mindstorms software is still connected to it.
  1. Find out what "Comport" is being used for your PC to NXT link.  You can do this by going to the Control Panel on your computer, running the Bluetooth control panel application, and looking for information on the connection there.  For example, the Bluetooth Control Panel on my computer, shown in the picture to the right, shows under the COM Ports tab that my NXT device named "Dave" is using Comport 6 ("COM6").
  1. Turn your NXT on.  You don't need any program running on the NXT for the remote control to work.
  2. Run the Bluetooth Vehicle Remote program (nxt-remote.exe) available here.  This program runs on your PC, not on the NXT.
  3. Set the Comport dropdown to the port determined in step 5 above.
  4. Set the controls as shown in the picture to the right as a starting point:
    • Motor 1 = Motor B, Float
    • Motor 2 = Motor C, Float
    • Speed = 50
    • Spin Speed = 25
    • Turn Ratio = 25
    • Motor 3 = Motor A, no Float
    • Motor 3 Speed = 75
  5. Press the Connect button to establish a Bluetooth connection to your NXT.  If this works, it will display "Connected".
  6. Use the Drive buttons or Keyboard controls to control the Forklift.
  7. Experiment with different speeds and settings to see what you like best.

How to Use Bluetooth Remote Control from another NXT
If you have two NXTs, see the Dial Remote Control project to see how you can build a remote control with your other NXT that can use to control the Forklift.

Challenges
  • Try modifying the Forklift_Test program do to some different tasks.
  • Practice driving the Forklift with the Bluetooth remote control.  Can you stack things up on a shelf with 3 different levels and take them back down again?
  • If you have some other LEGOs, try making some blocks and other parts that can be lifted by the Forklift.  Can you build a tower of parts that stack on top of each other, and whenever you lift one it lifts all of the ones on top of it too?
  • This Forklift design uses almost all of the beams and pegs in the NXT kit, but if you have some extra parts, can you make it lift even higher? 
  • If you lift heavy items up high, the Forklift may fall over.  What could you do to prevent this?  What do real forklifts do?

    Source : http://www.nxtprograms.com/forklift/steps.html

0 comments:

Post a Comment