Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extra 4 PWM motor outputs
#16
Btw, thanks a lot. Your responses help me out to know what can be the issues.
It would be good to know why uart3 didn't work :-(
Reply
Login to remove this ad | Register Here
#17
You can use the same timer for different motors as long as a different channel is used. If you look at the default configuration for that FC (below) you will see that MOTOR 1 & MOTOR 2 both use TIM3 but they use different channels of that timer. Likewise with MOTOR 3 & MOTOR 4 which both use TIM2 but with different channels. It's a combination of the timer and channel that makes it unique (the same as it is with stream and channel for the DMA). So there must have been some other internal conflict going on, or a bug in Betaflight with the timer combinations being used. It's a bit frustrating having to use trial and error to get things working when figuring out the solution should be logical.

Quote:resource MOTOR 1 B00
resource MOTOR 2 B01
resource MOTOR 3 A03
resource MOTOR 4 A02

timer B00 AF2
# pin B00: TIM3 CH3 (AF2)
timer B01 AF2
# pin B01: TIM3 CH4 (AF2)
timer A03 AF1
# pin A03: TIM2 CH4 (AF1)
timer A02 AF1
# pin A02: TIM2 CH3 (AF1)
Reply
#18
True. We all know how software works. There is always a bug or sth odd there and we don't know it :-)
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Help Mobula 6 Motor stuttering Shellodan 3 605 20-Jan-2023, 10:05 AM
Last Post: Shellodan
  High KV motor with 6s Pack and Throttle Limit thrasher7811 14 9,264 22-Aug-2022, 07:15 AM
Last Post: romangpro
  Does the uniformity or neatness of motor windings affect performance??? BigBeard 15 864 08-Mar-2022, 05:18 PM
Last Post: BigBeard
  Strange sounds from motor /: GabeFPV 2 347 20-Dec-2021, 07:12 PM
Last Post: GabeFPV
  Very strange motor issue... GabeFPV 3 400 19-Dec-2021, 10:46 PM
Last Post: GabeFPV


Login to remove this ad | Register Here