Search found 409 matches

by GonzoG
Sun Oct 18, 2020 9:05 am
Forum: Off topic
Topic: charging lipo batteries
Replies: 25
Views: 16965

Re: charging lipo batteries

Below 4.2v, I can pretty much leave it to change. When it reaches 4.2v I can kind of 'pwm' it to mimic a reducing current charging say for an hour and finally off. I think you haven't read charging algorithm.... You need to limit voltage to 4.2V and reduce current when below 4.2V. When charging vol...
by GonzoG
Sat Oct 17, 2020 2:09 pm
Forum: STM32 HID bootloader
Topic: Serial port errors using Arduino IDE and WeAct STM32F411 board
Replies: 8
Views: 13924

Re: Serial port errors using Arduino IDE and WeAct STM32F411 board

I use this bootloader and there are no errors.
I got .bin file from this link:
https://github.com/Serasidis/STM32_HID_ ... -670308140
by GonzoG
Sat Oct 17, 2020 1:23 pm
Forum: General discussion
Topic: Blue Pill running slow
Replies: 21
Views: 11154

Re: Blue Pill running slow

I wrote simple program for testing digital IO speed. For read tests it's using 2 different pins (PA1 and PB1). This it what I get (-O3 fastest optimization): Port I/O speed test. Arduino digitalRead/Write / digitalReadFast/WriteFast / STM32 register ********* Write test: ********* digitalWrite: 1853...
by GonzoG
Sat Oct 17, 2020 12:01 am
Forum: General discussion
Topic: Blue Pill running slow
Replies: 21
Views: 11154

Re: Blue Pill running slow

I found (using an oscilloscope) that the reaction time to a repeating pulse from a Nano is very 'juddery' and varies between: 1.7uS to 3.8uS using Method A (digitalRead) and 1.0uS to 2.6uS using Method B (digitalReadFast) Is this what you would expect? Am I doing something fundamentally flawed? Hav...
by GonzoG
Thu Oct 15, 2020 11:47 am
Forum: General discussion
Topic: AttachInterrupt use for shared IRQ handlers
Replies: 3
Views: 6239

Re: AttachInterrupt use for shared IRQ handlers

I think that every thing is quite clearly explained on the site you linked. All pins with same number are connected to line with same number. They are multiplexed to one line. IMPORTANT: You can not use two pins on one line simultaneously: PA0 and PB0 and P C0 and so on, are connected to Line0, so y...
by GonzoG
Sat Oct 10, 2020 4:32 pm
Forum: Off topic
Topic: charging lipo batteries
Replies: 25
Views: 16965

Re: charging lipo batteries

Charging li-ion algorithm is pretty simple and you can find it on many web sites.

You could use STM32 as uC for a charger but you'll need few more elements. Li-ion batteries are charged using CC/CV method, so you need to control voltage and current.
But it's easier to use dedicated uC (eg. TP4056)
by GonzoG
Wed Oct 07, 2020 7:44 pm
Forum: Off topic
Topic: Throttle wireless sensor
Replies: 16
Views: 10302

Re: Throttle wireless sensor

Those might be magnetic encoders.
by GonzoG
Mon Oct 05, 2020 12:51 pm
Forum: STM32F4 based boards
Topic: Continued issues with WeAct STM32F411
Replies: 11
Views: 15273

Re: Continued issues with WeAct STM32F411

... analogWriteResolution(16) + analogWrite() command still have only 12-bit resolution. ... I don't know why, by analogWrite resolution is limited to max ADC resolution. wiring_analog.c void analogWriteResolution(int res) { if ((res > 0) && (res <= 32)) { _writeResolution = res; if (_write...
by GonzoG
Sun Oct 04, 2020 8:03 am
Forum: General discussion
Topic: RTC losing time
Replies: 2
Views: 2788

Re: RTC losing time

If you use built-in RTC and board like blue pill, then remove PC14 and PC15 pins.
by GonzoG
Sat Sep 26, 2020 11:01 am
Forum: Let us know a bit about you and your projects
Topic: Hell world!
Replies: 5
Views: 5428

Re: Hell world!

Yes. If there is no support in Arduino compatible libraries you can use HAL or LL libraries.
Here's link to stm32duino Wiki:
https://github.com/stm32duino/wiki/wiki

And for API references:
https://github.com/stm32duino/wiki/wiki/API

Interrupts, DAC you can use same way as with Arduino boards.

Go to advanced search