![]() I am using GPIO G pin 0, which is labelled "IO" on the board.Īny suggestions as to what I should try next, or ideas as to what it could be, are greatly appreciated. Platform ST STM32: The STM32 family of 32-bit Flash MCUs based on the ARM Cortex-M processor is designed to offer new degrees of freedom to MCU users. I have come to the conclusion that it is most likely an issue originating from the Nucleo 144 board, but a little stuck as to what the actual issue is. The motors are also being supplied a high enough voltage (12V) but are not drawing it all in. I have tried multiple of the same driver from various manufacturers, and still I get the same result. ![]() I do not believe this to be a problem to do with the A4988 driver. I've verified, using a multimeter, that the voltage being provided to the board via an STLINK USB is 5V (which I believe is sufficient), and the driver is also receiving the correct voltage of 5V. GPIOB->MODER |= (0b01 OTYPER &= ~(0b1 ODR &= ~(0b1 ODR ^= (0b1 << pin) // toggle between LOW and HIGH GPIOG->MODER &= ~(0b11 MODER |= (0b01 OTYPER &= ~(0b1 PUPDR |= (0b10 ODR &= ~(0b1 ODR ^= (0b1 AHB1ENR |= RCC_AHB1ENR_GPIOBEN // enable GPIOG clock High-performance and DSP with FPU, Arm Cortex-M7 MCU with 2 Mbytes of Flash memory, 216 MHz CPU, ArtLearn More. RCC->AHB1ENR |= RCC_AHB1ENR_GPIOGEN // enable GPIOG clock drivers/motor.c #include "./headers/stm32f767xx.h" Main.c #include "./headers/stm32f767xx.h" I also added some lines to toggle an LED (built onto the board) whenever the output to the A4988 driver is toggled between HIGH and LOW, which works fine. Having made some voltage readings using a multimeter, I have found that during and even while the program is paused, there is a steady voltage of around 1.2V being output by the pin. This is information on a product in full production. The A4988 driver expects a single rise in voltage to HIGH in order to step the motor. I am trying to control a stepper motor, using a A4988 driver along with a Nucleo 144 board with an STM32F767ZI on it. ![]()
0 Comments
Leave a Reply. |