Thursday, March 19, 2009

Interesting find...

My Illustrator class back at Penn State...

Before...
After...
Like it?

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!


Saturday, March 14, 2009

IHS EV Project


This is done to help Indiana High School, my brother and his friends. IASD has served me very well and I think this is a good way to give back a little. IHS lacks a thorough electrical, micro architectural classes; the closest they have is Computer Science, which is good, but not entirely great for building circuitries required for this EV. Thank you Mrs. Baker for your hard work.

Lets get to the topic. This is the package sent to Wasil on Wednesday, March 14th, 2009.


The box contains a complete vehicle, but disassembled. The vehicle body was made with parts around the house including aluminum holiday container (previously contained assorted nuts), and couple smaller aluminum boxes that contained a wallet, and a B.U.M. watch i got back in 1997 (or so). The vehicle was heavy, about 3 lbs, but functional nevertheless.

The reason I did a prototype was 1) I needed to know what kind of logic is the most effective and 2) Something for the team to have as a backup plan (risk mitigation). The reason for 1) is that even though on paper and in pictures the car works perfectly, it doesn't mean that it will when it comes to realization.


For example, I planned to use 2xC batteries for the motor and the other 2xAA batteries for the Arduino microcontroller. It turns out that the H-bridge that I was using takes in 3V but outputs less than desired voltage to the motor (1.9V under load). The H-bridge spec calls for 4.5V minimum motor supply input for a good output. I guess the H-bridge logic for the motors has several resistances that lowers the overall output. So to fix this I had to use 3xAA (4.5V) for the motor and 1xAA for the microcontroller. I couldn't use the C batteries because I only have a battery case for 2xC, and 3xCs would be heavier than I would have liked. I also had to jerry-rigged the battery holders to fit 3xAAs together (picture below).


Be careful with the batteries. One wrong side, or connection, can be detrimental. So look twice before plugging things in, and if you're not sure look at these pictures. I also incorporated a switch to turn on, and off the batteries (picture below).


Note: For the microcontroller battery (1xAA), if you're not running the vehicle on the track, please take out the battery. Since it has a built in 5V regulator, it will drain the battery regardless of usage (picture below). This battery also is modded to only take ONE battery at one side. Failure to do so will burn your fingers off (true story!).


For testing on the computer, the USB cable provides sufficient power to the microcontroller. To test out the motor with USB, you will still need the motor supply (3xAA).


Power connections:

5V IN IC (Red wire from 1xAA battery) connects to the 'Vin' port on the microcontroller (picture below).


4.5V Supply (Red wire from 3xAA batteries) connects to the #8 leg VCC2 of the SN754110 IC on the breadboard. It does NOT go anywhere else (pictures below). Spec sheet here (pdf).




Ground (Black wire from the switch) connects to the grounding strip on either side of the bread board where most black wires are hooked up (picture highlight below).

This concludes the introduction to the EV, and how to connect them. Make sure the switch is OFF before connecting/disconnecting any wires! Stay tune for an update on the software side of things. In the meanwhile, check out the video below.