Go Back   EcoModder Forum > EcoModding > Fossil Fuel Free
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 06-17-2017, 10:59 AM   #3131 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,759

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,343
Thanked 1,067 Times in 698 Posts
Hello! I don't think there's a difference between PMAC and brushless DC. Well, I think sometimes PMAC wants a pure AC waveform for best results, and brushless DC wants trapezoidal? But I'm not sure. Also, both motors work fine with an AC waveform.

If it's a permanent maget motor, and you have an encoder, you shouldn't need different firmware. You might just have to set the number of pole pairs, motor type (permanent magnet with encoder) etc.

That would be absolutely awesome to go through the whole tuning process and everything. That's something that I should have done and never got around to doing.

__________________
The D.I.A.R.R.H.E.A. Available soon!
kits and boards
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 06-17-2017, 12:24 PM   #3132 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,186

ChargE - '92 Mazda MX6 LX
90 day: 33.89 mpg (US)

WinterTransport - '07 hyundai Sante Fe SE
Thanks: 672
Thanked 433 Times in 345 Posts
Quote:
Originally Posted by MPaulHolmes View Post
If it's a permanent maget motor, and you have an encoder, you shouldn't need different firmware. You might just have to set the number of pole pairs, motor type (permanent magnet with encoder) etc
Thanks Paul,

Some time ago there was a question about lowering the cost of the AC Controllers for a production run by using parts that were rated for lower voltage, less capacitance, etc.

Did you ever look into the cost savings? I remember thinking (and I think I posted) that the cost savings would not be significant compared to the PITA of tracking all of the extra components.

The SEVCON controller is *TINY*. 1.5 inches thick, about the length and width of a sheet of paper, air cooled, and not much for fins. I have trouble believing that it will do 650A for more than a few seconds before it overheats. The back of the controller is maybe 3/16 inch aluminum and is just bolted to the frame. No thermal grease even! ... or none that is left after the guys at the mine did their service, anyway.

The caps inside that SEVCON must be very small and have incredibly low ESR.

After I get one of these things running I expect that I will be adding a *LOT* of instrumentation to see the temperature the controller is at, the battery amps and motor amps, the motor temps, etc. I'm also looking at monitoring the ESTOP circuit. The interlocks include a safety lockout switch, the key switch, the parking brake, the 'gear' selector (F, N, R), the speed selector (L, M, H), charger plugged in, feedback that the contactors closed ... and perhaps other stuff? Troubleshooting the thing when it stops is not going to be fun without some monitoring and some sort of display ... maybe even a single LED that flashes morse code? How Geeky would THAT be?
__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
  Reply With Quote
The Following User Says Thank You to thingstodo For This Useful Post:
MPaulHolmes (06-17-2017)
Old 06-17-2017, 04:47 PM   #3133 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,759

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,343
Thanked 1,067 Times in 698 Posts
I know they have low power 6 pack chips that can be very affordable, with a maximum current of maybe 10 amps or something. But they are not isolated. I"ve never messed around with those, but I would like to eventually. Those are rated for 600v though, so the sevcon probably uses some low voltage mosfets and boot-strapping (however the heck that works). The 6 isolated supply way of doing it is the sledge hammer approach.

I love the idea of the LED morse code!!
__________________
The D.I.A.R.R.H.E.A. Available soon!
kits and boards
  Reply With Quote
Old 06-17-2017, 06:43 PM   #3134 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,186

ChargE - '92 Mazda MX6 LX
90 day: 33.89 mpg (US)

WinterTransport - '07 hyundai Sante Fe SE
Thanks: 672
Thanked 433 Times in 345 Posts
Quote:
Originally Posted by MPaulHolmes View Post
I know they have low power 6 pack chips that can be very affordable, with a maximum current of maybe 10 amps or something. But they are not isolated. I"ve never messed around with those, but I would like to eventually. Those are rated for 600v though, so the sevcon probably uses some low voltage mosfets and boot-strapping (however the heck that works). The 6 isolated supply way of doing it is the sledge hammer approach.

