04-10-2009, 01:51 PM
|
#841 (permalink)
|
PaulH
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
|
Ya, That's right! I have a blue star next to my name! I'm a member now! Yahoo! An awesome guy, Andy, secretly payed for it! But it's not a secret now! haha! Now I get really really cool stuff coming in the mail too.
I know how to measure the same point on the dang PWM wave each time now! ya! It's working in the simulator (not the simunow, but the simulator). I should get this dang blasted software working good, and see how it works on my controller that's almost done, and then ship the dang blasted software over to Ben! Soon, those days of jittery startup will be a thing that only our great grandparents will remember.
EDIT: I just want to re-iterate that it works! ya! The software works, and it had better lead to some really good results, or I'm going to get real mad! haha!
|
|
|
Today
|
|
|
Other popular topics in this forum...
|
|
|
04-10-2009, 04:40 PM
|
#842 (permalink)
|
Master EcoModder
Join Date: Jun 2008
Location: London, Ontario
Posts: 1,096
Thanks: 0
Thanked 17 Times in 14 Posts
|
Quote:
Originally Posted by MPaulHolmes
I hadn't thought of that!
|
That's what We, the Peanut Gallery, are for
Now you can't just say things like "I got it working" and not tell us how... What method did you use to align the current sensor read to the PWM rising edge + delay?
|
|
|
04-10-2009, 04:58 PM
|
#843 (permalink)
|
PaulH
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
|
I changed from Fast PWM mode to Phase correct PWM mode, which will have a maximum frequency of 8 KHz at 8 MHz, but... The 16.000 MHz crystals are on their way from China via air mail right as we speak (type). That will allow for a current sample rate of 16 KHz at 16 MHz clock frequency.
I was using the wrong ISR before. Now, I'm using the one that gets called at the start of each new rising edge (16000 rising edges per second), do a tiny itsy bitsy delay (which puts me away from the rising edge), which the ugly, yeller, monkeyturd compiler was optimizing away!!! until I made my delay variable
"volatile int m"
instead of
"int m", which now allows me to turn up the optimizing all the way and is giving me faster code, so I can fit all the stuff I need to inside that interrupt, with plenty of time to spare before the next rising edge.
Phew!
|
|
|
04-10-2009, 05:11 PM
|
#844 (permalink)
|
EV Converter
Join Date: Mar 2009
Location: Saugerties, NY
Posts: 51
Thanks: 0
Thanked 1 Time in 1 Post
|
Quote:
Originally Posted by MazdaMatt
That's why you gotta build it right
You can leave the diodes in there AND use synch rec mosfets
|
If the Mosfets go they will likely die shorted. The diodes won't help that condition.
|
|
|
04-10-2009, 05:15 PM
|
#845 (permalink)
|
EV Converter
Join Date: Mar 2009
Location: Saugerties, NY
Posts: 51
Thanks: 0
Thanked 1 Time in 1 Post
|
Excellent work Paul!
|
|
|
04-10-2009, 06:19 PM
|
#846 (permalink)
|
EV test pilot
Join Date: Jan 2008
Location: Oconomowoc, WI, USA
Posts: 4,435
Thanks: 17
Thanked 663 Times in 388 Posts
|
Quote:
Originally Posted by Roger Heuckeroth
If the Mosfets go they will likely die shorted.
|
I can personally attest to the fact that this controller will die full on.
The good news.... I'm fine.
The bad news? Paul, I fried your controller. Please send the repair kit.
I just got home from a 40 minute walk from where the car died to my house. I have to grab my truck tow bar and go pick the car up. After that, I will do an autopsy.
PS: The car CAN go faster than 65 mph!
|
|
|
04-10-2009, 06:34 PM
|
#847 (permalink)
|
Batman Junior
Join Date: Nov 2007
Location: 1000 Islands, Ontario, Canada
Posts: 22,534
Thanks: 4,082
Thanked 6,979 Times in 3,614 Posts
|
Oh no, Mister Bill!
|
|
|
04-10-2009, 06:42 PM
|
#848 (permalink)
|
EcoModder Student
Join Date: Nov 2008
Location: Youngsville, NC
Posts: 117
Thanks: 11
Thanked 14 Times in 13 Posts
|
Sorry you had to walk so far Ben. Now put on your CSI hat, take plenty of pictures and report back to master Paul once he regains consciousness.
Paul.......Paul......are you all right Paul? Say something..........
__________________
1995 BMW 318i EV in the making
|
|
|
04-10-2009, 07:24 PM
|
#849 (permalink)
|
EV test pilot
Join Date: Jan 2008
Location: Oconomowoc, WI, USA
Posts: 4,435
Thanks: 17
Thanked 663 Times in 388 Posts
|
What are the big black cylinders in the power section? Are those capacitors?
The one all the way on the end closest to the B- power connection is blown out.
I think my precharge resistor circuit may have fried out. Isn't that the issue with NOT having a precharge resistor setup? It puts power into the capacitors too fast?
I'll take a few photos. First, I have to figure out how to take the plexiglass case off. It's hard to photograph through the "magic smoke" that got let out.
|
|
|
04-10-2009, 07:26 PM
|
#850 (permalink)
|
Batman Junior
Join Date: Nov 2007
Location: 1000 Islands, Ontario, Canada
Posts: 22,534
Thanks: 4,082
Thanked 6,979 Times in 3,614 Posts
|
Quote:
Originally Posted by bennelson
What are the big black cylinders in the power section? Are those capacitors?
|
Those are the uranium pre-processors.
You should be fine as long as you weren't breathing in around the time it blew up.
|
|
|
|