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

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 04-21-2018, 11:08 PM   #3201 (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: 749
Thanked 565 Times in 447 Posts
Trying to get a small motor running with AC controller.

Controller powers up, I have a decade resistor box working for the throttle.

I'm logging - things look fine.

I'm having a senior moment ... run-pi-test ... do I need to press the throttle after that? It just kinda sits there.

__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 04-25-2018, 06:24 PM   #3202 (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,202 Times in 765 Posts
Try "run-pi-test2". This works better, and I think it's implemented in what you have. if it's not I can implement it. It basically lets you get a visual inspection of the convergence rather than letting the computer see if it's converging.
__________________
kits and boards

Last edited by MPaulHolmes; 04-25-2018 at 06:31 PM..
  Reply With Quote
Old 04-26-2018, 05:34 PM   #3203 (permalink)
EcoModding Lurker
 
Join Date: Mar 2018
Location: Sacramento, CA
Posts: 17
Thanks: 9
Thanked 4 Times in 4 Posts
Hmmm anyone have any tips on wiring up the resolver-to-encoder board (v1.4) to the Leaf's motor?

I used a DMM to find out which leads pair together (!ex/ex, sin+/sin-, cos+/cos-) and I know the lower resistance pair is !ex/ex. This leaves two issues:

1. I don't know which of the two remaining pairs is sin and which is cos

2. For all three pairs, I don't know which is + and which is -

I don't have access to a scope at the moment, but I can order a cheap one online if necessary. I know I'll have to get one eventually Any advice would be great
  Reply With Quote
Old 04-26-2018, 05:42 PM   #3204 (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,202 Times in 765 Posts
One thing you can do is, just guess (but get the ex/!ex right) and then stream poscnt like this:

stream-poscnt 1
data-stream-period 100

then move the motor shaft by hand (or with a wrench or something that gives you sort of fine control) and see if the angle changes in a nice continuous way, from 0 to 511 and then wraps around to 0 again (or backwards if it's turning the other way)

I found that the 58 and the 61 PM or whateber they were called had different colors for the wires. But for my motor the colors were:
LEAF motor resolver colors... (for my 2012 motor).

SIN+ ----------- RED
SIN- ----------- black
EX ----------- white
!EX ----------- green
COS+ ----------- BLUE
COS- ----------- YELLOW
__________________
kits and boards
  Reply With Quote
The Following 3 Users Say Thank You to MPaulHolmes For This Useful Post:
mpgmike (04-09-2022), Piotrsko (04-28-2018), wootwootman (04-26-2018)
Old 04-26-2018, 06:07 PM   #3205 (permalink)
EcoModding Lurker
 
Join Date: Mar 2018
Location: Sacramento, CA
Posts: 17
Thanks: 9
Thanked 4 Times in 4 Posts
Hey Paul, thanks for the super quick response!

I saw that list of color/signal pairs in the board documentation, but it didn't match mine (I think I have a 2011) :shrug:

Hmmm okay, I'm fairly confident I have the ex/!ex pair right (discounting polarity), so it shouldn't take more than a few tries (8 possible combinations). I've crimped the connector leads onto my wires, but luckily I haven't stuffed them into the connector housing yet. I think I'll try alligator clips until I get a working setup.

And this might sound like a dumb question, but where does the resolver's GND wire go to? There are two more wires coming from the motor that I think are for a temp sensor, surely it's not one of those?
  Reply With Quote
Old 04-26-2018, 06:14 PM   #3206 (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,202 Times in 765 Posts
The resolver ground wire is just an optional thing if you have the resolver cable shielded. You send the shield to ground. It works fine though to just twist ex/!ex, and then twist sin/!sin, and twist cos/!cos.

Also, what I did was in the middle of the resolver cable just have a bunch of insulated quick disconnects (the male/female spades) which makes it easy that way to swap them if necessary too.
__________________
kits and boards
  Reply With Quote
The Following User Says Thank You to MPaulHolmes For This Useful Post:
wootwootman (04-29-2018)
Old 04-29-2018, 11:44 AM   #3207 (permalink)
EcoModding Lurker
 
Join Date: Apr 2018
Location: UK
Posts: 7
Thanks: 0
Thanked 3 Times in 1 Post
Hi Paul,

Just a thought, would it be possible to connect your Ac controller directly in the leafs invertor system, this would save building the power stage which the invertor already has built into it.

Do you think in the future you will design drop in board in to the existing leaf invertor....I hope you will ;-)
  Reply With Quote
The Following 3 Users Say Thank You to 02BMW02 For This Useful Post:
mpgmike (04-09-2022), samwichse (04-29-2018), thingstodo (04-29-2018)
Old 04-29-2018, 10:00 PM   #3208 (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: 749
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by MPaulHolmes View Post
Try "run-pi-test2". This works better, and I think it's implemented in what you have. if it's not I can implement it. It basically lets you get a visual inspection of the convergence rather than letting the computer see if it's converging.
Hi Paul,

run-pi-test2 is not a valid command for my firmware.

Can you send me a link ... and is it time for an off-site backup?

When I ran

run-pi-test

it ran the first time for about 30 minutes and the battery on the controller died. No results

Second time, with a different 12V accessory battery ... after 30 minutes ... it had gotten to up ratio 67 by the time I pressed enter and stopped it.

So I tried just running it with the parameters from the Siemens motor. And the motor did not respond to the throttle signal. The output of the AC controller did not seem to go up. I'll post later tonight with the logs. It's sort of strange.

More to come later tonight
__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
  Reply With Quote
Old 04-29-2018, 10:02 PM   #3209 (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: 749
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by 02BMW02 View Post
Hi Paul,

Just a thought, would it be possible to connect your Ac controller directly in the leafs invertor system, this would save building the power stage which the invertor already has built into it.

Do you think in the future you will design drop in board in to the existing leaf invertor....I hope you will ;-)
That would also be interesting for me.

I have a couple of the AC controller boards that are waiting to be transplanted into older industrial Variabel Frequency Drives, as the new brains. That may work for the Leaf inverter as well .. not sure. But I don't have a leaf to play with, so I won't be finding out anytime soon.

I'll post about the brain transplants into the industrial VFDs when I get any progress to report.
__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
  Reply With Quote
Old 04-29-2018, 10:52 PM   #3210 (permalink)
EcoModding Lurker
 
Join Date: Mar 2018
Location: Sacramento, CA
Posts: 17
Thanks: 9
Thanked 4 Times in 4 Posts
I hooked up the ex/!ex wires and tried the 8 different combinations of sin+/sin- and cos+/cos- while streaming "poscnt" and manually turning the shaft. No luck, it was all zeros

I think I'll just bite the bullet and buy a cheapo ebay scope; I don't think I'll need a ton of bandwidth. From what I understand, with none of the resolver leads connected, I should be seeing a voltage on the ex/!ex outputs (normally 3.6 Vpp centered around 2.5V but I don't have the board docs in front of me rn so cant calculate actual voltage at the pins). Then, connecting the leads, I should be seeing sinusoidal outputs on the sin+/sin- and cos+/cos- leads, and due to their names I'm assuming the cos one lags 90deg behind the sin signal.

I've got the heat sink, cap "sandwhich", battery, etc. all ready, they're just waiting for a resolver to start testing

  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 7381 08-02-2023 10:55 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.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com