View Single Post
Old 05-17-2021, 11:09 AM   #3427 (permalink)
laapmetot
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:	106
Size:	45.6 KB
ID:	30689   Click image for larger version

Name:	leaf with sincos.jpg
Views:	96
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:	95
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:	94
Size:	131.0 KB
ID:	30694   Click image for larger version

Name:	gokart with me1616 motor.jpg
Views:	104
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