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 10-07-2009, 01:17 PM   #2381 (permalink)
Master EcoModder
 
jackbauer's Avatar
 
Join Date: Sep 2009
Location: Ireland
Posts: 734
Thanks: 26
Thanked 304 Times in 171 Posts
Programmer works. Managed to put some code together to flash an led (not exactly HAL9000 but hey its my first atmega program!).

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 10-07-2009, 01:22 PM   #2382 (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
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.
__________________
kits and boards
  Reply With Quote
Old 10-07-2009, 04:47 PM   #2383 (permalink)
EcoModding Lurker
 
Join Date: Jul 2009
Location: Vallejo,CA
Posts: 43

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

old blue - '91 Geo Metro base CA
Thanks: 2
Thanked 4 Times in 4 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, 08:18 AM   #2384 (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, 11:16 AM   #2385 (permalink)
Master EcoModder
 
jackbauer's Avatar
 
Join Date: Sep 2009
Location: Ireland
Posts: 734
Thanks: 26
Thanked 304 Times in 171 Posts
The following takes place between 4pm and 5pm:
  Reply With Quote
Old 10-08-2009, 10:40 PM   #2386 (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
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.
__________________
kits and boards
  Reply With Quote
Old 10-08-2009, 10:53 PM   #2387 (permalink)
EcoModding Apprentice
 
Join Date: May 2009
Location: Australia
Posts: 109
Thanks: 0
Thanked 2 Times in 2 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, 10:55 PM   #2388 (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
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.
__________________
kits and boards

Last edited by MPaulHolmes; 10-08-2009 at 11:04 PM..
  Reply With Quote
Old 10-09-2009, 05:59 AM   #2389 (permalink)
EcoModding Lurker
 
Join Date: Jun 2009
Location: outskirts
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
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 06:07 AM..
  Reply With Quote
Old 10-09-2009, 06:21 AM   #2390 (permalink)
EcoModding Apprentice
 
Join Date: May 2009
Location: Australia
Posts: 109
Thanks: 0
Thanked 2 Times in 2 Posts
I suspect Jack's IGBTs will handle that comfortably. May have to review the capacitors though.

  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