Skip to main content
Visitor II
November 6, 2023
Solved

How to use more than one IHMO2A1 expansion boards.

  • November 6, 2023
  • 4 replies
  • 2270 views

I am using two ihmo2a1 expansion boards with STM32-Nucleo-F401RE to control 4 stepper motors. When I stack one expansion board on another. The signal given to the first board is transmitted to the second board. I removed comments to define the second expansion board in "xnucleoihm02a1.h" file but it did not work out. What changes have to be made to use more than one expansion board? I would be grateful if you could help me out. 

 

    This topic has been closed for replies.
    Best answer by FBL

    Hello @PavanKaruchola,

    Indeed, the pin configuration for each expansion board should be defined separately. You can refer to the user manual for more details about the hardware setup. You should check solder bridges mounted SB23 (OP0) and  SB7 (OP1) and respectively R23, R25 should be ON accordingly.

     

    4 replies

    Technical Moderator
    November 6, 2023

    Hello @PavanKaruchola 

     

    Which X Cube example are you using? Generally, you need to check the specifications of L6470 and align it with the configuration using the driver you have already shared.

    I hope this help you get an idea how to customize this firmware package. 

    Visitor II
    November 7, 2023

    Thank you for your response. I am using X-CUDE-SPN2 and STM32Cube IDE for programming. I have checked L6470.c and L6470.h there are only functions and classes defined for driver control. The above mentioned file consists of expansion board definitions. I defined two expansion boards by removing comments, even when I tried to run by one expansion board by defining a second expansion board it didn't work. I think the pin configuration for each expansion board should be defined properly. I tried to find the GPIO pin configuration in this case they are mentioned as OP1, and OP2 like. I hope my description of the problem is clear. Hoping for a reply.

     

    FBLAnswer
    Technical Moderator
    November 7, 2023

    Hello @PavanKaruchola,

    Indeed, the pin configuration for each expansion board should be defined separately. You can refer to the user manual for more details about the hardware setup. You should check solder bridges mounted SB23 (OP0) and  SB7 (OP1) and respectively R23, R25 should be ON accordingly.

     

    Visitor II
    November 16, 2023

    Do you mean, I have to remove the solder bridge from SB23 and place it on SB7 to use two expansion boards?

     

    Visitor II
    November 17, 2023

    I got it. Thanks for the guidance.

     

    Explorer
    February 23, 2025

    Hey PavanKaruchola,

    I am working with a similar setup. Two IMH02A1's to drive three steppers. Did you find that the only hardware change was to remove SB23 and add SB7? 

    Thanks,

    -Code_Blue