Hello @Shuren,
I worked with the TLE9879QX BLDC shield and example code with the Arduino Uno and recommended Trinamic motor when in the process of writing the post
Driving a BLDC Motor with Infineon’s TLE9879Qx 3-Phase Motor Driver Shield . I did not work with it extensively but based on the info I found wanted to provide some feedback to your questions.
Regarding 1, there is no function I found for getting motor speed feedback, you just set the speed with the command setMotorspeed.
Regarding 2, like Brian German mentioned, it’s up to you to provide the necessary motor power supply.
Regarding 3, I suspect you need to modify the parameters as you suggested but I have not worked with BLDC motors much and don’t have any specific suggestions. One thing that I did find useful though was to download the zip file “BLDC Shield for Arduino with TLE9879QXA40” at BLDC_SHIELD_TLE9879 - Infineon Technologies. This file includes the source code for the TLE9879QX used in the BLDC shield which includes define files for the default motor settings for FOC, HALL, BEMF parameters used in the example code. Have you verified you have your hall sensor connected correctly?
Regarding 4, I have not tried testing with other Arduinos so don’t have feedback. I would start with verifying the SPI connections are set correctly for the Mega.
Best Regards,
Scott Raeker