Sunday, March 15, 2009

IHS EV Project (part 2)

Software and Code:

Arduino tutorial: I highly suggest you visit this site and spend a couple hours with the activities

Arduino Development Environment Setup:
  1. Head to Arduino's download page and get your favorite client (we are demonstrating the Mac OS X 0014 client below)
  2. Install/unzip
  3. Open the application (Vista users need to run the .bat file)
  4. RENAME the first tab to: ihsEVMain
  5. Create a new tab and name it: ihsEVMotor
  6. in ihsEVMain tab, paste in the code from ihsEVMain.txt
  7. in ihsEVMotor tab, paste in the code from ihsEVMotor.txt
  8. Click on the play button to verify the code
  9. If you see "Binary sketch size: 3756 bytes (of a 14336 byte maximum)", congratulations! If not you need to re-copy/paste the source code.
  10. Click on the save button to save your work. This is important to do often!
  11. Once the EV is hooked up via USB, you can upload the code
  12. HAVE FUN!
IHS EV Circuit here (pdf, quick and dirty Word mock-up)

Hope this helps and will aid in better understanding of the EV car concept in general. The code ihsEVMotor shouldn't be touched, and the only variables that we want to customize is in ihsEVMain. Those variables are int trackLength, and int rollingStop. Remember we not only want a perfect stop distance wise, we want the time of running to be precise also.

BONUS: This video is on the little LED lights counting down to launch, inspired by "The Dragster" in Cedar point. If you look closely, I first pressed the pushbutton on the Arduino micro-controller to reset the board. Then I pressed the pushbutton on the breadboard to start the EV. At the competition, a dowel rod should be used for the 2nd button. Enjoy!


No comments: