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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 05-29-2020, 11:28 PM   #3421 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 746
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by MPaulHolmes View Post
Quick poll:
If you were going to re-use a nissan leaf motor controller, would you want to go to the extra possible expense of having the stock external 15 pin connector that goes with the motor controller, or would you prefer something like a waterproof cable gland with the 15 wires coming out of it (all shrink wrapped so that the cable gland could grip tightly around it, and then a 15 wire pigtail, with something like insulated quick disconnects? Or some other alternative?
I know nothing about this connector ... so I answered the question 5 times

Hmmm. In my opinion, the stock external 15 pin connector is only helpful if you are using the parts of the leaf that make use of that connector, or you have a cable harness that includes the connector. I don't think that is likely if you are 're-using' the controller.

If you have a 15 wire pigtail, the ends have to land somewhere.

If there a high voltage junction box that this normally goes to, I'd vote for the pigtail.

If the 15 pin connector is for control stuff coming from the dashboard, keep the connector.

If some goes to the dash, some to the throttle, and some other places ... I'd stay with the pigtail since you will need a box for terminations and to open up for troubleshooting.

I don't think that will help your poll very much

__________________
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 (05-30-2020)
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 05-30-2020, 12:28 AM   #3422 (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 wires are:
8 wires for resolver. It goes right to a plug on the motor.
+12v and gnd
CAN
__________________
kits and boards
  Reply With Quote
The Following User Says Thank You to MPaulHolmes For This Useful Post:
JANI-DIP (01-12-2021)
Old 06-01-2020, 11:53 PM   #3423 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 746
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by MPaulHolmes View Post
The wires are:
8 wires for resolver. It goes right to a plug on the motor.
+12v and gnd
CAN
8 wires for resolver
2 for CAN
2 for +12V and Gnd
3 spare wires

If they all go to the motor .. the motor controller and the motor both need liquid cooling so they are likely to be close together? If a 3 foot connector from the controller to the motor would keep all the signals together, clean and dry ... maybe go for the connector.
__________________
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:
JANI-DIP (01-12-2021)
Old 01-12-2021, 05:47 PM   #3424 (permalink)
EcoModding Lurker
 
Join Date: Jan 2021
Location: San Diego
Posts: 1
Thanks: 5
Thanked 0 Times in 0 Posts
Hi, is anyone have P&S resolver to encoder board pcb, schematic and BOM (final version) for leaf motor?
  Reply With Quote
Old 05-16-2021, 01:01 PM   #3425 (permalink)
EcoModding Lurker
 
Join Date: May 2021
Location: the netherlands
Posts: 6
Thanks: 3
Thanked 1 Time in 1 Post
I'm not sure its the latest version but I bought this board from Paul Holmes and it worked together with the leaf motor and his controller in 2018, and I got information from him. Too big to share here so drop me a pm if you want
  Reply With Quote
Old 05-17-2021, 05:07 AM   #3426 (permalink)
EcoModding Lurker
 
Join Date: May 2021
Location: the netherlands
Posts: 6
Thanks: 3
Thanked 1 Time in 1 Post
I have the 200kW ac controller as designed by paul holmes which I bought a couple of years ago. With a lot of help from Paul I got it to work on a leaf motor, but unfortunately never got it to work with another motor so I shelved it since the leaf motor was too large to fit the go-kart I was building.

Now I have a new project and thought to try it again. I learned some more, and hopefully enough to get it sorted out this time.

Unfortunately I couldnt reach Paul anymore and was trying to find information online and found this forum with a long thread of this exact controller, so I will post here and hopefully this will help me, and others in the process as well.
__________________
V=I*R
  Reply With Quote
Old 05-17-2021, 11:09 AM   #3427 (permalink)
EcoModding Lurker
 
Join Date: May 2021
Location: the netherlands
Posts: 6
Thanks: 3
Thanked 1 Time in 1 Post
What I try to do is to get the motenergy ME1616 PMAC or PMSM permanent magnet synchronous motor to work with the P&S controller.

The controller itself is functional: I have a leaf motor which runs fine, both with the standard resolver with P&S interface board to convert resolver to encoder, and with custom code from paul to run a sincos sensor.

Current sensors have correct values, current settings and throttle settings are ok. So I know for sure the electronics are ok and basic setup too.

Since both the ME1616 and the leaf motor are PM motors, I didnt expect much trouble. famous last words :-)

