View Single Post
Old 05-23-2009, 12:39 AM   #1357 (permalink)
NiHaoMike
Master EcoModder
 
Join Date: Sep 2008
Location: Texas
Posts: 632
Thanks: 0
Thanked 26 Times in 24 Posts
Quote:
Holy hanna montana!
At least you're not actually dealing with code for a Hannah Montana. The radically different architecture, the non-IEEE floating point handling, and lack of GCC support make programming that a bit of a pain. Hopefully Intel's Larrabee will perform at least as well and be easier to program...
Quote:
I want to try to implement some sort of perfect Kp and Ki seeking algorithm, so that the controller can LEARN it's motor.
What you're trying to do is APID (Adaptive Proportional Integral Derivative) control. A friend of mine (known as "fridge girl") is actually working on an APID controller for HVAC. She's using hardware that is considered pretty powerful by embedded system standards - a 266MHz RISC CPU (ARM), 32MB SDRAM, 8MB boot ROM + 512MB SSD, Ethernet, USB 2.0, CAN, and it runs Linux. From my understanding, it analyzes data from the past and uses it to change the PID variables for better control. The interesting part is that it does this over several different timescales - from a few minutes to a day or two. Then again, it depends on the periodic property of most HVAC applications. I highly doubt an EV will be very periodic. Best to stick to manual adjustment.
__________________
If America manages to eliminate obesity, we would save as much fuel as if every American were to stop driving for three days every year. To be slender like Tiffany Yep is to be a real hypermiler...

Allie Moore and I have a combined carbon footprint much smaller than that of one average American...
  Reply With Quote