Search found 25 matches

by ABOSTM
Tue Aug 04, 2020 9:14 am
Forum: General discussion
Topic: Changing PWM duty cycle on BluePill produces wrong output
Replies: 9
Views: 1284

Re: Changing PWM duty cycle on BluePill produces wrong output

Hi @Leviro, Difficult to know what appends to PWM with a voltmeter, If you can observe signal with oscilloscope that would be better. That said, setPWM() is made for simplicity to start a PWM, but it is not designed to update a running PWM because it performs a full initialisation of the timer, and ...
by ABOSTM
Wed Jun 24, 2020 7:58 am
Forum: STM boards (Discovery, Eval, Nucleo, ...)
Topic: Softwareserial issue on stm32 f411re
Replies: 8
Views: 1801

Re: Softwareserial issue on stm32 f411re

Hi @DonGorgon, The PullRequest provides some informations about softwareSerial implementation. https://github.com/stm32duino/Arduino_Core_STM32/pull/645 As you can see, yes there is a limitation: baudrate max 57600 with 80MHzh MCU frequency. And this is for a single SoftwareSerial. Nevertheless,the ...
by ABOSTM
Fri Jun 12, 2020 1:42 pm
Forum: General discussion
Topic: PWM + Encoder = Please Help :-)
Replies: 13
Views: 2369

Re: PWM + Encoder = Please Help :-)

STM32 Cube HAL is the StMicroelectronics official drivers. In you jroject you really need to distinguish 2 things: * PWM outuput. In your sketch it is done thanks to HardwareTimer library. This is very good. My proposal, in order to simply you things, is to use also use following function to update ...
by ABOSTM
Fri Jun 12, 2020 12:52 pm
Forum: General discussion
Topic: PWM + Encoder = Please Help :-)
Replies: 13
Views: 2369

Re: PWM + Encoder = Please Help :-)

All API for HardwareTimer are detailed here: https://github.com/stm32duino/wiki/wiki/HardwareTimer-library#API You will found API to change period (Overflow) pulse duartion or duty cycle (CaptureCompare). No need to pause/resume timer for that (even if aPI exist if needed) You can also found some ha...
by ABOSTM
Fri Jun 12, 2020 12:44 pm
Forum: General discussion
Topic: PWM + Encoder = Please Help :-)
Replies: 13
Views: 2369

Re: PWM + Encoder = Please Help :-)

Hi @GVisser, Unfortunately, HardwareTimer library doesn't support Encoder mode, but hardware support it: A timer can be used with 2 input signal from encoder, and timer counter will count according to encoder rotation (backward / forward). So one solution would be to use STM32 cube HAL API to benefi...
by ABOSTM
Tue May 26, 2020 2:19 pm
Forum: General discussion
Topic: Change Timer clock source
Replies: 2
Views: 951

Re: Change Timer clock source

Hi @MystikReasons, Current implementation of HardwareTimer does not support ETR management. And there is no plan to do it. But it is still possible to use STM32 HAL API (which are usable directly within Arduino sketch) to use ETR as clock source. When you say the external quartz crystal (32.768kHz) ...
by ABOSTM
Mon May 25, 2020 9:12 am
Forum: Libraries & Hardware
Topic: [HardwareTimer] one pulse mode
Replies: 1
Views: 901

Re: [HardwareTimer] one pulse mode

Hi @Patrick,
Current implementation of HardwareTimer does not support OnePulse mode. And there is no plan to do it.
Any contribution is welcome ;)

But it is still possible to use STM32 HAL API (which are usable directly within Arduino sketch) to use OnePulse mode.
by ABOSTM
Thu Apr 02, 2020 6:49 am
Forum: STM32L4 based boards
Topic: Timer starts and then freezes.
Replies: 9
Views: 4641

Re: Timer starts and then freezes.

From my point of view there is no reason to call pause() and resume() within Update_IT_callback()
by ABOSTM
Wed Apr 01, 2020 10:53 am
Forum: STM32L4 based boards
Topic: Timer starts and then freezes.
Replies: 9
Views: 4641

Re: Timer starts and then freezes.

Hi @Fabaum, line below looks strange to me: tempo=map(potenciometro,10,1023,100000,100); What happends if potencimetro is below 10 ? Also the 3rd argument should be greater than the 4th one. So can you try with this : tempo=map(potenciometro, 0,1024, 100, 100000); Can you also print the values of po...
by ABOSTM
Fri Mar 20, 2020 5:57 pm
Forum: General discussion
Topic: softwareserial for Nucleo boards
Replies: 5
Views: 1023

Re: softwareserial for Nucleo boards

OK, I tested my NUCLEO_L152RE and it is true that is doesn't work with official core version V1.8.0. It is a know issue, similar to https://github.com/stm32duino/Arduino_Core_STM32/issues/917 Rework of HardwareTimer library solve this issue but this is not yet officially released. So either you can ...

Go to advanced search