First thing i did:
try motor type 4 which is generic pm motor.
I have a US digital encoder mounted on the ME1616: 2000 cpr, index pulse and open ended per Paul's instructions. I set the encoder-ticks to 2000 and set the pole pairs to 5 per motor datasheet.
Unfortunately the motor doesnt turn, its just sits there vibrating a bit and making "inverter noise". what I tried:
- stream-poscnt: counts up to 8000 and drops to zero and raises up again etc. So that seems good (2000cpr x 4 for quadrature sounds logical) When turning the motor the other side it runs down to zero, then jumps up to 65000 or something and goes down. Weird, not what I expected: I would expect the index pulse to result in reset to 8000.
- Tried 500cpr just to see if that helps: but no.
- swap a-b to check if encoder runs opposite direction then motor. No difference.
- tried step by step the whole angle-offset range, also for swapped ab. There is a range in which the motor " wiggles" a bit more but no clear correct value
- when switching on the controller without encoder connected, it turns slowly and rough: must be the startup sequence which runs until first index pulse.

So, no good result.

Then I tried the sincos version with custom software I got. I can stream sine and cosine values which make sense: go up and down in a range roughly between 400-800. Center value in the software is 612 so no need to correct that. Basically the same result as before: motor wiggles but that's it. I tried the same as above to no avail.

I tried checking the code: I can change small stuff and recompile, but digging in the heart of the functionality is beyond my understanding of C and motor theory. I tried reading up on both topics but you cant become a software and power electronics professional in a couple of weeks unfortunately.

Maybe somebody can help with this? There are a couple of these controllers out there as far as I know.



Attached Thumbnails
Click image for larger version

Name:	sincos.jpg
Views:	107
Size:	45.6 KB
ID:	30689   Click image for larger version

Name:	leaf with sincos.jpg
Views:	97
Size:	46.9 KB
ID:	30690   Click image for larger version

Name:	settings example generic pm.jpg
Views:	95
Size:	108.0 KB
ID:	30691   Click image for larger version

Name:	leaf with resolver and interface board.jpg
Views:	97
Size:	99.0 KB
ID:	30692   Click image for larger version

Name:	P&S controller.jpg
Views:	86
Size:	115.0 KB
ID:	30693  

Click image for larger version

Name:	dyno.jpg
Views:	95
Size:	131.0 KB
ID:	30694   Click image for larger version

Name:	gokart with me1616 motor.jpg
Views:	106
Size:	140.6 KB
ID:	30695  
__________________
V=I*R

Last edited by laapmetot; 05-17-2021 at 11:35 AM.. Reason: add pictures
  Reply With Quote
Old 05-22-2021, 11:59 PM   #3428 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 746
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by laapmetot View Post
First thing i did:
try motor type 4 which is generic pm motor.
I have a US digital encoder mounted on the ME1616: 2000 cpr, index pulse and open ended per Paul's instructions. I set the encoder-ticks to 2000 and set the pole pairs to 5 per motor datasheet.
Unfortunately the motor doesnt turn, its just sits there vibrating a bit and making "inverter noise". what I tried:
- stream-poscnt: counts up to 8000 and drops to zero and raises up again etc. So that seems good (2000cpr x 4 for quadrature sounds logical) When turning the motor the other side it runs down to zero, then jumps up to 65000 or something and goes down. Weird, not what I expected: I would expect the index pulse to result in reset to 8000.
- Tried 500cpr just to see if that helps: but no.
- swap a-b to check if encoder runs opposite direction then motor. No difference.
- tried step by step the whole angle-offset range, also for swapped ab. There is a range in which the motor " wiggles" a bit more but no clear correct value
- when switching on the controller without encoder connected, it turns slowly and rough: must be the startup sequence which runs until first index pulse.

