Search found 3 matches
- Mon Jul 31, 2023 6:00 am
- Forum: Libraries & Hardware
- Topic: PWM pin in STM32F103C8 blue pill
- Replies: 8
- Views: 8461
Re: PWM pin in STM32F103C8 blue pill
Thanks a lot @ozcar , I understood your point. Thanks @ag123 , for giving the idea of HardwareTimer. I will try with that also.
- Sun Jul 30, 2023 8:52 am
- Forum: Libraries & Hardware
- Topic: PWM pin in STM32F103C8 blue pill
- Replies: 8
- Views: 8461
Re: PWM pin in STM32F103C8 blue pill
This is the basic code:- #include <Arduino.h> void setup() { pinMode(PA1, OUTPUT); pinMode(PA2, OUTPUT); pinMode(PA3, OUTPUT); pinMode(PA6, OUTPUT); pinMode(PA7, OUTPUT); pinMode(PB0, OUTPUT); pinMode(PB1, OUTPUT); pinMode(PB10, OUTPUT); pinMode(PB11, OUTPUT); pinMode(PB5, OUTPUT); pinMode(PB4, OUTP...
- Sat Jul 29, 2023 6:55 am
- Forum: Libraries & Hardware
- Topic: PWM pin in STM32F103C8 blue pill
- Replies: 8
- Views: 8461
PWM pin in STM32F103C8 blue pill
I am new to STM32 and I am using STM32F103C8 blue pill for one of my projects. I tried making every PWM pin to some value using the analogWrite function, but only 3-4 of the total pins showed the exact voltage. What can be the reason for this? Actually, for the project I am controlling 6 motors usin...