Go Back   EcoModder Forum > EcoModding > Fossil Fuel Free > Open ReVolt: open source DC motor controller
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 02-03-2011, 12:41 PM   #4271 (permalink)
Master EcoModder
 
jackbauer's Avatar
 
Join Date: Sep 2009
Location: Ireland
Posts: 734
Thanks: 26
Thanked 304 Times in 171 Posts
yeh just bring any unused outputs to a pth hole.

__________________
Now, Cole, when you shift the gear and that little needle on the ammeter goes into the red and reads 2000 Amps, that's bad.
www.evbmw.com
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 02-03-2011, 02:29 PM   #4272 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,368
Thanked 1,202 Times in 765 Posts
I added an RC filter to 4 unused pins, along with a port hole for each. The C in the RC is just a 0603 capacitor that would go underneath the board.
__________________
kits and boards
  Reply With Quote
Old 02-03-2011, 02:49 PM   #4273 (permalink)
AC-DC enthusiast
 
mrbigh's Avatar
 
Join Date: Nov 2009
Location: Long Island, NY
Posts: 282

Dual-PWR PHEV - '04 Toyota Prius

Kopper - '79 Bradley Bradley GT-II
Thanks: 123
Thanked 54 Times in 37 Posts
Any hope for a "precharge resistor" small relay driver output on board?
__________________
. .. .. . .......
Prius Absolutum Dominium . ..........KOPPER
PHEV conversion since Dec 2006.. . .... .Future EV
. . . . . . . .CALCars # 27. . . . . . . . . . ..on the works now !!
. . . . . . . . . . . . . . . . .. . ........
  Reply With Quote
Old 02-03-2011, 05:12 PM   #4274 (permalink)
EcoModding Apprentice
 
Join Date: Nov 2010
Location: Annapolis
Posts: 159
Thanks: 0
Thanked 32 Times in 27 Posts
Quote:
Originally Posted by MPaulHolmes View Post
DJBecker! You are doing some SR experiments?! ya! I still really want to do that too.
Our initial plan was to do SR entirely under software control. To that end I wrote our firmware with OCR1B configured as the SR gate output.

For those that haven't looked at the details, the SR gate drive is not as simple as inverting the primary gate drive. There needs to be a "deadband' period between the gate drives to prevent both from being turned on at the same time. And you have to handle various edge cases correctly e.g. turn on/off and 1%/99% throttle. One illustrative case is when you drop to zero throttle. Initially there is positive freewheel current, which then reverses. If you leave the SR MOSFETs blindly turned on, you change to hard regenerative braking at the transition. So you have to monitor the motor current, waiting until the freewheel current drops to a low level before turning off the SR gate drive.

Our 'version 0' bench tests used a diode instead of a SR MOSFET to minimize risk. It also had no gate isolation. We might have had a semi-working configuration, but we couldn't really tell. Our Syscomp computer o-scope crashed just being in the same room and we had frequent USB disconnects to the controller itself. Between the 18V driver supply and no gate resistor, we must have been generating some serious broad-spectrum noise. (Along with some pretty hefty voltage spikes back into the controller board. It still runs, but now draws about 3x the current of a new one. Doh!)

The next step was to rework our gate driver board with an optoisolator and gate drive resistors. The first round used a standard 2501 optoisolator. This immediately raised a design issue for SR gate drive: optoisolators are slow and asymmetrical. This one took well over a microsecond to turn on. Worse, the turn-on and turn-off times were different, and varied with temperature, voltage and pulse width.

That's not a problem with single gate drive and feedback. If the gate pulses are narrowed or widened by the isolation circuit, the feedback loop adjusts. But it's a major problem when you need to avoid overlap or a long gap with both sides turned off.

Hoping to improve the speed, we ordered the same 'high speed' optoisolator that Cougar uses. The change created its own problems as we belatedly discovered gate drive signal ringing that we didn't have with the 2501. The fix was to increase both the drive and sense current e.g. change from a 470ohm to 220ohm drive resistor. (No, it wasn't that easy to find and fix. "Belatedly" means "after we added to the exploded parts bin". Only after did I read that the Cougar 2d board made a similar change, from 330 to 220 ohms.)

Even with the supposedly faster optoisolator, I still wasn't comfortable with the signal delay and delay symmetry. So we explored other options. The two current contenders are using a Si8233 isolating gate driver, or using a IR11672AS SmartRectifier driver.

Both are surface mount parts, and thus pose a challenge for putting in a kit for other people. Other than that, they are both great parts.

The Si8233 has both dual isolation and dual gate drivers in one package. It's far faster than an optoisolator, requires fewer external parts, is easier to design with, and shouldn't degrade in performance over time. It also enforces a minimum dead time between the two gate drivers -- a useful guard against software bugs. It's down-side is that it's rated at only 4 amps per driver, which might be a little weak for the IXFX230N20T power stage we are planning to build later this year.

