Auto Car

Nick Demmer, Joe Bechard, Allison McCarthy

Our project was to design a car that would be able to drive around and take pictures upon contact with something in front of it.

The program was designed so that the car would continue in a forward direction until contact with an object, where a picture would be taken, the car would back up, turn, and drive off. Each motion has a specific code written so that it will follow this pattern indefinitely.

Pictures of your device

Short video of your device working (post to YouTube or Google Video). You must describe the operation of the device and a brief overview of the code in your video.

int motor1 = 4; //declares the first pin for the motor int motor2 = 5; //declares the other pin for the motorint motorpmw = 9; // this is the pmw that will set how much battery power the motor is getting (speed)int motorpmw2 = 8;int motor3 = 7;int motor4 =3;int pushbutton = 6;

// When using hardware SPI, the SS pin MUST be set to an // output (even if not connected or used). If left as a // floating input w/SPI on, this can cause lockuppage.#if !defined(SOFTWARE_SPI)#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) if(chipSelect != 53) pinMode(53, OUTPUT); // SS on Mega#else if(chipSelect != 10) pinMode(10, OUTPUT); // SS on Uno, etc.#endif#endif

Serial.begin(9600); Serial.println("VC0706 Camera snapshot test");

// see if the card is present and can be initialized: if (!SD.begin(chipSelect)) { Serial.println("Card failed, or not present"); // don't do anything more: return; }

We have had problems involving the H bridge and memory card, which we overcame with help from our fantastically awesome teacher, Professor Dickie. We also can't get the right wheel or the camera to work. Joe's working on that now.

We would use blue tooth technology to control the car with a wii remote, and attach a laser pointer to the car. With enough donations, we may be able to create an Artificial intelligence to operate the car instead. It would be like terminator, except without the terminators.