cancel
Showing results for 
Search instead for 
Did you mean: 

FM0+, FM3 & FM4 MCU

user_2884081
New Contributor II

Hi,

I'm using the Cypress Kit 037 to control a BLDC motor, and now I want to use an encoder to obtain the angle instead of using the observer.

I saw that the FM4-U120-9B560 has a code example of what I want to do (FOC with encoder), so I downloaded the AN, User Guide and software available here.

But the User Guide states in page 11 the files available in the s04_app folder. They can be seen too in page 23, Figure 6-10. These files are not present in the folder I got. Even when using the IAR Embedded Workbench IDE, all I can see is this:

pastedImage_4.png

I'm interested in the code that obtains the angle from the encoder. Where can I find it?

Thanks

0 Likes
1 Solution
JobinT_31
Employee

Hello,

It seems the APIs are included as a library, which is not released. You can see the .a file 'FM4_SeverMotor.a'.

Thanks

Jobin GT

View solution in original post

6 Replies
JobinT_31
Employee

Hello,

It seems the APIs are included as a library, which is not released. You can see the .a file 'FM4_SeverMotor.a'.

Thanks

Jobin GT

View solution in original post

user_2884081
New Contributor II

How can I use that library in other project?

user_2884081
New Contributor II

Hi,

I would like help using that library in other project. Can you please help?

Or at least have access to the .a file to see the code?

JobinT_31
Employee

Yes, you can use this project in any FM4 MCU [not in any other MCU], But might need to change project's configuration in IDE tool.

Thanks

Jobin GT

0 Likes
user_2884081
New Contributor II

Thanks Jobin

I'm trying to use that code with the "Sensorless FOC Motor Control" example of the Cypress Kit-037. Is there a way to get to that code to use it in a different kit?

JobinT_31
Employee

You can use different motors with the example.
Please refer: http://www.cypress.com/file/157806/download

Appendix E: Adapting the Design to Other Motors

If you are looking for custom kit connected to PSoC 4, it should work given the specs are taken care.

Thanks

Jobin GT

0 Likes
Top labels