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!
__________________ As I watch the old man walk on the sidewalk below my window, I think "Some day old man, I will be like you. So why not give me your coat?" Then I go downstairs to get his coat, but he's gone. Hey, maybe he was Zorro.
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?
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!
__________________ As I watch the old man walk on the sidewalk below my window, I think "Some day old man, I will be like you. So why not give me your coat?" Then I go downstairs to get his coat, but he's gone. Hey, maybe he was Zorro.
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.
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.