The IR11672 takes a entirely different approach, changing from software to hardware SR. It's a stand-alone chip that generates the SR gate drive by monitoring the voltage on the MOSFET pins. It doesn't need software support, a controller output pin or an isolation stage. Nor does it need to be tuned for different isolator delays, turn-on speeds or motor current L/R time constants. Best of all, it might be usable as a drop-in efficiency improvement for existing Cougar controllers.

There are a bunch of other similar SR controller chips, but the IR chip looks the best to me. Unless most others, it directly handles the full voltage. Alternative chips require a bunch of external components to clamp the sensed voltage without degrading the sensitivity or speed too much.

Last edited by DJBecker; 02-03-2011 at 06:14 PM..
  Reply With Quote
Old 02-03-2011, 07:14 PM   #4275 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,368
Thanked 1,202 Times in 765 Posts
Ya, using 330 Ohm in, 3kOhm out on the hcpl4504 make the controller turn in to a 70kW AM radio noise transmitter. hahaha. But the hcpl4506 works better. Better current transfer ratio. The schematic resistor values were never updated. One reason I like the dspic is that it has programmable dead time and the pwm pins can run in complementary mode (up to 8 pwm channels depending on which one you use). It also has some protection details for complementary output mode on the boundary issues, like when one is of less pwm duty than the dead time and stuff like that.
__________________
kits and boards
  Reply With Quote
Old 02-04-2011, 05:35 AM   #4276 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,368
Thanked 1,202 Times in 765 Posts
Does anyone know how to change the video mode in Linux?! I changed it a couple months ago, and my only build environment is in Linux. Now I can't read anything, because it saved the setting when I turned off the computer. The ironic thing is, when I looked on all the Linux and Ubuntu forums about how to fix the problem, mostly all I saw was comments about how stupid Windows was. Well, I'm typing in a video mode in windows that actually works right now, and I didn't have to recompile a kernel to do it. If I can't get that figured out, I'll have to switch it back to a dspic.
__________________
kits and boards
  Reply With Quote
Old 02-04-2011, 08:43 AM   #4277 (permalink)
Master EcoModder
 
Join Date: Nov 2008
Location: 18603, USA
Posts: 759

The Crimson Crawler - '04 Hyundai Elantra GLS
90 day: 36.71 mpg (US)
Thanks: 221
Thanked 60 Times in 45 Posts
HowTo: Set Linux video modes - InfoDabble
  Reply With Quote
Old 02-04-2011, 11:44 AM   #4278 (permalink)
EcoModding Lurker
 
Join Date: Feb 2011
Location: arizona
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Paul,

I've been looking/working with the OSMC (open source motor controller) for my mothers mobility scooter.... and I need a controller circuit that will take the analog signals and convert to PWM that OSMC will understand. it looks like the controller circuit you are using (with the programmable circuit) would be perfect for this task....

were you able to "break it out" into the modular design that you wanted? also do you have a circuit or board for just this part?

as well I'm new to this forum... but you can expect me to purchase a controller from you in the future.... because I LOVE THIS!!! my EV will work GREAT!

thanks for your information
  Reply With Quote
Old 02-04-2011, 01:05 PM   #4279 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,368
Thanked 1,202 Times in 765 Posts
Hi Short circuit! Number 5 is alive!!!!!

You need analog signals converted to pwm? Like a throttle converted to pwm? What's the voltage on the scooter? You could probably just use something like a 7805 if the voltage is less than 35v, and power the micro with that. IT could be really really cheaply done.
__________________
kits and boards
  Reply With Quote
Old 02-04-2011, 02:56 PM   #4280 (permalink)
EV Connoisseur
 
Join Date: Aug 2010
Location: Amsterdam
Posts: 309
Thanks: 70
Thanked 109 Times in 90 Posts
Yes yes..

I've got my controller board working... I think.
On power the green and the yellow led come on.. If I disconnect the LEM or open the throttle on power up the yellow led blinks. I know from previous post that's a good thing.

When I connect my scope and give a little throttle I see the PWM slowly automatically increasing to full throttle. I guess that is because I haven't got a powerboard or motor connected and no current is measured.

Is this expected behaviour on a standalone controller board?

Thanks.

  Reply With Quote
Reply  Post New Thread


Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paul and Sabrina's Cheap 3 Phase Inverter (AC Controller) with Field Oriented Control MPaulHolmes Fossil Fuel Free 3480 05-04-2022 05:43 PM
Paul & Sabrina's Cheap EV Conversion MPaulHolmes Fossil Fuel Free 542 11-12-2016 09:09 PM
Three Dirt Cheap DIY Electric Cars - Part 5 SVOboy EcoModder Blog Discussion 0 12-12-2008 04:10 PM



Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com