1 / 29

Castor Bot

Castor Bot. Now, we will begin creating a robot. Log onto your computer On your screen, click on the website labeled “castor bot” Your building instructions will be found there Raise your hand if you need any help. Now, that everyone has created a robot. Please open your NXT program

Télécharger la présentation

Castor Bot

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Castor Bot

  2. Now, we will begin creating a robot • Log onto your computer • On your screen, click on the website labeled “castor bot” • Your building instructions will be found there • Raise your hand if you need any help

  3. Now, that everyone has created a robot... • Please open your NXT program • Click “new program”

  4. We will now go through the basics on programming your robot

  5. How to program your robot

  6. Creating a new program… • You can create a new program or open a program you previously created. • Once you have a name for your program, select go!

  7. You should get a screen like this.

  8. Your work area • The Left bar is for putting blocks on your program • There are many different blocks, but we will go over the most basic ones first. • In the middle is our area where we do our programming. • We drag items onto the tracks.

  9. Please drag the movement block onto the track

  10. Using the Motion block • Has many parts. • The active ports. • Power • Direction: can be set to forward, reverse or stop. • Duration: controlled by: • Rotation • Degrees • Time • Steering: can adjust how hard a turn • Brake or coast modes.

  11. Ports What are ports? • Cables connecting brain to components A, B, C • Used for controlling motors 1,2,3,4 • Used for connect to the sensors • We will learn more about these later

  12. Changing ports and power • Depending on how many active motors you have connected, we check/uncheck Ports A, B, and/or C. • Power effects the speed of the motors.

  13. Controlling Direction What is it to control direction? Dragging the arrow left/right changes the direction that the robot will move. This feature is only active when two motors are selected. It controls forward, backward, or stop. How will changing the power effect the steering?

  14. Duration of activity Duration effects how long the block is active. Types of Duration Degrees Unlimited Time Rotation Let’s investigate!!

  15. Lego MindStorm An Introduction to programming

  16. Blocks Blocks are used to give instructions to your robot. There are many types of blocks You can use the blocks that come with the NXT software. You can create your own blocks.

  17. Common Blocks The common blocks:

  18. Common Blocks Move Tells your robot to move. Record Play The record play block allows your robot to record itself (movements and sound) and replay its actions later in the program.

  19. Common Blocks cont. Sound Allows your robot to play a sound file. Display Displays an image on the NXT brick screen.

  20. Flow Blocks The Flow Blocks

  21. Flow Blocks The Loop Block Use the loop block if you want your robot to continue doing the same things again and again, such as moving forward and backward until a touch sensor is pressed.

  22. Flow Blocks The Switch Block The switch block enables the robot to make its own decisions, such as going left when it hears a loud sound and turning right when it hears a soft sound.

  23. Flow Blocks The Wait Blocks The wait block makes your robot wait for sensor input, such as a sound or a time interval. Sound Distance Light Time Touch

  24. Action Blocks The Action Blocks

  25. Action Blocks Display The display block enables you to control the display on the NXT brick. You can type, show icons or even draw through your program!

  26. Action Blocks Lamp The lamp block tells your robot when to turn the lamp on/off. You can program your robot to turn on its lights when the touch sensor is triggered, or when it becomes dark.

  27. Action Blocks Message Send The message send block tells your robot to send information to another robot or to your computer.

  28. Action Blocks Motor The motor block tells your robot to turn on a motor. This is different from the move block. Your robot may have multiple motors attached.

  29. Now let us move onto building the Bumper Car

More Related