I love the idea of the LED morse code!!
If the controller is very close to the motor, and it pretty much HAS to be on a vehicle ... then the reflected wave stuff is minimized (since the impedance of the cable is quite different from the impedance of the motor, any waves or pulses will 'reflect' from the motor and you can see a bit over 2X buss voltage at the motor terminals and the controller terminals). A 48V (57V) buss with full reflection is only 96V (115V). Add some safety factor ... 200V (230V) or so? That's still well within the MOSFET range. But driving MOSFETs to switch both the high side and low side takes a bit more circuitry and effort .. so I read. The EVTV episode where they take apart a blown-up TESLA controller showed a *BUNCH* of what looked like TO22 MOSFETs clamped to water-cooled tubes ... not sure if they mixed P channel for switching the positive side with N channel for the negative side?

Mouser lists 300V 400A IGBTs at $35 each, you'd need 6, plus the low esr caps .. anything else that would change based on the lower voltage? I know that you have 6 isolated supplies - would that change with the lower voltage? Somehow I doubt it.

400A does not match the 650A SEVCON I have but SEVCON have a 450A model available for the Ranger EV as well. I'm not actually sure what they would do continuous either. If you are pulling 650A for more than a few seconds, you would melt the cables, the motor, or the batteries even if the controller COULD put out that sort of power.

It's interesting to think about, anyway
__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
  Reply With Quote
Old 06-29-2017, 03:23 PM   #3135 (permalink)
EV
 
Join Date: Jun 2017
Location: Akron, OH
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
I'm building up your controller right now and I have a few stupid questions:

1. In the BOM you list a fancy circular capacitor. I've never seen anything like that before now. Is there any reason why I couldn't just use some big electrolytics?

2. I know the pic code has been evolving, but has the ATtiny code for the DC-DC converters still the same as in the github library you linked to in the instructable?

3. I'm on the fence about buying a Pickit 2 or 3. Would either work? Which would you recommend? 3 is a bit more expensive.

Thanks for the help! I picked up a 1hp motor and I hope to put it in a dirtbike frame soon.
  Reply With Quote
Old 06-30-2017, 01:59 AM   #3136 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,186

ChargE - '92 Mazda MX6 LX
90 day: 33.89 mpg (US)

WinterTransport - '07 hyundai Sante Fe SE
Thanks: 672
Thanked 433 Times in 345 Posts
Quote:
Originally Posted by ScottyWarpNine View Post
I'm building up your controller right now and I have a few stupid questions:

1. In the BOM you list a fancy circular capacitor. I've never seen anything like that before now. Is there any reason why I couldn't just use some big electrolytics?

2. I know the pic code has been evolving, but has the ATtiny code for the DC-DC converters still the same as in the github library you linked to in the instructable?

3. I'm on the fence about buying a Pickit 2 or 3. Would either work? Which would you recommend? 3 is a bit more expensive.

Thanks for the help! I picked up a 1hp motor and I hope to put it in a dirtbike frame soon.
I will take a shot at answering the questions (so Paul can correct me):

1 - you can use electrolytics or any other type of capacitors you like. The ring capacitor has some interesting specs. The only one that I remember is Low ESR (equivalent series resistance). And since it has many contacts on the positive and negative plates, it somehow minimizes the noise induced by the carrier frequency. Something about minimal enclosed area? But other capacitors will work. Perhaps not quite the performance, but they will work. I have taken apart industrial controllers from several vendors. NONE of them use these ring capacitors.

2 - I didn't see the code in the instructable. But I know that this code has not changed for quite a while. There was no update (that Paul mentioned)
between the original Cougar controller, the IGBT DC Controller and the AC Controller. I would guess that code is the same. I think I have the hex file in my archives somewhere .. I can send you a copy if I locate it.

3 - I bought the PicKit 3. It is newer and has current libraries for more of the PIC family. It is also what Paul is using, so this should minimize the problems. Paul favors an older version of the C compilers .. and I have some problems building his new code. MPLab X is a re-write from scratch of the IDE, sort of a fork of a different series of IDE that Microchip purchased/is using ... I likely messed up that story. But it is not much like the older version.

Paul has been pretty busy lately - hopefully he is still checking the group
__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
  Reply With Quote
The Following User Says Thank You to thingstodo For This Useful Post:
ScottyWarpNine (07-03-2017)
Old 07-03-2017, 04:18 PM   #3137 (permalink)
EV
 
