Sunday, April 20, 2014

Final Project- Sample Videos

Clarification:  Each team will produced both robots.

I was able to complete both robots this weekend:
Robot 1:  Each barrel is placed exactly 6 inches perpendicular  to the track on the right side.  This is important because the robot does not have the IR sensor and because the front of the robot has the grabber which can knock down objects as it turns around.

In my example, the red color indicates the start of the obstacle course.  The first time on the course, the robot counts the number of green dots to get the total number of obstacles on the course.  As it loops, it will keep track of how many objects have been collected and will stop when all objects have been collected.

Lego Mindstorm robot1 - YouTube
 
 


Robot 2:  The barrels must be tall enough for the IR sensor to see it.  I have made my barrels 15cm tall and placed the IR sensor on top of the medium motor of the grabber.  The touch sensor is connected on the back of the robot.

The robot is activated when it senses a beacon.  Once activated, it will go in a straight line until an object is close to the grabber.  It will then keep backing up until the touch sensor is pressed.  It will turn to the right and unload the object.  It will then turn around and keep backing up until the touch sensor is pressed.  It will stay in one spot until it senses a beacon.

VIDEO:

Lego Mindstorm robot2 - YouTube

 

Final Project

One of our goals in this class is to work as a team.  You have been divided into 2 teams:
Team 1: Max and Chris
Team 2: Eric and David
Your goal is to create two robots that work together to move objects to a "destination area".
Robot 1:  (Grabber and Color Sensor)
  • Follow a BLACK line.
  • When you see "RED"  says something unique that you have recorded yourself and make the display blink RED. Continue following the black line.
  • When you see "GREEN",  if you currently do not have any objects, turn and pick up object. ( If you already have an object, just continue on to the black line.)
  •      After picking up an object, turn to face the black line again and continue following the black line until you see "BLUE"
  • When you see "BLUE" drop the object.  Continue following the black line.
  • The line will loop and you will continue picking up objects.
Robot 2: (Grabber, IR Sensor and Touch Sensor)
  • This robot will sense when Robot 1 is near (Watches for Beacon) and moves to pick up object from Robot 1 in the blue spot.
  • Once it has an object, it will move backward in a straight line up a ramp until it TOUCHES a wall.   It will then turn and open its grasp to drop the object.  After the object is released, it
  • will turn  and return home to wait for Robot 1 to come again.
Mr. Windish and I will create an obstacle course:
We will use black electrical tape, print 3D barrels, color squares (red, green, and blue),and build a ramp and "destination area".

You are required to submit both EV3 code and JAVA code.
You will present your project during the Phidget Runway Presentation , Friday May 2nd from 9-12 in Atkinson Lobby.We will record the time it takes for your robots to move all objects to the destination area.   . 
You may need to work with your partner outside of class.   We will not have formal class on Fridays now.  Friday 12-2  can be help sessions/ group sessions as you wok with your partner

Note: The ROV3R with touch sensor bumper, line following module and grabber module are described in Chapter 2 of your book.  Visit EV3L.com for bonus materia

Thursday, March 13, 2014

Programming with leJOS Instructions

Instructions for Creating a Bootable SD Card:  (Download sd.img and Oracles embedded java runtime environment)

https://drive.google.com/file/d/0B9PGYACAb1cWLURhRElsanFqT28/edit?usp=sharing




Instructions for setting up your environment in eclipse and creating your first LeJOS program. (Use build.xml to compile, link libraries and copy jar file to EV3)
https://drive.google.com/file/d/0B9PGYACAb1cWWHFGUE5nVjAwTGs/edit?usp=sharing

Note: I had to connect to Bluetooth in order to transfer files.  It did not work just connecting EV3 to PC with usb cable.  I kept getting the error message: ConnectionException: timeout when it tried to download the executable to the EV3.

Sample leJOS files
http://sourceforge.net/p/lejos/ev3/ci/master/tree/

The EV3 API link is broken.  The only thing different with EV3 and NXT API is how the Senors and Motors are created:

Sensors: http://sourceforge.net/p/lejos/wiki/Sensor%20Framework/
Motors: http://sourceforge.net/p/lejos/wiki/Motors/

NXT API:  http://www.lejos.org/nxt/nxj/api/index.html
NXT Tutorial: http://www.lejos.org/nxt/nxj/tutorial/index.htm

SOURCE:
LEJOS: http://www.lejos.org/


Friday, February 21, 2014

Sorry I couldn't make it to class this week. Over the past week I have been continuing to test the color sensor and the colors on the box are the correct shades and read correctly on the sensor. To my knowledge, those seven colors are the only ones that will work with the sensor. I still had trouble getting the song to sound correct. I would post a video but I had to rush back to Atlanta this afternoon. Im going to continue working with the color sensor and come up with a proposal for the Research Conference.


Monday, February 10, 2014

Class: 2/7/2014

In class everyone had created the robot from Chapter 3. We completed the following tasks.

  •   Named our bricks
  •   Ceated a program using the EV3 software.
  •    Paired with iPad


Assignment for next week: (Practive using EV3 software)
   Max and David: will create a robot that reads music.  Read a color and play a different tune
   Chris: will read chapter 5 and complete the robot experiment with the IR sensor.

Next week:  Demonstration of Java controlled software.