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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 01-03-2017, 03:46 PM   #2971 (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,368
Thanked 1,119 Times in 734 Posts
at work. Will write back later. (I just didn't want to think I forgot you.)

__________________
kits and boards
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 01-03-2017, 06:18 PM   #2972 (permalink)
EcoModding Lurker
 
motorulf's Avatar
 
Join Date: Dec 2016
Location: northern sweden
Posts: 33
Thanks: 17
Thanked 20 Times in 17 Posts
I managed to setup the throttle, i think.
The motor is turning, which is good
But it just keep revving up, which is scary.
I disconnect the battery an let it calm down for a while.

When moving throttle higher than the treshold for min_throttle, the motor starts turning, if i drop the throttle down again, to regen, the motor still revs up.
I have not tested how far this will go, but 5 secs of spinning up = 4 minutes of spinning down. So it is quite fast...
I have max-battery-amps and max-battery-amps-regen at 15A.
The max-motor-amps and max-motor-amps-regen at 25A.
The current-sensor-amps-per-volt at 200A. I also tried with different values but no difference.
My problem is this: i measure 65A on the battery cable. how is this possible?
I think this is limited only by the internal resistance of my little 6s lipo 8Ah.

So why does it want to accelerate out into space and leave me?
And why does it seem like i can not limit the current?

Also, i have tried run-pi-test and run-rotor-test wich both seem to do nothing. They dont even result in an error.

"Welcome to amateur hour, first up is motorulf..."

Last edited by motorulf; 01-03-2017 at 06:22 PM.. Reason: language
  Reply With Quote
The Following User Says Thank You to motorulf For This Useful Post:
MPaulHolmes (01-03-2017)
Old 01-03-2017, 07:40 PM   #2973 (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,368
Thanked 1,119 Times in 734 Posts
The default is a hall effect throttle, so the soldered resistors are set up for that. It won't work for a resistive throttle without an addition of a resistor, and changing another resistor. That's the problem you are having. You need to change:

R101 should be like 2k (instead of nothing).
R73 should be like 4.7k instead of 47k (I think it's 47k right now).

For a Lem Hass 200-s, the current sensor amps per volt is 200amp / 0.625v = 320
__________________
kits and boards
  Reply With Quote
The Following 2 Users Say Thank You to MPaulHolmes For This Useful Post:
motorulf (01-04-2017), thingstodo (01-03-2017)
Old 01-03-2017, 09:54 PM   #2974 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,478

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

Ford Prefect - '18 Ford F150 XLT XTR
Thanks: 745
Thanked 543 Times in 438 Posts
Quote:
Originally Posted by MPaulHolmes View Post
I'll then send all the pcb and sch files, as well as a pdf showing pinouts of everything.
Me Too! And the source code? So I have all of this stuff in one email and I don't lose parts of it along the way?!?

I'm taking notes for later this month (I hope)
  Reply With Quote
Old 01-04-2017, 06:53 AM   #2975 (permalink)
EcoModding Lurker
 
motorulf's Avatar
 
Join Date: Dec 2016
Location: northern sweden
Posts: 33
Thanks: 17
Thanked 20 Times in 17 Posts
Quote:
Originally Posted by MPaulHolmes View Post
The default is a hall effect throttle, so the soldered resistors are set up for that. It won't work for a resistive throttle without an addition of a resistor, and changing another resistor. That's the problem you are having. You need to change:

R101 should be like 2k (instead of nothing).
R73 should be like 4.7k instead of 47k (I think it's 47k right now).
I have put a resistor on R101, it was a 4.7k so i changed to 2k and put the 4.7k at R73.

Hooked up the pot like this:

The red wire is connected via 2k resistor.
I also tried without the black wire.

The motor still spins without control. No differece.
Still draws around 60 Amps.
I get raw-throttle starting at around 10 going up to around 1000 at maximum.
Throttle-type 1 just inverts the signal, right?

output of config command:
Code:
AC controller firmware, ver. 1.0
High pedal lockout fault.  Ignore this for now.  It's not really a fault.  haha.
config
motor-type=1
kp=03333 ki=00050
current-sensor-amps-per-volt=0320
max-regen-position=0012
min-regen-position=0150
min-throttle-position=0151
max-throttle-position=0625
fault-throttle-position=0001
max-battery-amps=0015 amps
max-battery-amps-regen=0015 amps
max-motor-amps=025 amps
max-motor-amps-regen=025 amps
precharge-time=0050 tenths of a sec
rotor-time-constant=005 ms
pole-pairs=004
max-rpm=06000 rev/min
throttle-type=0
encoder-ticks=0256 ticks/rev
pi-ratio=062
raw-throttle=0009

Last edited by motorulf; 01-04-2017 at 07:27 AM.. Reason: adding info
  Reply With Quote
The Following User Says Thank You to motorulf For This Useful Post:
MPaulHolmes (01-04-2017)
Old 01-04-2017, 10:38 AM   #2976 (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,368
Thanked 1,119 Times in 734 Posts
OK first disconnect the battery power to the motor/inverter. Let's get the throttle configured right first. Wait, have you had a capacitor connected with the IGBTs during all of this? It's really important not to switch the IGBTs without a capacitor hooked up to them.

OK, look on the board where it says HALL. You need to use the hole called POT (just to the left of HALL connection), as well as the rightmost pin of the HALL connection. Don't use the leftmost 2 pins of HALL if you are using a resistive pot. You will only have 2 wires. So like this:

POT -------------------------------- potentiometer wire #1
rightmost pin of HALL -------------------------- potentiometer wire #2

Then, with the battery disconnected from the high voltage section, stream raw throttle like this:
stream-raw-throttle 1
data-stream-period 1000

Now, again find the range of values for raw throttle. let's say they are:
minimum throttle = 300
maximum throttle = 600

Now, for running the PI tests and rotor time constant test, you need the throttle in the "zero" dead zone. So to create one, go like this (assuming the fake values I just made up):
fault-throttle-position 20 (anything smaller than 300 is fine, but not too close to zero)
max-regen-position 50
min-regen-position 60
min-throttle-position 800
max-throttle-position 820

You want the WHOLE valid throttle range to be in the dead zone (zero throttle).
Before continuing though, do you have the capacitor(s) connected to the IGBTs?

Also, is your induction motor 4 pole pairs? What is the RPM on the nameplate?
__________________
kits and boards

Last edited by MPaulHolmes; 01-04-2017 at 10:51 AM..
  Reply With Quote
The Following User Says Thank You to MPaulHolmes For This Useful Post:
motorulf (01-04-2017)
Old 01-04-2017, 12:40 PM   #2977 (permalink)
EcoModding Lurker
 
motorulf's Avatar
 
Join Date: Dec 2016
Location: northern sweden
Posts: 33
Thanks: 17
Thanked 20 Times in 17 Posts
Yes i have capacitors
I am connecting your controller to the HV side of my old controller, from the Think City -08.


And no, itīs a 2 pole pair, i just found out, i hadnīt thought about it at all, just thinking about throttle and stuff.


I have now connected the throttle EXACLY as you describe and shure enough i get a raw-throttle span of about 300 to 600.
I adjusted all the settings, and pole-pairs.

So, what is next step?
When i have run the tests, shall i adjust the throttle to a usable span and try it out, or is there other things to do first

Sorry, all this information is probably somewhere in this thread, and i have probably read it, but when i need the information i just cant seem to find it.
I very happy that you are such a helpful person.
I think i will try to collect all information given to me in some kind of how-to or quick start guide. I will not make it public before itīs approved by you though. (that's Paul, for all you others)
OR - is there anybody else doing this already?
  Reply With Quote
The Following User Says Thank You to motorulf For This Useful Post:
MPaulHolmes (01-04-2017)
Old 01-04-2017, 12:50 PM   #2978 (permalink)
EcoModding Lurker
 
motorulf's Avatar
 
Join Date: Dec 2016
Location: northern sweden
Posts: 33
Thanks: 17
Thanked 20 Times in 17 Posts
OK... i thought i would connect the battery again and see if i could run the pi-test.
When the contactor closed the motor started spinning right away. i didnīt even touch the throttle.

Code:
AC controller firmware, ver. 1.0
High pedal lockout fault.  Ignore this for now.  It's not really a fault.  haha.
config
motor-type=1
kp=03333 ki=00050
current-sensor-amps-per-volt=0320
max-regen-position=0050
min-regen-position=0060
min-throttle-position=0800
max-throttle-position=0820
fault-throttle-position=0020
max-battery-amps=0015 amps
max-battery-amps-regen=0015 amps
max-motor-amps=025 amps
max-motor-amps-regen=025 amps
precharge-time=0050 tenths of a sec
rotor-time-constant=005 ms
pole-pairs=002
max-rpm=06000 rev/min
throttle-type=0
encoder-ticks=0256 ticks/rev
pi-ratio=062
raw-throttle=0369
  Reply With Quote
Old 01-04-2017, 12:52 PM   #2979 (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,368
Thanked 1,119 Times in 734 Posts
EDIT: OK something weird is going on. Let me think for a bit.

Old Message:
OK, before setting throttle to a usable range, first let's run the pi test while the throttle is zero (well, somewhere in the "dead zone"). With maybe 48v hooked up, type:
run-pi-test

Alternatively, if you know the resistance from phase to phase, we could figure it out analytically.

If it finds good values for Kp and Ki, next run:
run-pi-test2

That will let us look at just how good the convergence is, to let us know if we need to use slightly different values.

After we have good kp and ki (still at 48v or so), type:
run-rotor-test

Hopefully, that will start out slow, gradually spin the motor faster, and gradually slow down. It might take like 5 minutes to run. Once it's done, you should have a good value for the rotor time constant. Do all of this stuff while the throttle is "zero" (GREATER THAN min-regen-position and LESS THAN min-throttle-position).
__________________
kits and boards
  Reply With Quote
Old 01-04-2017, 01:08 PM   #2980 (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,368
Thanked 1,119 Times in 734 Posts
The software is calling PWM1H the leftmost twisted pair of wires, then PWM1L, then PWM2H, then PWM2L, then PWM3H, then PWM3L. All left to right. Do you also have the current sensors going to the plugs left to right. current sensor 1 with pwm1H/L, current sensor 2 with pwm2H/L, and current sensor 3 with pwm3H/L?

could you get a picture of all 3 current sensors so I could see the orientation too?

__________________
kits and boards
  Reply With Quote
The Following User Says Thank You to MPaulHolmes For This Useful Post:
motorulf (01-04-2017)
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 7350 07-28-2021 05:32 AM
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.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com