Join Date: Jun 2017
Location: Akron, OH
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
Cool, I just got an SOIC8 clip on programmer so I can program the ATtiny. The Pic can be programmed once it is soldered on the board via the ISP header, correct?
  Reply With Quote
Old 07-04-2017, 10:02 PM   #3138 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,186

ChargE - '92 Mazda MX6 LX
90 day: 33.89 mpg (US)

WinterTransport - '07 hyundai Sante Fe SE
Thanks: 672
Thanked 433 Times in 345 Posts
Quote:
Originally Posted by ScottyWarpNine View Post
Cool, I just got an SOIC8 clip on programmer so I can program the ATtiny. The Pic can be programmed once it is soldered on the board via the ISP header, correct?
Yes, the PIC (pretty much ANY PIC as far as I know) can be programmed via ISP ... ICSP? .. header before or after soldering. The One-time Programmable versions (OTP) can be programmed in circuit or before as well .. just that you only get one shot at it.
__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
  Reply With Quote
Old 07-05-2017, 08:07 PM   #3139 (permalink)
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,759

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,343
Thanked 1,067 Times in 698 Posts
My goodness, thingstodo, you are really helpful with answering questions! I have nothing further to add.
__________________
The D.I.A.R.R.H.E.A. Available soon!
kits and boards
  Reply With Quote
Old 07-29-2017, 04:29 AM   #3140 (permalink)
EcoModding Lurker
 
Join Date: Mar 2016
Location: italy
Posts: 40
Thanks: 5
Thanked 2 Times in 2 Posts
Hello Guys, i'm back again and sorry about my very bad english.. ahah
first of all i got the motor running on dspic30f6010A.. and added a code for 16x2 LCD. because it is impossible to debug because the analog inputs for current sensing are also programming port inputs.

But now i need your help guys who already tested this controller.. and MPaulHolmes also yours ahah if you have some time.
details of hardware:
CURRENT SENSORS: LTS-25-NP
IGBTS: FGH40T120
IGBT DRIVERS: A3120 OPTOCOUPLERS
BUS VOLTAGE: 100V UP TO 22AMPS
ENCODER: 1000 PPR

MOTOR:
CONNECTION: DELTA 230V PHASE TO PHASE CONFIGURATION
KW: 2.2
RPM: 2800
POLES: 2, 1 POLE PAIR
COSFI: 0.85
NOMINAL AMPS: 8.6

1: How can i set pi-ratio parameter? how to find the best one?

2:how to set throttle mapping values? i'm using 4.7k potentiometer.
my current values are:
max-regen-position=0042
min-regen-position=0339
min-throttle-position=0539
max-throttle-position=0837

the problems with these values are:
1: the motor jumps to maximum speed (4000+ RPM) with minimum variation of potentiometer.. i checked the potentiometer and it is ok. i checked also the ADCBUF values these also are in 0-1023 int.
2: the motor turns only in one direction.. the other haf of pot range does nothing.


FOR NOW THESE ARE MY BIG PROBLEMS.. AFTER I SOLVE THESE WITH YOUR HELP GUYS I WILL TEST THE MOTOR UNDER LOAD HOPEFULLY..
My current Configuration:
motor-type=1
kp=08618 ki=00139
current-sensor-amps-per-volt=0040
max-regen-position=0042
min-regen-position=0339
min-throttle-position=0539
max-throttle-position=0837
fault-throttle-position=0005
max-battery-amps=0010 amps
max-battery-amps-regen=0002 amps
max-motor-amps=008 amps
max-motor-amps-regen=008 amps
precharge-time=0001 tenths of a sec
rotor-time-constant=023 ms
pole-pairs=001
max-rpm=03000 rev/min
throttle-type=1
encoder-ticks=1000 ticks/rev
pi-ratio=062
raw-throttle=0508

  Reply With Quote
Reply  Post New Thread


Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paul & Sabrina's cheap DIY 144v motor controller MPaulHolmes Open ReVolt: open source DC motor controller 7203 09-13-2017 06:08 PM
Paul & Sabrina's Cheap EV Conversion MPaulHolmes Fossil Fuel Free 542 11-12-2016 09:09 PM
Contest! Name Paul & Sabrina's controller MetroMPG Forum News & Feedback 120 10-22-2011 01:59 PM



Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com