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-16-2009, 05:51 PM   #2021 (permalink)
Master EcoModder
 
Join Date: Sep 2008
Location: Texas
Posts: 632
Thanks: 0
Thanked 26 Times in 24 Posts
Use an instrumentation amplifier to amplify the small voltage coming off the shunt.

__________________
If America manages to eliminate obesity, we would save as much fuel as if every American were to stop driving for three days every year. To be slender like Tiffany Yep is to be a real hypermiler...

Allie Moore and I have a combined carbon footprint much smaller than that of one average American...
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 07-16-2009, 06:06 PM   #2022 (permalink)
EcoModding Lurker
 
Join Date: Jun 2009
Location: Isle of Man
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Hi blackpanther-st, have a look at alliedelec.com (we here know them as RS). They do one of the LEM range .. HTFS 800-P/SP2 which is an 800A nominal, +/- 1200A beast for USD23.83

Rob
  Reply With Quote
Old 07-16-2009, 08:40 PM   #2023 (permalink)
Master EcoModder
 
Join Date: Nov 2008
Location: Massachusetts, USA
Posts: 442
Thanks: 1
Thanked 60 Times in 45 Posts
How's is Ben's controller coming and when can we expect some dirty driving with it?

I am itching to see some videos of these beta units getting some road time, and I am interested in getting data on Hill climbs and highway driving.
__________________
Civic EV http://2001-civic-ev.blogspot.com/
Solectria Force http://solectriaforce.blogspot.com/
  Reply With Quote
Old 07-16-2009, 11:29 PM   #2024 (permalink)
EcoModding Lurker
 
Join Date: Apr 2009
Location: Maine
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
Thanks both NiHaoMike and NiHaoMike for your suggestions. I had thought of using an op amp, but had wondered about about it's accuracy going from 75mv to something that would trigger a low volt zenner or reference diode, but I suppose they are made to be exceptionally linear.

That HTFS 800-P/SP2 looks really good for the price. A few complications I may have to resolve to use it, but I think it may be the answer I was looking for.

My buss bars are 3/4” square so I will have to round the corners a bit to get the 22mm aperture to fit over. I may not have to amplify if I use a 1.2v reference diode. My aim here is not to do throttle to current measurements but just a simple but quick and sure fire hardware level current limit and protection.
__________________
"Experience is something you get right after you need it !"

http://www.diyelectriccar.com/garage/cars/143

http://www.diyelectriccar.com/forums...tor-32083.html
  Reply With Quote
Old 07-17-2009, 01:24 AM   #2025 (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
I FINALLY tested Ben's controller with the latchup problem fixed. I just did a sort of quick and dirty program and emailed it to Joe for him to try his out, and to test Ben's. It was awesome! I floored it from a stop, and I could hear the frequency change just a bit when it hit the hardware overcurrent shutoff point, because in this version, I turn off the mosfets for 4 cycles if an overcurrent trip happens. It had a bit of a jerk at 0 rpm, but that's really easy to fix. Most of my throttle code has not had any jerk at 0 rpm. I just did a quick and dirty throttle control that I knew would work, so Joe could try it out.

I want to do a PI loop next. I'll do a video of Ben's controller, and when the laptop gets here, I'll do some PI loop tuning to get the throttle perfect, and then I'll ship it off to Ben, for him to do his worst! Then I'll email the new code to Adrian and Joe (or put it on the svn if I ever take the 10 minutes that I need to read up on it).

I also need to write up some directions for Adrian to assemble his. I'll try to get to that this weekend.
__________________
kits and boards
  Reply With Quote
Old 07-17-2009, 03:32 AM   #2026 (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
An interesting thing to consider for all those clutchless people in the house. If you do throttle proportional to current only, it can cause slight problems under certain circumstances.

For example, let's say you took the car out of gear, and you are coasting at maybe 25 mph. Now let's say you want to put it in gear before stopping. Well, you have to rev up the unloaded motor a bit to be able to put it in gear. However, throttle proportional to current means that an unloaded motor is VERY sensitive.
__________________
kits and boards
  Reply With Quote
Old 07-17-2009, 07:40 AM   #2027 (permalink)
EcoModding Lurker
 
blowncurtice's Avatar
 
Join Date: Mar 2009
Location: Victoria Australia
Posts: 30
Thanks: 0
Thanked 4 Times in 2 Posts
I can blame it on age or rusty brains however I got it wrong last time, I mixed up the prices Mouser charge for AU$ orders free shipping and their price if you elect to pay US$ . Here is my revised list prices. Of course the more people to share the cost of shipping the cheaper per person.
John
Attached Files
File Type: zip Cougar Controller Parts List Aus 2C.zip (8.1 KB, 62 views)
  Reply With Quote
Old 07-18-2009, 02:48 AM   #2028 (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
The new laptop from the SGC is on it's way, but a friend of mine (evrag) let me borrow his laptop, so I decided to get to work loop tuning! I installed all the software, and tried it out.

Here's a graph of the current response when throttle suddenly jumps from 0 to 50 (on a scale of 0 to about 500). This isn't a PI loop, but instead was just some ramping code, like this:

if (throttle < current)
pwmDuty--;
else if (throttle > current)
pwmDuty++;

Also, pwmDuty was in the range 0 to 4088. Throttle feels pretty good on this setting. Not TERRIBLY responsive, but not bad.

The current is blue, and the throttle is red. Each tick mark on the x-axis represents 1/4000 of a second, so it took the current 0.04 seconds to get up to where the throttle was (50 amps about):



I was just trying it out. I wrote the code for the PI loops, and now I'm going to test that. It's almost like having a digital storage oscilloscope! hehe.
__________________
kits and boards

Last edited by MPaulHolmes; 07-18-2009 at 03:58 AM..
  Reply With Quote
The Following User Says Thank You to MPaulHolmes For This Useful Post:
mpgmike (01-12-2022)
Old 07-18-2009, 08:38 AM   #2029 (permalink)
EcoModding Lurker
 
Join Date: Jun 2009
Location: Mountain Home, Arkansas
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
When do you guys think we will be able to buy the boards for the controller?
Thanks,
Reggie

(Keep up the great work)
  Reply With Quote
Old 07-18-2009, 02:22 PM   #2030 (permalink)
EcoModding Lurker
 
Join Date: Apr 2009
Location: Maine
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
Paul that must make it so much easer to adjust your code when you can see the reaction data like that.

It would be great if you could get your Bata testers to send this type of data to you from different motor / vehicle weight applications. Then you could write some presets or a better general setting. Even better yet find a high and low range and program a simple user accessible setting to vary the response to anywhere between the high and low points. The user just picks their motor and vehicle weight from a chart and enters an appropriate value for their combination and they would have a controller tuned for their particular application simple as that.

__________________
"Experience is something you get right after you need it !"

http://www.diyelectriccar.com/garage/cars/143

http://www.diyelectriccar.com/forums...tor-32083.html
  Reply With Quote
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