Sunday, 21 June 2015

Spider Challenge - Animatronic - Programming

Activity Details:
Task: Choose an animal and study its movements. Create and program a robot to demonstrate the behaviour of an animal e.g. a tail wagging puppy or a jaw snapping crocodile
Start date of task: May 20th 

  • In the beginning of the task, choosing an animal was, not so much of a challenge, but we did change our minds a few times. We had initially decided to create an elephant but as we gave it greater thought we realised that it may be too much of challenge; we went between ideas until we settled on a tarantula/spider. 
  • We initially started with the power pack as the body but upon further discussion it came to our attention that using one of the motors as a body was a drastically better option.
TRIAL 1: 

PROBLEMS WITH TRIAL:
  • the robot gears were not level or touching the floor so it couldn't move forward
  • the reversing turn can only work with two motors and only one was being used




TRIAL 2:
PROBLEMS WITH TRIAL:
  • the newly added small blue lego pegs on the bottom of the back legs raised the back of the robot to be level with the ground but it also stops the robot from reversing properly


TRIAL 3:

PROBLEMS WITH TRIAL:

  • sound sensor could only be activated after the robot had completed 15 rotations when it was supposed to be activated whenever it picked up sound when it was moving forward

PROGRAMMING UPDATES:

SPEEDING UP HORSEPOWER FROM 75 TO 100 SO THAT THE ROBOT CAN PULL THE BATTERY BACK ON IT'S OWN



TRIAL 4:

PROBLEMS WITH TRIAL:

  • similar problem to earlier sensor programming
  • the sensor cannot be activated until after 15 rotations
  • the ultrasonic sensor did not sense
  • no reverse movement was triggered

ATTEMPTS AT PROGRAMMING MORE THAN ONE SENSOR AT A TIME

TRIAL 5:

TRIAL 6: (follow left down then right down)


PROBLEMS WITH TRIAL:

  • was not programmed correctly
  • all sensors are supposed to be able to be activated at any time while moving forward
  • the switch is a useless feature programmed in this as there is no alternative option
  • the sound sensor can only be activated after the light sensor

TRIAL 7:















Activity 5: Version 2 - Walls and edges

Activity Details:
Title: Walls and edges
Task: This task uses the touch sensor, an activator and simple loops program to move your robot and negotiate collisions.
Date of task: May 15th 
Number of versions:2 of 2
Lego NXT Programming Screenshot:

Videos/Pictures:
Comments/Modifications:
  • Again, we unfortunately did not take a video of this version, but since we had no further versions, it is acceptable to say that we completed activity 5 using the version 2 programming. 
  • The picture above is of, what was, our new back wheel. Due to the fact that it broke off during the testing of the first version, we tried to create a better suited structure for the back wheel, so that it was stable enough to stay on, as well as not scraping against the floor. 

Activity 5: Version 1 - Walls and edges

Activity Details:
Title: Walls and edges
Task: This task uses the touch sensor, an activator and simple loops program to move your robot and negotiate collisions.
Date of task: May 15th 
Number of versions:1 of 2
Lego NXT Programming Screenshot:

Videos/Pictures:
Comments/Modifications:
  • In the video above there are two problems that are shown, one of them is the fact that our robot did not travel in the correct direction and went off the mat, the second is that our robot's back wheel fell off. 
  • Regarding the wheel, due to the fact that we did not have enough pieces within our kit, we were not able to build the back wheel, meaning that we had to try our best to improvise. 

Activity 4: Version 2 - Edge Finder

Activity Details:
Title: Edge Finder
Task: This task uses the light sensor and simple loop program to navigate your robot safely round a table top. 
Date of task: May 15th 
Number of versions:2 of 2
Lego NXT Programming Screenshot:

Videos/Pictures:
Comments/Modifications:
  • In this video, our robot does exactly what occurred in the last version, except this time it completed its turn. Although it continued to go in circles, we had accomplished what was asked of us. 

Activity 4: Version 1 - Edge Finder

Activity Details:
Title: Edge Finder
Task: This task uses the light sensor and simple loop program to navigate your robot safely round a table top. 
Date of task: May 15th 
Number of versions:1 of 2
Lego NXT Programming Screenshot:

Videos/Pictures:
Comments/Modifications:
  • In this video, our robot can be seen going in a forward direction and once a change of light was sensed, (in this case a bright light was shone upon the sensor), it reacted and turned, though it did not turn all the way. 

Activity 3:Version 3 - Brace, Brace, Brace

Activity Details:
Title: Brace, Brace, Brace
Task: In this task you will use the Ultra Sonic Sensor to avoid collisions with other robots. This task will involve you developing a simple loop program, where the robot will turn to avoid a collision with an object when the Ultra Sonic Sensor is activated. 
Date of task: May 15th 
Number of versions: 3 of 3
Lego NXT Programming Screenshot:

Videos/Pictures:
/
Comments/Modifications:
  • In the video above, you can see that we tried the robot twice; for some odd reason, on the first go, our robot did not make the full turn, whereas the second time, our robot completed his turn and fufilled the requirements. 

Activity 3:Version 2 - Brace, Brace, Brace

Activity Details:
Title: Brace, Brace, Brace
Task: In this task you will use the Ultra Sonic Sensor to avoid collisions with other robots. This task will involve you developing a simple loop program, where the robot will turn to avoid a collision with an object when the Ultra Sonic Sensor is activated. 
Date of task: May 15th 
Number of versions: 2 of 3
Lego NXT Programming Screenshot:
Video:

Videos/Pictures:
Comments/Modifications:
  • Unfortunately we did not take a video for this version, but it is appropriate to say that our robot had not yet fulfilled the activity criteria. 

Activity 3:Version 1 - Brace, Brace, Brace

Activity Details:
Title: Brace, Brace, Brace
Task: In this task you will use the Ultra Sonic Sensor to avoid collisions with other robots. This task will involve you developing a simple loop program, where the robot will turn to avoid a collision with an object when the Ultra Sonic Sensor is activated. 
Date of task: May 15th 
Number of versions: 1 of 3
Lego NXT Programming Screenshot:


Videos/Pictures:


Comments/Modifications:

  • This video shows that when our robot sensed that something was in front of it, it stopped, but instead of turning away, it just sat there and waited, which was not the intended purpose. 

Activity 2: Version 2 - There and back again

Activity Details:
Title: There and back again
Task: Program your robot to move from its position on the start line across the turn line, 50 cm away, turn around and return to the same position it started from. 
Date of Task: May 15th
Number of versions: 2 of 2
Lego NXT Programming Screenshot:

Videos/Pictures: 


Comments/Modifications:

  • Much like the first version, our robot started off going straight but this time it did a 90 degree spin meaning that it was facing the direction that it just came from, as was intended, and went forward, stopping just before the end of the mat. 

Activity 2: Version 1 - There and back again

Activity Details:
Title: There and back again
Task: Program your robot to move from its position on the start line across the turn line, 50 cm away, turn around and return to the same position it started from. 
Date of Task: May 15th
Number of versions: 1 of 2
Lego NXT Programming Screenshot:

Videos/Pictures:


Comments/Modifications:
  • From the video, it is shown that our robot starts off forward, stops just before the end of the mat, turns and goes in a straight direction; the only problem is that it did not stop until it was off the mat. 

Activity 1:Version 2 - 50 cm and no more

Activity Details:
Title: 50 cm and no more
Task: Program your robot to move exactly 50 cm from the start line to the finish line.
Date of task: May 15th
Number of Versions: 2/2
Lego NXT Programming Screenshot:

Videos/Pictures:


Comments/Modifications:

  • From the video above, it is shown that finally our robot is doing what it's meant to.