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 05-05-2011, 02:34 AM   #4711 (permalink)
EcoModding Lurker
 
Join Date: Mar 2009
Location: Ohio
Posts: 16
Thanks: 8
Thanked 15 Times in 6 Posts
Quote:
Originally Posted by harlequin2 View Post
Sorry, but my Cougar is i nstalled and running in my car so I can't check anything. All I can suggest is that you stick in some debugging code such as pick a point early on in the program and turn on (or off) a led or something so you can see if the program gets that far. If you can get that to happen, then keep moving your code along to where it doesn't work.
Its not a bad idea to write a little subroutine to turn a led on, wait a bit and turn it off, then you can just put in a call at various points.
That's about all I can suggest, maybe someone else has a setup closer to what you are doing and can help?
For what it is worth PonyProg can be downloaded here PonyProg - Serial device programmer and the serial interface is just a converter from RS232 to the Atmel ISP logic levels. It'll work with just about any hex file but needs a COM port - doesn't work with USB.

Just an afterthought: if your own code works OK and you say it does, it must be something in the Cougar code that is not compatible with your setup, so the debugging idea will be the way to go.
Thanks for the advice. I'm trying to go step by step, but I can't light an LED even at the start of main. I might have to go with PonyProg, but I'm trying to figure out my setup.

Paul, I don't think it's your code. I think it's something with my setup. I'm still digging...

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 05-05-2011, 02:57 AM   #4712 (permalink)
EcoModder
 
Join Date: Mar 2010
Location: New Zealand
Posts: 181
Thanks: 0
Thanked 33 Times in 20 Posts
If you make the first line "flash a led" and it doesn't work, then yes, you do have a problem.
__________________
Sometimes I sits and thinks and sometimes I just sits.
  Reply With Quote
Old 05-05-2011, 10:49 AM   #4713 (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,362
Thanked 1,202 Times in 765 Posts
When Fran did the rewrite of the original software, he used a Linux build environment. I don't think I've ever successfully tried to compile the code in AVR Studio. Part of the issue was that AVR Studio had a problem with putting the hex file in a different part of memory than normal, because there was a bootloader. So, each time I make a code change, I log out of windows, log in to ubuntu linux, make changes, compile them, send hex files to my email, and log back out and try them.
__________________
kits and boards
  Reply With Quote
Old 05-05-2011, 12:21 PM   #4714 (permalink)
Master EcoModder
 
Join Date: Apr 2009
Location: Charlton MA, USA
Posts: 463

EVVette - '71 Chevy Corvette Coupe
Thanks: 31
Thanked 183 Times in 94 Posts
Quote:
Originally Posted by MPaulHolmes View Post
When Fran did the rewrite of the original software, he used a Linux build environment. I don't think I've ever successfully tried to compile the code in AVR Studio. Part of the issue was that AVR Studio had a problem with putting the hex file in a different part of memory than normal, because there was a bootloader. So, each time I make a code change, I log out of windows, log in to ubuntu linux, make changes, compile them, send hex files to my email, and log back out and try them.
I have had the same problem. I have never been able to successfully compile the firmware using avrstudio.

Its kinda a bummer because the tools in avrstudio are really nice once you figure them out. Like the simulator.

-Adam
__________________
www.EVVette.com - 1971 Corvette Coupe Conversion to all Electric!
www.AdamBrunette.com - Machining, CNC, Robotics and Electronics.

You can download RTD Explorer for the Cougar controllers at www.EVVette.com
  Reply With Quote
Old 05-05-2011, 03:47 PM   #4715 (permalink)
Master EcoModder
 
jackbauer's Avatar
 
Join Date: Sep 2009
Location: Ireland
Posts: 734
Thanks: 26
Thanked 304 Times in 171 Posts
Now have the bmw e46 hall effect accelerator pedal up and running thanks to Paul and yet another mod to the software on my behalf!

I've also modded a standard rev c pcb to output a 5v inverted pwm in order to drive the igbt driver circuits for the liquid cooled monster. Pics attached show most of the mods. Anyone wants details just ask.
Attached Thumbnails
Click image for larger version

Name:	14.jpg
Views:	158
Size:	110.7 KB
ID:	8305   Click image for larger version

Name:	15.jpg
Views:	151
Size:	123.3 KB
ID:	8306   Click image for larger version

Name:	16.jpg
Views:	140
Size:	124.5 KB
ID:	8307  
__________________
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
The Following 2 Users Say Thank You to jackbauer For This Useful Post:
ace_bridger (03-27-2012), BadDog98 (05-09-2011)
Old 05-06-2011, 09:34 PM   #4716 (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,362
Thanked 1,202 Times in 765 Posts
24 hours of LeMons

