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 06-03-2009, 01:21 AM   #1521 (permalink)
Moderate your Moderation.
 
Join Date: Nov 2008
Location: Troy, Pa.
Posts: 8,236

Herbie - '86 Golf Diesel
90 day: 51.89 mpg (US)
Thanks: 868
Thanked 294 Times in 248 Posts
Quote:
Originally Posted by Intrigued View Post
29... 28... 27...

You guys may as well be working on HAL for all the help I could be. I guess I'll just stay up in the nosebleed section and watch with my binocs...
Hardware Abstraction Layer?... Just repair install... and then you're fine.

Unless you're talking about that computer in that one movie...


(Support Ecomodder.com & get rid of these annoying ads!)      
 
__________________
"żʞɐǝɹɟ ɐ ǝɹ,noʎ uǝɥʍ 'ʇı ʇ,usı 'ʎlǝuol s,ʇı"


I'd like to think that people might open their eyes at some point... instead, I find it more and more likely that I'll just close mine.

-- Author kept secret.

Je ne veux pas d'une meilleure vie. Je veux ętre heureux avec celle que j'ai maintenant.
(I do not want a better life. I want to be happy with the one I have now.)



Last edited by Christ; 06-03-2009 at 01:32 AM..
  Reply With Quote
Old 06-03-2009, 07:31 AM   #1522 (permalink)
EcoModding Lurker
 
Join Date: Jan 2009
Location: Russia
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
I've sugest you great tool - USB Logic Analyzer

SparkFun Electronics - USB Logic Analyzer

Check out the video of the Logic Analyzer in action
Logic Videos
  Reply With Quote
Old 06-03-2009, 09:51 AM   #1523 (permalink)
Losing the MISinformation
 
Intrigued's Avatar
 
Join Date: Oct 2008
Location: Southern Missouri
Posts: 389

Quad Cam - '00 Intrigue GX
Last 3: 25.94 mpg (US)
Thanks: 13
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by Christ View Post
Hardware Abstraction Layer?... Just repair install... and then you're fine.

Unless you're talking about that computer in that one movie...
2001: A Space Odyssey

HAL 9000 (Heuristically programmed ALgorithmic Computer)

NOT a one-letter shift from IBM...

Became operational on Jan 12, 1992 (1997 in the book)

One of the greatest movies of all time... until that last 10 minutes or so...

Can read your thoughts through your computer, and is glad you edited your remark...
Attached Images
File Type: jpg Hal-9000.jpg (3.1 KB, 14 views)
__________________


The brake pedal is my enemy. The brake pedal is my enemy. The brake pedal...
  Reply With Quote
Old 06-03-2009, 12:19 PM   #1524 (permalink)
Master EcoModder
 
Join Date: Jun 2008
Location: London, Ontario
Posts: 1,096

2k2Prot5 - '02 Protege5
90 day: 33.82 mpg (US)
Thanks: 0
Thanked 5 Times in 3 Posts
Quote:
Originally Posted by motor_control View Post
I've sugest you great tool - USB Logic Analyzer

SparkFun Electronics - USB Logic Analyzer

Check out the video of the Logic Analyzer in action
Logic Videos
I have used this and it is spectacular. However, it is useless for analog stuff. It is best suited to digital timing analysis and logging communication over I2C, SPI, UART, etc, or watching parallel busses pass information.

Paul could use it to watch the UART, the PWM output from the cpu (NOT THE DRIVER) and the hardware current limit. That's about all.
  Reply With Quote
Old 06-03-2009, 01:30 PM   #1525 (permalink)
EcoModding Lurker
 
slurryguy's Avatar
 
Join Date: Feb 2009
Location: MO
Posts: 37
Thanks: 0
Thanked 2 Times in 2 Posts
When will one of you electronics savants come up with an ILLOGIC ANALYZER and an interface to attach it to the female brain?

I have so many questions that such a device might help answer. So much that I don't understand. I know I'm not the only guy that would appreciate more precise understanding about how women think than the Magic 8 Ball can provide.
  Reply With Quote
