Project Details

Knight Vision is on track for success on the project. Look below to see the team’s latest work.

  

This is the latest CAD design that the team is fabricating. Design changes were made to account for a larger battery, and more electrical equipment.

Pictured above is the latest work done by the team. The cart fabrication is almost completed and electrical controls work is well under way.

 

Team Poster

Senior Design Night Team Description

Fall 2017 Project Proposal Feasibility Study

Arduino Controller Code Used:

#include <SPI.h>
#include <Servo.h>

USB Usb;
XBOXUSB Xbox(&Usb);

Servo servoMotor;

// ———————————————————————————————-
void setup()
{
// start USB connection
Serial.begin(115200);

#if !defined(__MIPSEL__)
// Wait for serial port to connect – used on Leonardo, Teensy and other boards with built-in USB CDC serial connection
while (!Serial);
#endif

if (Usb.Init() == -1)
{
Serial.print(F(“\r\nOSC did not start”));
while (1); //halt
}

Serial.print(F(“\r\nXBOX USB Library Started”));

//attach motor
servoMotor.attach(3);

}

// ———————————————————————————————-

void loop()
{
float Speed_Input;
Usb.Task();
if (Xbox.Xbox360Connected)
{
// define variables for speed input from controller
int Left_Stick_Output = Xbox.getButtonPress(L2);
int Right_Stick_Output = Xbox.getButtonPress(R2);
float Scale = .078;

if (Xbox.getButtonPress(L2) && Xbox.getButtonPress(R2))
{
Speed_Input = 0;
}

else if (Xbox.getButtonPress(R2))
{
Speed_Input = 91 – (Right_Stick_Output * Scale);

if(Speed_Input < 10)
{
Speed_Input = 10;
}

servoMotor.write(Speed_Input);
/*
Serial.print(“Left_Stick_Output: “);
Serial.print(Left_Stick_Output);
Serial.print(“\t”);
Serial.print(Speed_Input);
Serial.print(“\t”);
Serial.println();
*/
}
else if (Xbox.getButtonPress(L2))
{
Speed_Input = 90 + (Left_Stick_Output * Scale);
servoMotor.write(Speed_Input);
/*
Serial.print(“Right_Stick_Output: “);
Serial.print(Right_Stick_Output);
Serial.print(“\t”);
Serial.print(Speed_Input);
Serial.print(“\t”);
Serial.println();
*/
}
else
{
Speed_Input = 0;
servoMotor.write(Speed_Input);
}
delay(10);
}
else
{
Speed_Input = 0;
servoMotor.write(Speed_Input);
}
}