The first ever electric car in the 24 hours of LeMons is going to use the Open Revolt controller! hurray! The rules are that the whole car has to cost less than $500, so I built him a controller for the cost of the parts. The chief editor of Motor Trend is going to personally inspect the car! "Wow, those end caps for the controller look like crap" Oh please please please... don't blow up, little controller. I'm not a professional controller assembler. He's using the 500amp version.
Here's some info about it:
24 Hours of Lemons - Home Page

24 Hours of LeMons Race: PM Hits the Endurance Track in a $500 VW - Popular Mechanics

I think he's going to race in August, but he's getting the car ready now. Here's his build thread:
The 24 Hours of LeMons Forums / Got the Go-ahead from HQ for my IoE idea
__________________
kits and boards
  Reply With Quote
Old 05-10-2011, 01:29 AM   #4717 (permalink)
EcoModding Lurker
 
BadDog98's Avatar
 
Join Date: Mar 2009
Location: South Carolina, USA
Posts: 15
Thanks: 4
Thanked 2 Times in 2 Posts
Details on the Mods to Drive the IGBT Modules.

Quote:
Originally Posted by jackbauer View Post


I've also modded a standard rev c pcb to output a 5v inverted pwm in order to drive the igbt driver circuits for the liquid cooled monster. Pics attached show most of the mods. Anyone wants details just ask.
Jack,
I would like details on your driving the IGBTs with the Rev2c board. I have finished my 2c controller board and would like to run IGBTs in the power section. I have 4 CM400DU-12F's that I picked up from Adam a while back. I think your familiar with the same modules. I'm not looking to build the LCM just yet (LiquidCooledMonster). I'm leaning closer to 500amps or so. It would be nice to push the voltage envelope a bit past the normal cougars 144volts.

How many amps are you expecting from your bike controller?

I've been lurking long enough I think its time I jump into the deep end with the rest of you guys.

Thanks, Mark
  Reply With Quote
Old 05-10-2011, 02:46 AM   #4718 (permalink)
EcoModding Lurker
 
Join Date: Mar 2010
Location: South Africa
Posts: 16

Tazzy - '02 Toyota Tazz Sport
90 day: 43 mpg (US)
Thanks: 5
Thanked 3 Times in 3 Posts
Quote:
Originally Posted by BadDog98 View Post
Jack,
I would like details on your driving the IGBTs with the Rev2c board.

Thanks, Mark
I need to say me too, Jack

Regards
Dawid
  Reply With Quote
Old 05-11-2011, 02:00 AM   #4719 (permalink)
EcoModding Lurker
 
Join Date: Feb 2009
Location: Regina, SK, Canada
Posts: 15
Thanks: 0
Thanked 3 Times in 3 Posts
Quote:
Originally Posted by MPaulHolmes View Post
When Fran did the rewrite of the original software, he used a Linux build environment. I don't think I've ever successfully tried to compile the code in AVR Studio. Part of the issue was that AVR Studio had a problem with putting the hex file in a different part of memory than normal, because there was a bootloader. So, each time I make a code change, I log out of windows, log in to ubuntu linux, make changes, compile them, send hex files to my email, and log back out and try them.
Grab yourself a copy of VMWare Player. It's free, and enables you to run any OS you like in a "Virtual Machine". So rather than having to reboot, you just switch windows and compile. It'll save you a LOT of time, I'm sure.
  Reply With Quote
The Following User Says Thank You to Anaerin For This Useful Post:
MPaulHolmes (05-11-2011)
Old 05-11-2011, 04:31 PM   #4720 (permalink)
Master EcoModder
 
jackbauer's Avatar
 
Join Date: Sep 2009
Location: Ireland
Posts: 734
Thanks: 26
Thanked 304 Times in 171 Posts
I hope to get the LCM up and running this weekend. I'll do some video explaining the mods. Nothing serious just some omitted components and a few jumpers. I would expect the bike controller to be able to handle brief 500amp accelerations. Then again if i push 500amps into those twin motors i'll likely have parted company with the bike and it'll be on its own!!

__________________
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
The Following User Says Thank You to jackbauer For This Useful Post:
DawidvC (05-12-2011)
Reply  Post New Thread




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 3431 05-04-2022 06:43 PM
Paul & Sabrina's Cheap EV Conversion MPaulHolmes Fossil Fuel Free 542 11-12-2016 10:09 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.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com