Labs with LOLmeiSTER

Here's where information involving my robot's participation in labs will be posted.
I will also post the names of the groupmates involved in the lab and provide links to their pages.

Lab 1


This image can only be viewed by those with a usc gold account
Today we tested out the robot's drawing capabilities and also looked at how different robots would react to the same code.
LOLmeister's Drawing is on the left while El Chupacabra's is on the right.
Though they were both told to draw the same shape, each one drew it differently
Thus all robots are somewhat unique.
Group:
Marcus Eng (Chupacabra)
Brandon Barber (Thikanbot)
Jackson Dahl (Ameribot)

Lab 1 Day 2


Today we tested out the robot's light sensors, which are located on the bottom of the robot.
They are supposed to be able to detect light and dark frequencys, which after testing we noticed they did very well.
We programmed a test so that whenever the robot was on a light surface it displayed the value 0,
but when the robot was on a dark surface it displayed the value 1.

Group:
Marcus Eng (Chupacabra)
Brandon Barber (Thikanbot)
Jackson Dahl (Ameribot)

Lab 1 Day 3


Today we tested out the other sensors the robot has: the2 IR sensors, the battery sensor, and the light sensor. Lare used to detect proximity to object.
There is one on the body of the robot and one on the fluke. The battery sensor is self explanitory. While you could look at the lights on the
to see how much battery is left, one could also write a command for the exact numerical value of the battery left, and use that in order to optimize the robot's performance.
Here are my readings for LOLmeiSTER:
Line Sensor
o, 0
IR Sensor
1,1
Fluke IR Sensor
3200, 3840, 2560
Light Sensor
64796, 65130, 64758
Battery Sensor
5.91002

My group's readings can be found at their sites:
Fangli Hou (Chupacabra)
Yu Anli (Vesper)
Kenneth Chang (nos4a2)

9/20/12


My group, Winston, David, and I devised an algorithm to draw an expanding helix based on the fibonacci sequence.

The program:

#include "Myro.h"
#include "math.h"
#include "stdio.h"
#include "iostream"

using namespace std;

int main(int argc, char ** argv) 
{
	connect("/dev/rfcomm0");
	
	int input;
	
	cout << endl << "Enter the number of terms:" << endl;
	
	cin >> input;
	
	cout << endl;

	int a  = 1;
	int b  = 0;
	double displayNumber;
	double speed = 0;
	for(int i=0; i < input; ++i)
	{
		displayNumber = a + b;
		
		a = b;
		
		b = displayNumber;
		
		speed = displayNumber/10;
		
		if(displayNumber == 1)
		{
			speed = 0;
		}
		
		cout << displayNumber << endl;
		
		robot.motors(speed, 1);
		
		wait(displayNumber);
	}	
	robot.hardStop();
	
    disconnect();
	
	return 0;
}



The result:
This image can only be viewed by those with a usc gold account


Checkout My Robots Talent Routine!

For our first homework assignment we had to put together a routine in which the robot utilized its entire
array of sensors, as well as a random function. I created a routine in which the actions that the robot preformed were
controlled by user input. My robot's actions ranged from systems checks to dancing randomly. This was all pre-planned. I compiled a code
and it worked perfectly. Here are the results:
click here

click here to download the code I used for this assignment

click here to download the pre-lab for the robot search and rescue assignment.

Valid XHTML 1.0 Transitional!Valid CSS!