asukiaaa / arduino-A89306

A library for blushless motor driver A89306
MIT License
1 stars 0 forks source link

Upgrade code to support A89307 #1

Open davidcyr2000 opened 2 years ago

davidcyr2000 commented 2 years ago

Given the A89307 is very similar to the A89306, is there any interest in adapting the code to the A89307? The register usage has changed somewhat, so this sample program cannot be used directly. Would it be reasonable to expect this A89306 code will be modified to run the A89307 demo board? Thanks! David Cyr

asukiaaa commented 2 years ago

I don't have A89307 and also don't have plan to do that. You can fork this repository and modify for A89307.

davidcyr2000 commented 2 years ago

Thanks for the response. I would like to modify for the A89307, however, it us difficult to understand the code given there is no documentation within the code to explain what you did and why.

Is there any other related documentation available?

Thanks, David Cyr


From: Asuki Kono @.> Sent: Friday, December 17, 2021 10:27:50 AM To: asukiaaa/arduino-A89306 @.> Cc: David Cyr @.>; Author @.> Subject: Re: [asukiaaa/arduino-A89306] Upgrade code to support A89307 (Issue #1)

I don't have A89307 and also don't have plan to do that. You can fork this repository and modify for A89307.

— Reply to this email directly, view it on GitHubhttps://github.com/asukiaaa/arduino-A89306/issues/1#issuecomment-996810307, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACQ5MEZWSVKDM4R6STDGMKLURNJHNANCNFSM5JXXFKRA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

asukiaaa commented 2 years ago

Is there any other related documentation available?

No it's not for now. See example project, source of the library and datasheet of A89306.

Is there any other related documentation available?

For example which process makes you confused?

asukiaaa commented 2 years ago

By the way, I cannot drive a brush less motor with using A89306 so I switched to TC78B009FTG.

https://github.com/asukiaaa/arduino-TC78B009FTG

If you cannot drive your motor with using A89307, TC78B009FTG is one of the other choices.

davidcyr2000 commented 2 years ago

Thanks for the feedback! It appears the datasheet for the TC78B009FTG demo board is not available from any of Digikey, Mouser, or Mikroe. Have you been able to successfully drive your sensorless BLDC motor with this TC78B009FTG demo board and also with your C++ code? Is there a GUI to determine the motor parameters like there is for the Allegro products?

asukiaaa commented 2 years ago

with this TC78B009FTG demo board and also with your C++ code?

No, I don't use demo board. I created a PCB to extend pins of it to breadboard.

Is there a GUI to determine the motor parameters like there is for the Allegro products?

What do you mean about GUI?(data sheet?) I used arduino-esp32 to use these drivers so I don't use any GUI.

davidcyr2000 commented 2 years ago

What I meant by the GUI is a Windows PC program that exercises the motor to determine the motor parameters that you need to input to the motor controller.  Once the motor parameters are determined using the GUI, then the MCU (Arduino or ESP32) can drive the motor controller chip (A89306/7) with PWM or I2C, etc. 

Given the absence of documentation within your code, I couldn’t tell if you do the motor parameter determination in your Arduino code or you have to find motor characteristics elsewhere. Thanks!

asukiaaa commented 2 years ago

Thank you for the information about the GUI tool. I searched but I could not find that. Can you share some link to download it?

I'm not sure the presence of some tool for TC78B009FTG.

davidcyr2000 commented 2 years ago

The GUI is available directly from Allegro after you show proof of purchase for the A89307 or its demo board. You can "exercise” the GUI by running it without a demo board to see how registers are updated with changes to the parameters (including the sliders).  The GUI is designed to determine motor parameters that are then stored in EEPROM.  There is an “Application Note” that describes how to use the GUI to determine motor characteristics.   

After a couple of days looking thru the A89306 code that has no embedded documentation and uses rather cryptic C code, the challenge would be to move the code around to align the register differences. 

How do you determine motor parameters without a tool like the GUI?

asukiaaa commented 2 years ago

The GUI is available directly from Allegro after you show proof of purchase for the A89307 or its demo board.

Thank you for the information. I understood that the tool is not so open.

How do you determine motor parameters without a tool like the GUI?

I could not drive motor correctly so may be I could not set correct parameters.

davidcyr2000 commented 2 years ago

Were you able to download the GUI from Dropbox? 

asukiaaa commented 2 years ago

No, I don't know the link of it and don't have connection to allegro.

asukiaaa commented 2 years ago

Thank you for sharing the tool but it is strange to change the extension and execute it. How do you contact with worker in allegro? I want to get the tool for A89306 if exists.

davidcyr2000 commented 2 years ago

I changed the "exe" because some systems won't accept sending executable programs because of possible viruses. In order to access the A89307 GUI and other documentation, I had to have an account with Allegro using a company email address and I had to purchase the product; in this case the evaluation PCB. When I tried to find information on the A89306, it appears there is no information available. See the attached screen capture. There is only information available for the A89307. I suggest you send an email to Phil Stathas pstathas@ALLEGROMICRO.com and ask him what is available for the A89306. Allegro_Login

asukiaaa commented 2 years ago

I see, thank you for the information.

davidcyr2000 commented 2 years ago

If you want to make a sensorless BLDC controller, you might have better luck with the A89307 given there is a GUI with very detailed instructions how to determine motor parameters plus the evaluation/demo PCB with a schematic and list of parts used in the demo board. You have 95% of the code done already, since the differences between the A89306 and A89307 are minimal, with only a few registers modified slightly.
Also, it appears that the A89307 is an Improvement over the A89306. Please let me know if you decide to do that.

davidcyr2000 commented 2 years ago

Have you given thought to trying the A89307?

asukiaaa commented 2 years ago

No, I'm not. I wanted to try but the A89307 was sold out on digikey at beginning of January. (even now) https://www.digikey.jp/ja/products/detail/allegro-microsystems/A89307KETSR-J/15516846

davidcyr2000 commented 2 years ago

There is one evaluation demo board available at Digikey. I think that would be the best way to prototype and test the A89307.

asukiaaa commented 2 years ago

I don't have motivation to buy the expensive board now. https://www.digikey.jp/ja/products/detail/allegro-microsystems/APEK89307KET-01-T-DK/15775907?s=N4IgTCBcDaIIIA4CcBmADAdhAXQL5A

davidcyr2000 commented 2 years ago

Asuki, what about this idea? We would like to try the A89307, but we don't have the expertise to develop the code that you did for the A89306. If we purchase and send you the A89307 evaluation board at our cost, would you convert the A89306 code to the A89307 and fully test it? The chips will be available at Digikey by June 2022, or possibly sooner, since they had 3000 units in stock yesterday (not for very long)! I am not sure what your motivation is for what you do, so it’s difficult to know what to ask or suggest beyond this. If you are interested in this idea, we could further discuss offline via email (davidjcyr@hotmail.com) or phone (+1-514-825-8585). I am located in Montreal, Quebec, Canada in the Eastern Time zone. Thank you! David Cyr

asukiaaa commented 2 years ago

Thank you for the suggestion. If you buy the board for me, I can try but it is not sure to drive blush less motor with the A80307 because A89306 is unstable in my usage. If you can agree that there is a possibility not to drive the motor with my code, I want to try. If it's OK, please reply email from asukiaaa@gmail.com . I live in Saitama, Japan.