12-22-2009, 09: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
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...
|
|
|
Today
|
|
|
Other popular topics in this forum...
|
|
|
12-22-2009, 11:28 PM
|
#2792 (permalink)
|
EcoModding Lurker
Join Date: May 2009
Location: Brampton, Ontario, Canada
Posts: 15
Thanks: 0
Thanked 2 Times in 2 Posts
|
Quote:
Originally Posted by MPaulHolmes
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
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?
|
|
|
The Following User Says Thank You to bones007 For This Useful Post:
|
|
12-22-2009, 11:37 PM
|
#2793 (permalink)
|
24.27 lbs per gallon Co2
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.
|
|
|
|
12-22-2009, 11:55 PM
|
#2794 (permalink)
|
EcoModding Lurker
Join Date: May 2009
Location: Brampton, Ontario, Canada
Posts: 15
Thanks: 0
Thanked 2 Times in 2 Posts
|
Quote:
Originally Posted by MPaulHolmes
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.
|
|
|
12-23-2009, 03:59 AM
|
#2795 (permalink)
|
PaulH
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832
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!
|
|
|
12-23-2009, 02:23 PM
|
#2796 (permalink)
|
EcoModding Lurker
Join Date: May 2009
Location: Brampton, Ontario, Canada
Posts: 15
Thanks: 0
Thanked 2 Times in 2 Posts
|
Quote:
Originally Posted by MPaulHolmes
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.
|
|
|
12-23-2009, 08:58 PM
|
#2797 (permalink)
|
PaulH
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832
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.
|
|
|
12-24-2009, 11:39 AM
|
#2798 (permalink)
|
EcoModding Lurker
Join Date: May 2009
Location: Brampton, Ontario, Canada
Posts: 15
Thanks: 0
Thanked 2 Times in 2 Posts
|
Quote:
Originally Posted by MPaulHolmes
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.
|
|
|
12-24-2009, 11:48 AM
|
#2799 (permalink)
|
PaulH
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832
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.
|
|
|
12-24-2009, 04:51 PM
|
#2800 (permalink)
|
AC-DC enthusiast
Join Date: Nov 2009
Location: Long Island, NY
Posts: 282
Thanks: 123
Thanked 54 Times in 37 Posts
|
Quote:
Originally Posted by Oval_Overload
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 !!
. . . . . . . . . . . . . . . . .. . ........
|
|
|
|