Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VTOL motor positioning on stop #11

Open
okiaba opened this issue Apr 8, 2024 · 5 comments
Open

VTOL motor positioning on stop #11

okiaba opened this issue Apr 8, 2024 · 5 comments

Comments

@okiaba
Copy link

okiaba commented Apr 8, 2024

Hi there, awesome work!
This is a feature request or more even a feature possibility request.

I'm looking for a way to align VTOL Quadplane Motors in flight when they are stopped. (like this: https://youtu.be/rsTkrPtcVTk?t=34) From my understanding this should be possible with a simple hall sensor+magnet (on/off input) and some software tweaks to have a slow turning movement until the hall sensor is reached?

There are very few ESCs that have this capability and none of them fit my criterias, bringing this feature to AM32 would be a huge win for the VTOL community, as there so much more Hardware available.

What do you think? Would such a feature be at all be possible and/or of your interest?

Thanks!

@AlkaMotors
Copy link
Collaborator

Hi, okiaba, sorry for he delayed response. Hall sensors are not suitable for aligning a motor on high pole count motors. If the motor is 12 or 14 pole then there are 6 or 7 electrical revolutions per physical revolution so there would be 6 or 7 positions that would have the same hall output. You would need some type of encoder with 0-360 degree steps to find the actual rotor position.

@okiaba
Copy link
Author

okiaba commented Apr 15, 2024

Thanks for the reply! Sorry that I was unclear in my explanation. I'm not talking about the traditional hall sensors on a sensored brushless motor, rather a special motormount with one hall sensor and one magnet that aligns with the propeller, so that there is only a short "on" phase of the hall sensor when the propeller is aligned (two magnets are obvs. also possible for both propeller blades) - so we would need one additional digital input, for which the telem line could even be used, as ardupilot (the FC FW) supports bdshot telem. Does that make sense?

Of course a 360degree absolute encoder would also be an option but overkill in my opinion.

@okiaba
Copy link
Author

okiaba commented Apr 15, 2024

The stopping mode could maybe work as follows:

  • Brake the motor.
  • Start it again with slow, blind sinus commutation until hall sensor reads 1 and 0 again.
  • drive backwards with very slow blind sinus commutation until hall sensor reads 1 again
  • brake motor (and optionally monitor hall sensor continuously, if it goes to 0 again, repeat the process)

@AlkaMotors
Copy link
Collaborator

Yeah, ok this is very simple to do. We can easily align to a pulse out from a hall sensor reading a single magnet.

@okiaba
Copy link
Author

okiaba commented Apr 15, 2024

Okay awesome! Let me know how I can support the development! I can definitely build a test setup to test the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants