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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 01-17-2017, 12:10 PM   #2971 (permalink)
Ale Madeo
 
ale0502's Avatar
 
Join Date: Jan 2016
Location: Bariloche Patagonia Argentina
Posts: 32
Thanks: 22
Thanked 7 Times in 5 Posts
I can measure the stator resistance with multimeter, I have several motors to test, the idea is to start with a little brushless hobby, and then skip a small 3 phase induction, to finally test my big motor to control. My idea was to do this to test and advance little by little.
I solder it, is a mix of your controller in a pcb manufactured by me connected to a piece of three-phase UPS, now I do not have photos, but in a while I take them and upload them to show you.
I checked the 6 outputs pwm leave the dspic and reach the optocouplers, the IGBT are connected and are shooting, I also have a bus capacitor.
I can see with the oscilloscope at the output (with the resistive load) is rare, it would seem that it is generating a very low frequency, I see that pwm of different DCs is generated and they change every one second approximately.
I already checked the throttle potentiometer read and I think it's fine, just like the current sensors and the encoder.

thank you

__________________
Los que dicen que es imposible, no deberían molestar a los que lo están intentando...
  Reply With Quote
The Following 2 Users Say Thank You to ale0502 For This Useful Post:
MPaulHolmes (01-17-2017), thingstodo (01-17-2017)
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 01-17-2017, 03:25 PM   #2972 (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
You can't do the PI test with a resistive load, because the P and I values are related to the inductance and resistance of the stator coil. I would get maybe 48v, and then do
run-pi-test

and see what happens. A better way is to measure the stator resistance, and then use the following formula:

ki = 2000*3.14159*STATOR_RESISTANCE*CURRENT_SENSOR*192* 1702/(BUS_VOLTAGE*2048*10000)

For "CURRENT_SENSOR", you would use 100 if you are using a LEM Hass 100-s. This number is how many amps per 0.625 volts change in the current sensor.
So, if you are using a LEM Hass 50-s, it would be 50, a LEM Hass 300-s, you would use 300, etc... Tamura is the same way. However many amps per 0.625v is what you use.

Then, you could try Kp = 62*Ki all the way up to Kp = 100*Ki. To see what works best, you would type:

run-pi-test2

To see the actual convergence.
__________________
kits and boards
  Reply With Quote
The Following 2 Users Say Thank You to MPaulHolmes For This Useful Post:
ale0502 (01-17-2017), cont (06-02-2019)
Old 01-20-2017, 06:13 PM   #2973 (permalink)
Ale Madeo
 
ale0502's Avatar
 
Join Date: Jan 2016
Location: Bariloche Patagonia Argentina
Posts: 32
Thanks: 22
Thanked 7 Times in 5 Posts
Hi, what is promised is due, so here is an image of my staff.



Back to the equation of ki, my brushless motor has 0,6ohm of resistance and my little induction motor has 50ohm os resistance, when I calculated ki values, give me 1002 and 83000 respectly, there are numbers too big.

ki = 2000*3.14159*STATOR_RESISTANCE*CURRENT_SENSOR*192* 1702/(BUS_VOLTAGE*2048*10000)

STATOR_RESISTANCIA = 0,6 or 50
CURRENT_SENSOR = 200
BUS_VOLTAGE = 12
__________________
Los que dicen que es imposible, no deberían molestar a los que lo están intentando...
  Reply With Quote
The Following 2 Users Say Thank You to ale0502 For This Useful Post:
kalidasbala (01-21-2017), motorulf (01-21-2017)
Old 01-20-2017, 07:16 PM   #2974 (permalink)
EcoModding Lurker
 
Join Date: Jan 2017
Location: Ireland
Posts: 12
Thanks: 0
Thanked 2 Times in 2 Posts
Dia duit ale
That sure is something to achieve and build at the end could you post a video of your controller in action on the bench driving the induction 3 phase motor mine is around 10 HP would that work for me?
  Reply With Quote
Old 01-21-2017, 02:53 AM   #2975 (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
You can make the Kp and Ki values smaller if you increase the DC voltage. They should be below around 20,000, so I would increase the DC voltage to maybe 48 or 60v. Also, the LEM Hass 200-s has a resolution of -400 to 400 amp, but that wire would probably only carry maybe a few amps, so you won't get good resolution. You can wrap the wire several times through the current sensor window to increase the sensitivity. Another loop through makes it behave like a 100amp current sensor, with a range of -200 to 200. 4 passes through the current sensor windows make the range -100 to 100. etc... I would do that before attempting any PI testing.
__________________
kits and boards
  Reply With Quote
Old 01-21-2017, 04:49 AM   #2976 (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
Sorry for the delay, I missed this message.
run-rotor-test did nothing?! It does take a long time to run, but yes, you are looking for best acceleration. 50-60 sounds reasonable. There is a range of values that work best. Big motors tend to be in the 25-80 range. 50-60 is fine. There is a way to compute the rotor time constant involving the stator inductance/resistance and mutual inductance, but the true value is going to be in the range of 50-60 anyway. All this is doing is figuring out what causes the best acceleration, so the "true" value isn't going to be better. Also, the true value varies a little bit with temperature, so you could compute 55, but while driving it will vary some anyway.

Yikes, -35degC is ridiculous. I've never been in anything like that!

Yes, i was waiting for it for 10 minutes, I could not notice it doing anything. I tried a couple of times.

Now i am working again, will be on tour for 4 months, no time to play with my electric car.

If any one is interested in the reverse function. I will try the diff utility in MPLABX and post the result.
  Reply With Quote
The Following User Says Thank You to motorulf For This Useful Post:
kalidasbala (01-21-2017)
Old 01-21-2017, 09:55 AM   #2977 (permalink)
EcoModding Lurker
 
Join Date: Oct 2016
Location: INDIA
Posts: 11
Thanks: 20
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by motorulf View Post

If any one is interested in the reverse function. I will try the diff utility in MPLABX and post the result.
I think many will be interested. Atleast I am interested to get the reverse functionality done - software controlled.

Btw, is there a formula to calculate the precharge resistor value? Also can I use an automotive relay (12v).
  Reply With Quote
Old 01-21-2017, 12:13 PM   #2978 (permalink)
EcoModding Lurker
 
Join Date: Oct 2016
Location: INDIA
Posts: 11
Thanks: 20
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by motorulf View Post



Yeah, i am only using 25 volts right now, is that too low?
You are using 25v as HV and running a 208Vac 3PH motor? What kind of batteries are you using?
  Reply With Quote
Old 01-21-2017, 04:27 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,362
Thanked 1,202 Times in 765 Posts
Looking at the code, I think the current command of Id = 300 (normalized value) and Iq = 300 might not be enough to get your motor turning. I used that value on my smaller motor and it worked OK, but I think you might need to change yours to 500 or 600 or 1000 or whatever. It's in RunRotorTest(). I probably should change that to an actual current rather than the normalized so it would work with all motor sizes.
__________________
kits and boards
  Reply With Quote
The Following User Says Thank You to MPaulHolmes For This Useful Post:
motorulf (01-21-2017)
Old 01-21-2017, 04:48 PM   #2980 (permalink)
EcoModding Lurker
 
motorulf's Avatar
 
Join Date: Dec 2016
Location: northern sweden
Posts: 33
Thanks: 17
Thanked 20 Times in 17 Posts
OK, here are the DIFF-files for my reverse function hack.
I used source code from Jan-06-2017.
Paul, may i attach that version of source code here?

Diff.zip

It uses the ICSP header for input and the LED output as an indicator.
No settings for reverse-amps, so you get full power backwards.
Use this at your own risk!!




I forgot to add the resistance...
Put resistor values as suggested here, it worked good for me:
Quote:
Originally Posted by thingstodo View Post
I would add a couple of resistors on the board, and one in series with the switch, to limit the max current into the micro.

Perhaps a 22K from Vcc (whether that is 5V or 3.3V) or your top trace on the board to the PIC pin or middle trace on the board. A 10K resistor from the PIC pin, or middle trace on your board, to Gnd, the bottom trace on your board. This one is shown as 'some resistor. That sets up a voltage divider for about 1/3 of Vcc on the input pin, which should read as 0 or OFF.

The switch would go in series with a 2K2 resistor - top trace to your switch .. green wire ... which is now wired in parallel with the 22K resistor. That sets up the PIC pin for about 85% of Vcc and should read as 1 or ON.

These resistor values are ones that I typically use. They limit current under 3 mA and are easy to buy. I didn't look up the specs on the PIC, but I don't expect any issues with low current into the PIC pin.
This was a comment to this:

Making it:


Last edited by motorulf; 01-21-2017 at 04:56 PM.. Reason: adding more stuff
  Reply With Quote
The Following 2 Users Say Thank You to motorulf For This Useful Post:
kalidasbala (01-22-2017), MPaulHolmes (01-21-2017)
Reply  Post New Thread




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 7381 08-02-2023 11:55 PM
Paul & Sabrina's Cheap EV Conversion MPaulHolmes Fossil Fuel Free 542 11-12-2016 10:09 PM
Contest! Name Paul & Sabrina's controller MetroMPG Forum News & Feedback 120 10-22-2011 02:59 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