Wednesday, August 11, 2010

Task 5 - Lego Robot Lessons

Lesson 1 - Make The Robot Play A Tune

For this lesson you will not need to build anything, just get familiar with the how Lego Mindstorms works.

1. Lets start by opening up Lego Mindstorms Educator.

2. Hook up the nxt mainframe to the USB (make sure it is charged.)

3. From the opening screen, click File > New at the top left corner.

4. On the left hand side of the screen, there is a tab pallette - Make sure this is on
Common / (The Green Circle of the pallette is seletcted.)

5. Drag and drop the sound file onto the middle of the screen.

6. From here you will be able to see some sound attributes at the bottom of the screen.

7. Click tone, and then click the play button on the middle of the page to upload and play on the nxt mainframe (make sure it is plugged into the usb!).

8. Now try and make the robot play the chords E,F,G,A,B - by dragging and dropping
more sound files onto the middle of the screen. It should look something like this:











Lesson 2 - Make The Robot Do A 360 Degrees Turn. For this lesson you will require the robots to have wheels for movement.

For this lesson you will require the robots to have wheels for movement.

1. Click File > New at the top left corner.

2. On the left hand side of the screen, there is a tab pallette - Make sure this is on
Common / (The Green Circle of the pallette is seletcted.)

3. Drag and drop the move button onto the middle of the screen.

4. From here you will be able to see some moving attributes at the bottom of the screen such as Direction, Rotation and Steering.

5. Click the Power tab and make sure this is on maxium power.

6. On the Steering tab click on the scroll-bar and move it as far to the right as possible.

7. On the Duration tab, select it so it does 2 rotations.

8. Now click the play button on the middle of the screen to upload and play on the robot.

9. Now try and make the robot turn 360 degrees - see below a screen shot if you are having trouble











Lesson 3 - Make The Robot Go Forward, Stop Then Reverse Back. For this lesson you will require the robots to have wheels for movement.

1. Click File > New at the top left corner.

2. On the left hand side of the screen, there is a tab pallette - Make sure this is on Common / (The Green Circle of the pallette is seletcted.)

3. Drag and drop the move button onto the middle of the screen. Do this three times.

4. From here you will be able to see some moving attributes at the bottom of the screen such as Direction, Rotation and Steering.

5. Make sure you have selected the first building block on the middle of the screen

6. Click the Power tab and make sure this is on maxium power.

7
. On the Steering tab click on the scroll-bar and make sure this is at the centre.

8. On the Direction tab, make sure it is facing forwards.

9. On Duration tab, make sure you select 8 Rotations.

10. Now click on the next building block.


11. On the direction pallete at the bottom of the screen, select the stop symbol.

12. Now click the play button on the middle of the screen to upload it to the robot.

13. Now that you have the robot going forwards and stopping. See if you can make it go backwards after it stops. See below for hints:












Lesson 4 - Lego Robot Reacting To Light. For this lesson you will require the robots to have wheels for movement and have the light sensor attached.

1. Click File > New at the top left corner.

2. On the left hand side of the screen, there is a tab pallette - Make sure this is on Complete / (The three different colour squares.)

3. Click on the flow tab(the orange shape) and drag and drop the switch loop onto the main screen.
4. Check to see the control is set to forever at the bottom of the screen.

5. Now click on the sensor tab (the yellow shape with an arrow) and drag and drop the light sensor within the loop in the middle of the screen.

6. Click on the light sensor and make sure the generate light box is clicked at the bottom of the screen.

7. Now click on the comoon tab (the green circle) and drag and drop the move block next to the light sensor within the loop. This should expand automatically.

8. Click on the move block. At the bottom of the screen, select duration as unlimited and make sure the scrollbar on steering is all the way to the right.

9. Now on both boxes click the bottom of each of the boxes to expand the screen as per below image.




10. Now click on the intensity tab on the drop down box on the light sensor and drag it to the power tab on the moving drop down box. There now should be a yellow line linking them.

11. Now click the play button to upload it to the robot. Aim a light at the sensor to make it move!













Lesson 5 - Lego Robot Reacting To Distance . For this lesson you will require the robots to have wheels for movement and have the ultrasonic sensor attached.

1. Click File > New at the top left corner.

2. On the left hand side of the screen, there is a tab pallette - Make sure this is on Complete / (The three different colour squares.)

3. Click on the flow tab(the orange shape) and drag and drop the switch loop onto the main screen.
4. Check to see the control is set to forever at the bottom of the screen.

5. Now click on the sensor tab (the yellow shape with an arrow) and drag and drop the ultrasonic sensor within the loop in the middle of the screen. Make sure at the bottom that the show option is set to inches.

6. Now click on the Red Cross Tab and drag and drop the Math Block to the right of the ultrasonic sensor within the loop.

7. At the bottom of the screen change the operation to subtraction and put 100 in the A text box.


8. Now click on the comon tab (the green circle) and drag and drop the move block to the right of the math block.

9. At the bottom of the screen make sure the direction is facing backwards and duration is set to unlimited.


10. Now expand all the drop down boxes as you did in the previous lesson.

11. Link the distance tab on the ultrasonic dropdown box to the b tab on the math drop down box. Then link the result tab on the math drop down box to the result tab on the moving drop down box.

12. Now click the play button to upload it to the robot. Put your hand in front of the sensor to see it in action. Below is a screen shot of what your code should look like.











