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

Now available from EcoModder: ScanGauge II fuel economy gauge.  Click for details.  

Reply  Post New Thread
Submit Tools LinkBack Thread Tools
Old 10-07-2009, 02:17 PM   #2391 (permalink)
Master EcoModder
 
jackbauer's Avatar
 
Join Date: Sep 2009
Location: Ireland
Posts: 559
Thanks: 18
Thanked 146 Times in 88 Posts
Programmer works. Managed to put some code together to flash an led (not exactly HAL9000 but hey its my first atmega program!).


(Support Ecomodder.com & get rid of these annoying ads!)      
 
  Reply With Quote
Old 10-07-2009, 02:22 PM   #2392 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Seattle, WA
Posts: 2,440

Michael's Electric Beetle - '71 Superbeetle 500000
Thanks: 306
Thanked 188 Times in 132 Posts
Good Job, Dave...

I'm going to try the software I sent you on a controller I just finished. I'll let you know what happens.
__________________
signature goes here.
  Reply With Quote
Old 10-07-2009, 05:47 PM   #2393 (permalink)
EcoModding Lurker
 
Join Date: Jul 2009
Location: Vallejo,CA
Posts: 41

49state 4door - '91 Metro 4 door
90 day: 59.31 mpg (US)

old blue - '91 Metro base CA
Thanks: 2
Thanked 3 Times in 3 Posts
Paul, I made a much smaller approx. 0.2 milliohm shunt, appropriate for installation in the controller. If it is placed in the bus that is nearest the ground potential of the controller board, the common mode voltage will be minimized. This is often the expensive part of an instrumentation amplifier. Analog Devices and Burr Brown both make appropriate devices.

The current terminals on this one are the bronze bolts and contacts from a Metro solenoid. With 1/2 inch wide strip, and the sense leads silver soldered 1 cm apart, this should work well, and maybe fit where the toroid and Hall device are now.
If we like this design, we'll need a source of bronze 5/16 x 1 1/4 capscrews.
Or just break up a bunch of old starter solenoids.
  Reply With Quote
Old 10-08-2009, 09:18 AM   #2394 (permalink)
EcoModding Lurker
 
Join Date: Nov 2008
Location: Georgia
Posts: 19
Thanks: 1
Thanked 4 Times in 3 Posts
Quote:
Originally Posted by bones007 View Post
I have a question about how the bootloader works. When you use the bootloader to re-program the microcontroller does your new code have to include the bootloader itself each time?
No. The bootloader is static.
Quote:
Or is the bootloader protected somehow such that you can upload a program with flaws, fix the program and upload again without screwing up the bootloader.
It depends. With some controllers you can mark an area of memory as unwritable. An external programmer is used to load the bootloader into that area and then the memory is protected. In that instance virtually nothing programmatic will cause the bootloader to be overwritten.

If that's no available, then the backup is to have the bootloader software check to see where the target memory is located. If it's in the bootloader, then the bootloader won't overwrite itself. But there's nothing to prevent a loaded program from overwriting the bootloader in that case.

The bottom line is that without hardware memory protection, there is a chance that the bootloader can be overwritten. But in my experience, the advantage of not having to have an external programmer makes it worth the risk.

ga2500ev
  Reply With Quote
Old 10-08-2009, 12:16 PM   #2395 (permalink)
Master EcoModder
 
jackbauer's Avatar
 
Join Date: Sep 2009
Location: Ireland
Posts: 559
Thanks: 18
Thanked 146 Times in 88 Posts
The following takes place between 4pm and 5pm:
  Reply With Quote
Old 10-08-2009, 11:40 PM   #2396 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Seattle, WA
Posts: 2,440

Michael's Electric Beetle - '71 Superbeetle 500000
Thanks: 306
Thanked 188 Times in 132 Posts
The nice thing about the bootloader is that there is a CRC checksum built into the program, so that it will verify the software before turn on each time.

Hey Jack! That's interesting that it's oscillating like that on turn off. Some drivers that are dedicated to IGBTs actually set the gate to like -10v or something like that when turning it off. Mosfets I think don't much like that, but IGBTs don't mind. You could also try the "diode in series with the gate resistor" in parallel with the other gate resistor to speed up turn off. I'm mostly just worried about that LEM.
__________________
signature goes here.
  Reply With Quote
Old 10-08-2009, 11:53 PM   #2397 (permalink)
EcoModding Apprentice
 
Join Date: May 2009
Location: Australia
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
The ringing at turn off may because it is switching to fast. It is also likely a source of electrical noise. Certainly worthy of investigation and research.
  Reply With Quote
Old 10-08-2009, 11:55 PM   #2398 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Seattle, WA
Posts: 2,440

Michael's Electric Beetle - '71 Superbeetle 500000
Thanks: 306
Thanked 188 Times in 132 Posts
If it's switching too fast, you can change R16 to maybe 4.7kOhm. I believe right now it's 6.8 kOhm. Or, you could increase R15 to 330 Ohm instead of 220 Ohm. Or make the gate resistors bigger. hehe.
__________________
signature goes here.

Last edited by MPaulHolmes; 10-09-2009 at 12:04 AM..
  Reply With Quote
Old 10-09-2009, 06:59 AM   #2399 (permalink)
EcoModding Lurker
 
Join Date: Jun 2009
Location: outskirts
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Firstly, kudos to all participants in this awsome project.
Secondly, as there has been some talk about along the way upgrade options, is it possible to bump up the current design into 192VDC nominal (for 48V x 4 subpacks charging), I think it has been mentioned by Paul that by mosfet/diode/caps direct replacement "only" it can go as high as 180V @ 750A. I'd say the amperage is not that important criteria as max. voltage in this regard, as long as it still hovers around ~100kW peak, e.g. 192V @ 550A, thanks for giving it some thought.
Open source controller kits - Page 2 - DIY Electric Car Forums

Last edited by Mesuge; 10-09-2009 at 07:07 AM..
  Reply With Quote
Old 10-09-2009, 07:21 AM   #2400 (permalink)
EcoModding Apprentice
 
Join Date: May 2009
Location: Australia
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
I suspect Jack's IGBTs will handle that comfortably. May have to review the capacitors though.


(Support Ecomodder.com & get rid of these annoying ads!)      
 
  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 672 02-10-2012 05:41 PM
Paul & Sabrina's Cheap EV Conversion MPaulHolmes Fossil Fuel Free 527 09-02-2011 03:35 PM
Three Dirt Cheap DIY Electric Cars - Part 5 SVOboy EcoModder Blog Discussion 0 12-12-2008 05:10 PM




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