ut-robotics / picr22-team-kivipallur-jurto

0 stars 0 forks source link

MCU pin assignment #15

Closed ReikoR closed 1 year ago

ReikoR commented 1 year ago

image

Did you use STM32CubeIDE for creating the pin assignment? Based on the schematic I could not find pin assignment that would work.

For example pin PA2 and PA3 connect to timer 15 channels, but timer 15 does not have encoder mode. image

Some more information on how to configure timers in STM32CubeIDE is on the firmware page: https://ut-robotics.github.io/picr22-home/basketball_robot_guide/electronics/firmware.html

ReikoR commented 1 year ago

image

Encoder signals are not connected correctly.

Something like this is one option: image

Also motor driver PWM and direction signal ports have basically the same name as encoder signal nets: image