Old 06-03-2009, 01:31 PM   #1526 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ˙
Posts: 5,024

pimp mobile - '81 gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Golf TDI
90 day: 53.56 mpg (US)
Thanks: 153
Thanked 256 Times in 202 Posts
Quote:
Originally Posted by MazdaMatt View Post
Paul could use it to watch the UART
Well, he *could*, though I would strongly suggest a serial terminal program or serial device for watching the UART
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote
Old 06-03-2009, 01:38 PM   #1527 (permalink)
Master EcoModder
 
Join Date: Jun 2008
Location: London, Ontario
Posts: 1,096

2k2Prot5 - '02 Protege5
90 day: 33.82 mpg (US)
Thanks: 0
Thanked 5 Times in 3 Posts
Yes, he could - unless it wasn't working correctly. Then he'd need the logic analyzer or a scope to find out why. The logic analyzer has a nice feature called "automatic baud rate detection" that can give you a quick answer to dead com if you've made a simple divider mistake.

I have also used that personally to solve a UART problem - but it was between two electronic devices, rather than a board and a computer. There was a problem with the message encapsulation resulting in ignored messages and this tool quickly found that issue for me.
  Reply With Quote
Old 06-03-2009, 02:22 PM   #1528 (permalink)
EcoModding Lurker
 
Wherewolf's Avatar
 
Join Date: Apr 2009
Location: Oryeegone
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Wink

Quote:
Originally Posted by slurryguy View Post
When will one of you electronics savants come up with an ILLOGIC ANALYZER and an interface to attach it to the female brain?

I have so many questions that such a device might help answer. So much that I don't understand. I know I'm not the only guy that would appreciate more precise understanding about how women think than the Magic 8 Ball can provide.
You're facing a hopeless situation there, my friend.....I've determined that the female brain is wired such that 2 + 2 = 32.5 + "that time 6 years ago, when we were at that party and you humiliated me in front of my friends when you made that rude comment about the size of my butt during my pregnancy....you a-hole!"
See how simple it is? The term "logic" simply does not apply...

Just kidding ladies....I mean no offense to any female ecomodders out there. If you're an ecomodder your brains are obviously wired correctly.

Sorry - off thread....
Wherewolf
  Reply With Quote
Old 06-03-2009, 08:33 PM   #1529 (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
You guys are going to get me into trouble! Sabrina reads this sometimes! hahaha!

I'm ordering the parts for the power sections for the 3 controllers probably tomorrow. I just have to wait until the remaining money gets into the bank account from Paypal. Man, I sure love Paypal, and I'm not being sarcastic at all. The parts won't be here until after June 22, though! haha! Stupid Digikey is almost out of the mosfets again. They only have 11, and I need to order 25 to get the cheaper price, so they will get more on June 22.

Hey, the control boards should be to the engineer by tomorrow! ya!
__________________
signature goes here.

Last edited by MPaulHolmes; 06-03-2009 at 09:18 PM..
  Reply With Quote
Old 06-04-2009, 01:17 AM   #1530 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ˙
Posts: 5,024

pimp mobile - '81 gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Golf TDI
90 day: 53.56 mpg (US)
Thanks: 153
Thanked 256 Times in 202 Posts
Paul, not sure if this is working yet, couple comments on the conversion:
/trunk/HighVoltageControllerRefactoredISRReorganized.c - Open ReVolt - Trac

Sorry, it's just an optimization though.

Calling ReadThrottle and ReadCurrent in ISR (ADC_vect) adds a bit of code to that interrupt handler. Might just update the raw current and throttlePos variables directly (like temperature) and have a void ReadThrottle(int16_t) that you pass tmpThrottle to after making a copy of it, but outside the cli block in main. Same for ReadCurrent. Can inline them too. Might call them ConvertThrottle and ConvertCurrent instead too.


(Support Ecomodder.com & get rid of these annoying ads!)      
 
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  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