Lesson 6 - Lego Robot performing all the things in previous tasks at once. For this lesson you will require the robots to have wheels for movement and have the ultrasonic sensor & light sensor attached.

1. As per previous lessions click file > new at the top left hand corner.

2. On the left hand side of the screen, there is a tab pallette - Make sure this is on Complete / (The three different colour squares.)

3. From here, move different lego blocks onto the main screen including the ultrasonic and light sensors and create some code, so that the robot can incorporate everything you have learned from the other lessons.


4. Below is the design I have created. It moves forward until it reaches some light, it then travels backwards 8 rotations and plays a sound. From here it then moves forward again until it reaches a wall of some description and then goes backwards again 8 rotations.





5. If you have trouble finding some ideas look through the previous lessons or try and recreate the idea I have created.







Wednesday, August 4, 2010

Task 4 - Lego Robot Videos

http://www.youtube.com/watch?v=gXiql8Fm64A - Cool lego mindkit robots that have been created from a robot that deals cards to a hardcore battle robot.

http://www.youtube.com/watch?v=aH2FmgKKyl8&feature=related - This cool lego robot can grab things with an extendable arm.

http://www.youtube.com/watch?v=wY03TKnbpu4&feature=related - This robot is one from starwars and is very cool. It can do the moonwalk. From reading it sounds like incorrect programming made this robot do this.

http://www.youtube.com/watch?v=gylFtdCSrRA&feature=related - This lego robot can sort coins. It looks very complex in the way it does things, but is still very cool.

http://www.youtube.com/watch?v=Gj3uvzCTa-c&feature=related - This is a lego robot dog. It can walk backwards and forwards and looks fairly easy to implement.

Monday, July 26, 2010

Task 3 - Five Normal Robots

The Adult Robot Toy, is one of the cooleset designs. It can dance, play music, do push ups and even respond to some comands. This must have many sensors to be able to do all these things. I think this is a very complex robot though and maybe hard to rpelicate some of its uses. Link: http://www.youtube.com/watch?v=Dgl9a3fntkU&feature=related





The Dancing Sony Robots, are very cool. When the music plays the dance to the music. This sensor used must pick up the tune for it to dance to, which could be interesting to using in conjunction with the Arduino. Link: http://www.youtube.com/watch?v=9vwZ5FQEUFg&feature=related.







The Robot Fish acts like a real fish in the water. It moves and acts like a real fish, however also is a very complex robot. Link: http://www.youtube.com/watch?v=eO9oseiCTdk&feature=related.





The Tiny Chick Robot is an interesting one. It is baby bird, which when touched will make churping noises and flap it wings like a real baby bird. Again fairly complex and I would probably not use the parts. Link: http://www.youtube.com/watch?v=G5d3A-SV9Vo&feature=channel.








The Robot Violinist is a very cool and complex invention, this would take a lot of work to get this working. I would probably not use any of the parts for my arduino robot as it will be to complex. Link: http://www.youtube.com/watch?v=EzjkBwZtxp4.




Thursday, July 22, 2010

Task 1 - Five Youtube Videos on Arduino Robots

Below is an arduino-based robot that can detect walls. It uses modified servos, which gives it continuous rotation and a Sharp IR Range finder. The continuous rotation could be interesting to use, as it will allow movement constantly without a controller. The link is: http://www.youtube.com/watch?v=zo9m5PXjKks or blog http://bunedoggle.com/robots.php.


Here is another example of an arduino based robot. It is quite hard to see what it is doing, however I think it must have similar sensors as the last robot. Link: http://www.youtube.com/watch?v=Kyvms5BDLw4


This is the coolest robot yet. It finds targets that are nearby and shoots rubberbands at them (in this case cups). This also uses servos and every quarter turn fires a rubberband and also uses a Sharp IR Range finder. Link:http://www.youtube.com/watch?v=xBV-hF9AVDk&feature=related





Below is another Arduino powered robot. However this moved by a Wii Nunchuck. This is very cool and just follows the movement of the Nunchuck. It uses servos for movement, however couldn't find to much more information about it, but apparantly there is alot online about link an Arduino to Wii Nunchuck. Here is the link: http://www.youtube.com/watch?v=Qlukl5fLi7s&feature=related





Here is another example of a nunchuck and arduino robot. However this one has a camera on it and can be moved around, when the z button is clicked, the camera is locked on. This is very cool and is also using servos. It appears almost everything I have looked at is using servos. Link:
http://www.youtube.com/watch?v=MD_-YnFZFP8&feature=related



First Robots

Eliza - A computer programmed robot that answered questions with questions. It had 240 lines of code.

Unimate Robot - The first industrial robot built in 1961. It took die casting from machines and performed weilding similar to a human task.

What Is A Robot?

A robot is a machine that can be programmed or controlled to do a specific task such as walking or flying. This is usually powered by electricity and can resemble human tasks.The word robot originates from Czech republic in 1921.


Wikipedia states that a robot is an automatically guided machine which is able to do tasks on its own, almost always due to electronically-programmed instructions. Another common characteristic is that by its appearance or movements, a robot often conveys a sense that it has intent or agency of its own.


Dictionary.com defines a robot as:

1. A mechanical device that sometimes resembles a human and is capable of performing a variety of often complex human tasks on command or by being programmed in advance.
2. A machine or device that operates automatically or by remote control.
3. A person who works mechanically without original thought, especially one who responds automatically to the commands of others.