Agreed that for 2000 cpr, and a 2 channel encoder, you get 2000 A channel positive changes, 2000 A channel negative changes, 2000 B channel positive changes, 2000 B channel negative changes .. per rotation. So a count to 8000 makes sense, which then resets to 0 and starts counting up again.

Going the other way goes to a negative number. Since Paul prints them out as unsigned integers (if I remember) they will show 65535 instead of -1, 65534 instead of -2, etc. It's just how the bits in 2's complement binary notation show up. This is normal.

I don't know about the angle offset. That's not used for AC motors (which is what I have experience with).

I will dig up the values that I used for my son's Siemens AC motor. That was a couple of laptops ago, so it will take a bit of looking. Although all of that was was likely posted on this site somewhere ... it's likely faster for me to search my archives than to search through my postings on the various threads

The constants used by Paul's equations to determine how fast to rotate the magnetic field, and how much current is required to move the motor smoothly don't make a lot of sense to me. I don't pretend to understand them.
But I have some numbers that worked for a larger motor (no permanent magnets, though). Maybe you can then guess at some numbers that you can try and that may make your motor operate more smoothly.

Paul had some testing code to try a bunch of different constants and pick the 'best' one. That did not work so well. I think it got removed somewhere along the line.
__________________
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:
laapmetot (05-24-2021)
Old 05-24-2021, 04:28 PM   #3429 (permalink)
EcoModding Lurker
 
Join Date: May 2021
Location: the netherlands
Posts: 6
Thanks: 3
Thanked 1 Time in 1 Post
thanks for the feedback! Actually I'm beginning to think Paul didnt finish the PM-encoder part of the controller. The AC part works fine, the leaf-resolver part too but the PM section just refuses to work and I'm not able to fix it unfortunately.
__________________
V=I*R
  Reply With Quote
Old 01-28-2022, 05:12 AM   #3430 (permalink)
EcoModding Apprentice
 
Join Date: Jan 2022
Location: Sussex, NJ
Posts: 137
Thanks: 479
Thanked 113 Times in 80 Posts
Quote:
Originally Posted by CollinK View Post
So... I'd like input on this:

I'm thinking of switching to dsPIC33 chips before I finalize a PCB design. This chip is newer than the dsPIC30 chips and programming wise uses the same instructions and everything. dsPIC30 chips are not recommended for new designs anymore. However, there are some points to consider:

1. Every dsPIC33 chip is 3.3v. There are no exceptions. So this would require a 3.3v regulator on top of the 5v regulator already in use. And I can't just get rid of the 5v regulator because other things need it. This is easy, though, I can just use a 3.3v regulator off of the 5V source.
2. dsPIC33 chips can only sink or source very low currents (4ma) as opposed to the 25ma possible with dsPIC30 chips. This means one would need a bunch of transistors. Granted, I probably should plan on that anyway.
3. dsPIC33 chips do not come in DIP40 packages (which is what the current layouts all use). You must do 28 pin if you hope for it to be through hole. Otherwise it jumps up to 44 pin QFN.
4. dsPIC33 chips have no EEPROM
5. They do, however, add other nice stuff like ECAN, programmable PLL, more interrupts, more timers, 12 bit ADC, DMA.

I'm really strongly looking at using 44 pin QFN for the dsPIC chip. It could be the only surface mount chip required. I don't think it will be too terrible to solder and boards could be sold with the dsPIC already soldered on for those who don't feel adventurous. I could use dip28 chips but I would almost certainly end up needing two of them.
I'm on page 63 of this 3xx page thread, but had to interject before I lost my place. The dsPIC33EV series is 5 volt! The dsPIC33EVxxGMxxx chips are motor controller versions. I concede that they don't have EEPROM, but they do offer Flash programming (which can be manipulated to act like EEPROM). Now, back to my page 63.

__________________
Recovering Gasaholic
  Reply With Quote
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