Search found 43 matches

by GonzoG
Tue Oct 20, 2020 8:42 pm
Forum: General discussion
Topic: EEPROM write sometimes takes too much time
Replies: 17
Views: 1486

Re: EEPROM write sometimes takes too much time

Unfortunately no. Good to have the link in this thread now but the warnings should really be in the main documentation page for the library itself. Well, it looks like you haven't read it carefully enough. At the top there's a fragment that should make you think twice: Th EEPROM library provides an...
by GonzoG
Tue Oct 20, 2020 5:22 pm
Forum: General discussion
Topic: EEPROM write sometimes takes too much time
Replies: 17
Views: 1486

Re: EEPROM write sometimes takes too much time

... should really have explicit warning at the top about the risk of greatly reducing flash lifespan. Have you read this ?? https://github.com/stm32duino/wiki/wiki/API#EEPROM-Emulation Emulation is made in Flash, with all constraints related to Flash operation: * whole sector/page erased and writte...
by GonzoG
Sun Oct 18, 2020 8:59 pm
Forum: Off topic
Topic: charging lipo batteries
Replies: 12
Views: 468

Re: charging lipo batteries

ag123 wrote:
Sun Oct 18, 2020 12:53 pm
average voltage of 4.2v is maintained.
No. It's not average 4.2V. It's maximum 4.2V.
And with capacitor you'll definitely get more.
by GonzoG
Sun Oct 18, 2020 8:40 pm
Forum: General discussion
Topic: Blue Pill running slow
Replies: 18
Views: 595

Re: Blue Pill running slow

I don't have oscilloscope, so I used 2 pills (black F411 and blue F103) to do a "ping test" and got about 2-3us response time.

ps. IanNoob, to add images from hdd, you need to add them as attachments.
by GonzoG
Sun Oct 18, 2020 9:05 am
Forum: Off topic
Topic: charging lipo batteries
Replies: 12
Views: 468

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: 229

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: 18
Views: 595

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: 18
Views: 595

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: 109

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: 12
Views: 468

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)

Go to advanced search