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 07-11-2009, 07:32 PM   #1981 (permalink)
EcoModding Lurker
 
Join Date: Jun 2009
Location: Isle of Man
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Hi Paul,
don't want to muddy your train of thoughts, but ..
While you're contemplating a different current sensor, perhaps consider the lm293 version of its associated comparator U8 as well.
The 393 is only rated down to zero degrees C and from what i've read in these posts it can get pretty cold stateside!

cheers Rob

  Reply With Quote
The Following User Says Thank You to magicsmoke For This Useful Post:
mpgmike (01-12-2022)
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 07-12-2009, 06:34 PM   #1982 (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
Hey TheSGC! If I can get your email, I can send you the most recent software. It's just in the middle of testing right now so I can find that stupid problem.

The LM393 is only good to 0 degC!? that's not good! Thank you, Rob!

TESTING RESULTS:

There is a problem with the hardware overcurrent trip circuit. The mosfet driver is getting disabled, but the micro is still putting out it's pwm. Now we are getting somewhere! The nice thing as far as quick fixes go, is on Ben's, Joe's, and Adrian's, if we really had to, we could just skip the overcurrent part of the circuit, and the software would be perfectly happy keeping the current low enough. I mean, the dang mosfets are rated for very short bursts of 130 amps EACH!

But I'll figure out what the crap is going on! Makes me mad. hehe.
__________________
kits and boards
  Reply With Quote
Old 07-12-2009, 07:42 PM   #1983 (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
Pin B2 isn't resetting the overcurrent event! I can manually reset the overcurrent event by connecting U5B, PIN 5 to ground. Man, we are getting close! I just love this.
__________________
kits and boards
  Reply With Quote
Old 07-12-2009, 08:00 PM   #1984 (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
PIN B2 isn't resetting the overcurrent event, because the delay isn't long enough! Be right back!
__________________
kits and boards
  Reply With Quote
Old 07-12-2009, 08:05 PM   #1985 (permalink)
Master EcoModder
 
Join Date: Nov 2008
Location: Massachusetts, USA
Posts: 442
Thanks: 1
Thanked 60 Times in 45 Posts
Quote:
Originally Posted by MPaulHolmes View Post
PIN B2 isn't resetting the overcurrent event, because the delay isn't long enough! Be right back!
Paul! I just got your e-mail and took a look through the code and was going to ask you to try using the same lines of code that you used to Initialize the pin to reset the current!

// Pulsing pin b2 low for a moment guarantees that the state of the flip flop in the hardware overcurrent
// shutdown circuit is known.
PORTB |= 0b00000100; // set pin b2 to 1.
Delay(5);
PORTB &= 0b11111011; // Set Pinb2 to 0.
Delay(5);
PORTB |= 0b00000100; // set it to 1.

That should guarantee the Reset in the NAND gates!
__________________
Civic EV http://2001-civic-ev.blogspot.com/
Solectria Force http://solectriaforce.blogspot.com/
  Reply With Quote
Old 07-12-2009, 08:13 PM   #1986 (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
Well, gosh dang it, let's try it!

BRB!
__________________
kits and boards
  Reply With Quote
Old 07-12-2009, 10:39 PM   #1987 (permalink)
Master EcoModder
 
Join Date: Nov 2008
Location: Massachusetts, USA
Posts: 442
Thanks: 1
Thanked 60 Times in 45 Posts
Quote:
Originally Posted by MPaulHolmes View Post
Well, gosh dang it, let's try it!

BRB!
Yeah try it!

Mixing Digital and Analog parts can be tricky, especially when the NAND gates are so much slower than the digital! Can't wait to hear how it went!
__________________
Civic EV http://2001-civic-ev.blogspot.com/
Solectria Force http://solectriaforce.blogspot.com/
  Reply With Quote
Old 07-12-2009, 11:00 PM   #1988 (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 problem is that Pin B2 can't be brought low. If I set it to 0, it just jumps around from about 2.5v and 5v. Something is keeping it high, even if the ATMega8 tries to make it go low.
__________________
kits and boards
  Reply With Quote
Old 07-13-2009, 12:26 AM   #1989 (permalink)
EcoModding Lurker
 
Join Date: Jul 2008
Location: Memphis, TN
Posts: 58

2010 Prius - '10 Toyota Prius IV
Last 3: 51.4 mpg (US)
Thanks: 0
Thanked 1 Time in 1 Post
Check that you are setting the DDRB pin to output and that your are not turning ont he internal pull-ups (have to look up where those get set, can't recall off the top of my head.

Jay
  Reply With Quote
Old 07-13-2009, 12:30 AM   #1990 (permalink)
EcoModding Lurker
 
Join Date: Jul 2008
Location: Memphis, TN
Posts: 58

2010 Prius - '10 Toyota Prius IV
Last 3: 51.4 mpg (US)
Thanks: 0
Thanked 1 Time in 1 Post
Switching Between Input and Output
When switching between tri-state ({DDxn, PORTxn} = 0b00) and output high ({DDxn, PORTxn}= 0b11), an intermediate state with either pull-up enabled {DDxn, PORTxn} = 0b01) or output low ({DDxn, PORTxn} = 0b10) must occur. Normally, the pull-up enabled state is fully acceptable, as a high-impedant environment will not notice the difference between a strong high driver and a pull-up. If this is not the case, the PUD bit in the MCUCR Register can be set to disable all pull-ups in all ports.
Switching between input with pull-up and output low generates the same problem. The user must use either the tri-state ({DDxn, PORTxn} = 0b00) or the output high state ({DDxn, PORTxn}= 0b10) as an intermediate step.

From a different datasheet but it might apply here too.

  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