Week 2 - Robotics (CS, ME)

Mechanical Engineering: Combines Physics, mathematics principles, and material science to design, analyze, manufacture, and maintain mechanical systems.
 

Computer Engineering: Is a fuse of electrical engineering and computer science, focusing on integrating hardware and software in a unified system.

Day 1

Tamiya Robot

On day 1 we started building the Redbot, the Tamiya Robot, and replacement gear.

Gear Box 

RedBot

Day 2-3

We designed a new system for the rover to move on wheels instead of tracks, and Programed the back up rover.

Wiring together the ultrasonic sensor

Putting together the cardboard frame

RedBot robot and Tamiya robot navigating courses


IMG_6799.MOV

RedBot

Able to follow the line through our line follower code and color sensor, and using our touch sensor able to move away from an obstacle and rediscover the line

Tamiya

We structured our Tamiya to look like a pick up truck.

Course and Code 

Source code

Code 

task main()

{

int threshold = 300;      /* found by taking a reading on both DARK and LIGHT    */

/* surfaces, adding them together, then dividing by 2. */

while(true)

{

if(getColorGrayscale(colorDetector) < threshold)

{

// counter-steer right:

setMotorSpeed(leftMotor, 50); //Set the leftMotor (motor1) to half power (50)

setMotorSpeed(rightMotor, 0);   //Set the rightMotor (motor6) to off (0)

}

else

{

// counter-steer left:

setMotorSpeed(leftMotor, 0); //Set the leftMotor (motor1) to off (0)

setMotorSpeed(rightMotor, 50);  //Set the rightMotor (motor6) to half power (50)

}

}

}