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 12-22-2009, 08:28 PM   #2791 (permalink)
Master EcoModder
 
Join Date: Sep 2008
Location: Texas
Posts: 632
Thanks: 0
Thanked 26 Times in 24 Posts
Quote:
Originally Posted by jackbauer View Post
Have to agree that usb is rubbish. Was at an arizona microchip training course a few years ago when they were first bringing out pics with onboard usb. Took the guys a day to get it to send simple ascii characters. Best bet is to get a pci rs232 card if you have a desktop or pcmcia card for a laptop. I have both and work fine with my own projects and rtd explorer. Trouble with most usb to rs232 adaptors is that they are implemented in software.
All of my USB to RS-232 adapters work great, but they're all based on the PL2303 or FTDI chips.

__________________
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 12-22-2009, 10:28 PM   #2792 (permalink)
EcoModding Lurker
 
bones007's Avatar
 
Join Date: May 2009
Location: Brampton, Ontario, Canada
Posts: 15
Thanks: 0
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by MPaulHolmes View Post
I tested out the newest version of the software today. version 1.7. Over-rev protection works perfectly while in neutral.
Quote:
Originally Posted by adamj12b View Post
So I have good news!! As of today the new firmware, v1.8, can control pre-charge time!!
This is great news! Looks like some new features are making it into the controller.

How about the "I forgot to unhook the extension cord from the car before driving away" lockout? I don't have an EV now, but I am guessing that I would probably forget to unplug before driving away at least once a month.

To make this feature available would not be that difficult. As I see it, if the car is charged by opening the "fuel filler" door on the side of the vehicle then all we need is a switch installed to detect the state of the door (open/closed) and hook that up to a digital input on the micro with a pull-up resistor. Then in the micro controller code, just check the value on that digital input to make sure the door is closed prior to engaging the contactor.

Is this feature planned? Any opinions?
  Reply With Quote
The Following User Says Thank You to bones007 For This Useful Post:
mpgmike (01-14-2022)
Old 12-22-2009, 10:37 PM   #2793 (permalink)
24.27 lbs per gallon Co2
 
Oval_Overload's Avatar
 
Join Date: Aug 2008
Location: Minneapolis, MN
Posts: 217

Unicorn - '12 Nissan Versa 1.8S hatch
90 day: 31.9 mpg (US)
Thanks: 8
Thanked 13 Times in 10 Posts
Quote:
How about the "I forgot to unhook the extension cord from the car before driving away" lockout?
Zap! implements this with a relay on the throttle. 110 VAC disconnects the throttle, and high-pedal lockout prevents any shenanigans if you were to unplug while in "drive" mode.

That is an option, but then again a relay is a mechanical part that can fail. Bones' method involves fewer mechanical parts and less 110VAC wiring.

~Jimbo
__________________


Quote:
Hehehe... If one of your facial lacerations leaves a small scar, you'll have a SCarlett.
  Reply With Quote
Old 12-22-2009, 10:55 PM   #2794 (permalink)
EcoModding Lurker
 
bones007's Avatar
 
Join Date: May 2009
Location: Brampton, Ontario, Canada
Posts: 15
Thanks: 0
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by MPaulHolmes View Post
I tested out the newest version of the software today. version 1.7. Over-rev protection works perfectly while in neutral.
Paul, from what I remember the way you get around the over-rev protection without a speed sensor is by comparing the motor current to the PWM duty cycle. Am I right in thinking that the value of the constant you come up with for this comparison depends on the torque constant of your motor, the battery voltage, load on the motor and perhaps other considerations right?

Do you think there is an easy way to come up with different values for a wide variety of hardware configurations?

Or is it really not that crucial. I mean will one particular constant value limit RPMs to X plus/minus say 10% or 20% or so. Regardless of the hardware configuration. After all, having a precise limit to the RPMs to is not critical...as long as the limit is low enough to avoid having the motor blow apart, and high enough to be useful for the driver.
  Reply With Quote
Old 12-23-2009, 02:59 AM   #2795 (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
Hey Bones!

c*RPM*current = pwm_duty

Let's say the current is large and the rpm is very very small. Then the voltage across the motor is going to be very small (almost a short circuit)

Now let's say the motor is turning almost infinitely fast. Then just when the current is about to get going in the coils one way, the brushes make it turn around and flow the other way, so the net result is that very little is flowing.

That's just a plausibility argument as to why current and rpm are inversely proportional to each other, and why RPM and pwm_duty are directly proportional to each other. I actually don't know why it's true in the case of series DC motors. But let's pretend that it is!

Then to limit the RPM, you just limit pwm_duty/current in software. hurray!
__________________
kits and boards
  Reply With Quote
Old 12-23-2009, 01:23 PM   #2796 (permalink)
EcoModding Lurker
 
bones007's Avatar
 
Join Date: May 2009
Location: Brampton, Ontario, Canada
Posts: 15
Thanks: 0
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by MPaulHolmes View Post
c*RPM*current = pwm_duty
Ok, so that's the general idea. Do you know how much will the value 'c' in your equation above must change depending on which motor you have (emf constant), battery voltage, vehicle load or other hardware characteristics?

I mean will this value need to be tuned for each case or is one value fine for everyone.
  Reply With Quote
Old 12-23-2009, 07:58 PM   #2797 (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
If you double the pack voltage, you need to double that constant. Other than voltage varying, I don't know what other variations there are. That will be interesting to find out.
__________________
kits and boards
  Reply With Quote
Old 12-24-2009, 10:39 AM   #2798 (permalink)
EcoModding Lurker
 
bones007's Avatar
 
Join Date: May 2009
Location: Brampton, Ontario, Canada
Posts: 15
Thanks: 0
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by MPaulHolmes View Post
If you double the pack voltage, you need to double that constant.
I kinda thought so. If the pack voltage monitoring is in place then potentially the correct 'c' value could be chosen automatically. Eliminating the need to tune this parameter...assuming other factors don't affect the RPM limit too much.
  Reply With Quote
Old 12-24-2009, 10:48 AM   #2799 (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 form I listed was worthless though. In the software, we want to control RPM, so it would be better to have it written as

RPM = c*pwm_duty/current. In the code that's how it is, so if you double the voltage you need to cut that c in half! hehe.
__________________
kits and boards
  Reply With Quote
Old 12-24-2009, 03:51 PM   #2800 (permalink)
AC-DC enthusiast
 
mrbigh's Avatar
 
Join Date: Nov 2009
Location: Long Island, NY
Posts: 282

Dual-PWR PHEV - '04 Toyota Prius

Kopper - '79 Bradley Bradley GT-II
Thanks: 123
Thanked 54 Times in 37 Posts
Quote:
Originally Posted by Oval_Overload View Post
Zap! implements this with a relay on the throttle. 110 VAC disconnects the throttle, and high-pedal lockout prevents any shenanigans if you were to unplug while in "drive" mode.

That is an option, but then again a relay is a mechanical part that can fail. Bones' method involves fewer mechanical parts and less 110VAC wiring.
~Jimbo
My approach to the charging reminder issue is very simple, economic, from renewable sources, replaceable and STUPID proof, I know that because of experience thou.


__________________
. .. .. . .......
Prius Absolutum Dominium . ..........KOPPER
PHEV conversion since Dec 2006.. . .... .Future EV
. . . . . . . .CALCars # 27. . . . . . . . . . ..on the works now !!
. . . . . . . . . . . . . . . . .. . ........
  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 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