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 04-13-2011, 01:01 PM   #4631 (permalink)
EcoModding Apprentice
 
Join Date: Oct 2009
Location: Jyvaskyla, Finland
Posts: 143

Golfwagen - '89 Volkswagen Golf mk2
90 day: 107.14 mpg (US)
Thanks: 47
Thanked 35 Times in 28 Posts
I asked exactly the same question few days ago. Paul said this one should be good:

Digi-Key - TLP227GAF-ND (Manufacturer - TLP227GA(F))

It's a bit more expensive, but not much.

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 04-15-2011, 10:57 AM   #4632 (permalink)
EcoModding Lurker
 
Join Date: Jan 2010
Location: Slovenija
Posts: 16
Thanks: 5
Thanked 2 Times in 2 Posts
Hello
Finally managed to start the construction of controller.
But I have a problem at the beginning. I hawe download the FW in the hex file from the adam's internet page. I hawe the ponyprog program and the stk200 programer. I hawe successfully put the program in the atmega8. But rs232 doesant work. I hawe no idea how to program procesors.
I m working on 500A motor controler

Can someone write a manual how to program the processor.

Thanks
  Reply With Quote
Old 04-15-2011, 11:12 AM   #4633 (permalink)
EV Connoisseur
 
Join Date: Aug 2010
Location: Amsterdam
Posts: 309
Thanks: 70
Thanked 109 Times in 90 Posts
Does the green led flash?
  Reply With Quote
Old 04-15-2011, 01:22 PM   #4634 (permalink)
EcoModding Lurker
 
Join Date: Jan 2010
Location: Slovenija
Posts: 16
Thanks: 5
Thanked 2 Times in 2 Posts
Yes it flash with 1Hz. But I hawe just put together only the rs232 part, temperature part, and potentiometer. I didn't conect the curent part.
For the load I just conect some LED.

The first time that I power on the circuit, the green LED was continuous on, and if I rotate the potentiometer the LED for the load was slowly lit. But when I disconect the power and put power back, from then no longer works.

Just flashing greed LED.

Sorry for my English, its not prfect, but I'm trying.
  Reply With Quote
Old 04-15-2011, 02:34 PM   #4635 (permalink)
EcoModding Apprentice
 
Join Date: Oct 2009
Location: Jyvaskyla, Finland
Posts: 143

Golfwagen - '89 Volkswagen Golf mk2
90 day: 107.14 mpg (US)
Thanks: 47
Thanked 35 Times in 28 Posts
Did you remember to set fuses while programming with PonyProg? I had similar problems as chip ran with its internal clock instead of external crystal giving clock signal. Be careful with fuse settings as you might render chip useless with some wrong options enabled.

I wrote down correct fuse settings for atmega168 when I programmed my chip for a first time. Now I can no longer find them. I should have posted them here right away.
  Reply With Quote
Old 04-15-2011, 02:35 PM   #4636 (permalink)
EV Connoisseur
 
Join Date: Aug 2010
Location: Amsterdam
Posts: 309
Thanks: 70
Thanked 109 Times in 90 Posts
1Hz flasing is too slow.. should be flashing faster.
The solution for this problem is a few pages back.. you can search for it.

As for the serial connection, are you sure you are using the right caps for the signal converter.. there are some differences between the chips and the BOM has listed different types.. The solution for this is also in the tread.. search for MAX232
  Reply With Quote
Old 04-15-2011, 02:43 PM   #4637 (permalink)
EV Connoisseur
 
Join Date: Aug 2010
Location: Amsterdam
Posts: 309
Thanks: 70
Thanked 109 Times in 90 Posts
Answer from PaulH I was referring to:

The default frequency of the chip is 1 MHz I think. But it should be 16 MHz. Make sure it's extended high low of F8 DC F7 when programming. The blinking light should be about 10 times per second, but since the chip is running 16 times slower, it blinks at about every 1.6 seconds.
  Reply With Quote
Old 04-16-2011, 10:53 AM   #4638 (permalink)
EcoModding Lurker
 
Join Date: Jan 2010
Location: Slovenija
Posts: 16
Thanks: 5
Thanked 2 Times in 2 Posts
hello
I don't hawe any option for the changing frequency. I hawe allredy build hex file, and I just flashing in the atmega8 with ponyprog program.

And if I tested some older FW, and the green LED is allveys OFF. No blinking.

What is the difrerence between the FW:
coug-nocrc-16k.hex
coug-unified-16k.hex

Last edited by teraamper; 04-16-2011 at 11:01 AM..
  Reply With Quote
Old 04-16-2011, 02:38 PM   #4639 (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'm not sure what software version you have, but 1.11b or later won't fit on the atmega8 I believe. You need the atmega168. And in ponyprog, the fuse bits shoud be:
extended high low = 08 dc f7, but in AVR Studio, it should be F8 DC F7. haha. Changing the fuse bits changes the frequency (and it changes other things too). You should transfer coug-unified-16k.hex in ponyprog. It has both the bootloader and the main program in one hex file.

HEY! I tested all 3 1000amp controllers on teh electric bike. haha. I need to test it in the car I guess, or just ship the dang things once I add the enclosures. Voltage monitoring works nicely. I added a variable that allows you to trim the voltage monitoring circuit so it will be perfectly accurate. They were all within a few volts before tuning it, but now it will be perfect. hurray! Also, it's just another programmable variable.

Also, the precharge circuit stops when the capacitors are full, so I did away with the precharge timer. Once dv/dt is less than 1 volt per second, and if the voltage is at least 24v (so it's not a shorted mosfet situation) and less than max_voltage, it closes the main contactor. max_voltage (default of 185v) is also programmable through the serial port. If the voltage just keeps climbing because some little stinker is trying to run a 300v pack, once the precharge gets past max_voltage, it opens the precharge relay, and freezes the controller, never closing the main contactor.
__________________
kits and boards
  Reply With Quote
The Following User Says Thank You to MPaulHolmes For This Useful Post:
teraamper (04-23-2011)
Old 04-16-2011, 11:55 PM   #4640 (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
Man, it took all day to get the automatic precharge working right. everything is good now. I need to make a video:



Those blue things are resistors that can handle huge amounts of energy:




__________________
kits and boards
  Reply With Quote
The Following User Says Thank You to MPaulHolmes For This Useful Post:
mpgmike (01-20-2022)
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 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