Search found 1668 matches

by ag123
Sun Jun 05, 2022 11:25 am
Forum: USB bootloader
Topic: Choosing a suitable bootloader for stm32f103rct6
Replies: 2
Views: 7639

Re: Choosing a suitable bootloader for stm32f103rct6

that old 'roger's bootloader' may work too.
https://github.com/rogerclarkmelbourne/ ... bootloader
you could try flashing a stock firmware from there. it is normally for stm32f103c8. But f103rc may work, no guarantees though.
by ag123
Sat Jun 04, 2022 3:39 pm
Forum: Off topic
Topic: charging lipo batteries
Replies: 25
Views: 16007

Re: charging lipo batteries

for solar cells, i think the output for each cell is about 0.7v. But some modules have a number of them connected in series that give those higher voltages. If indivitual cells can be used, 4.2v is about 6 cells in series. This would likely make it more managable, e.g. one could connect exactly 6 ce...
by ag123
Fri Jun 03, 2022 6:26 pm
Forum: General discussion
Topic: ADC sampling time setting.
Replies: 2
Views: 1015

Re: ADC sampling time setting.

you can use a hardware timer. https://github.com/stm32duino/wiki/wiki/HardwareTimer-library HardwareTimer timer(TIM1); void readAdc() { uint16_t value = analogRead(pin); ... } void setup() { timer.pause(); timer.setoverflow(15000,, MICROSEC_FORMAT); timer.refresh(); timer.attachInterrupt(readAdc); t...
by ag123
Fri Jun 03, 2022 9:11 am
Forum: General discussion
Topic: STM32F103C8T6 Reference Voltage READ
Replies: 15
Views: 5051

Re: STM32F103C8T6 Reference Voltage READ

your formula looks right, the adc won't get the full 3.3v at the top in part due to the various electronics (e.g. transistors in there) being a little less than 3.3v looks normal. As things I do normally won't need very high precision or accuracy, i'd make do other ways you could verify things is to...
by ag123
Fri Jun 03, 2022 7:31 am
Forum: General discussion
Topic: STM32F103C8T6 Reference Voltage READ
Replies: 15
Views: 5051

Re: STM32F103C8T6 Reference Voltage READ

Vrefint is in the data sheet https://www.st.com/en/microcontrollers-microprocessors/stm32f103c8.html 5.3.4 Embedded reference voltage VREFINT min 1.16, typ 1.2 max 1.24 v that is the adc reading you get for 1.2v so assuming a linear range, and that the top is vdd 3.3v by linear projection : adc read...
by ag123
Thu Jun 02, 2022 4:26 am
Forum: General discussion
Topic: Problem with data reception after iBus
Replies: 8
Views: 2754

Re: Problem with data reception after iBus

Serial monitor is normally Serial.println("hello world"); you can replace that with anything you want to print, so you could print anything to have it sent back to your serial monitor to look at I'd suggest copy that library into the project folder both the include and cpp file, then put t...
by ag123
Thu Jun 02, 2022 4:19 am
Forum: General discussion
Topic: STM32F103C8T6 Reference Voltage READ
Replies: 15
Views: 5051

Re: STM32F103C8T6 Reference Voltage READ

google search for RM0008 stm32f103 you should get this https://www.st.com/resource/en/reference_manual/cd00171190-stm32f101xx-stm32f102xx-stm32f103xx-stm32f105xx-and-stm32f107xx-advanced-arm-based-32-bit-mcus-stmicroelectronics.pdf look in the chapter for ADC, look under temperature sensor section i...
by ag123
Wed Jun 01, 2022 2:21 pm
Forum: General discussion
Topic: Problem with data reception after iBus
Replies: 8
Views: 2754

Re: Problem with data reception after iBus

if you can output to the serial monitor I'd suggest patch Serial.print() statements in the code, to see what is happening there are some things that is a little curious https://github.com/bmellink/IBusBM/blob/master/src/IBusBM.cpp#L84 #if defined(_VARIANT_ARDUINO_STM32_) void IBusBM::begin(HardwareS...
by ag123
Tue May 31, 2022 8:42 am
Forum: General discussion
Topic: STM32F103C8T6 Reference Voltage READ
Replies: 15
Views: 5051

Re: STM32F103C8T6 Reference Voltage READ

check the core you used. it may help to have #include <Arduino.h> in there, normally not needed.
by ag123
Tue May 31, 2022 8:14 am
Forum: General discussion
Topic: STM32F103C8T6 Reference Voltage READ
Replies: 15
Views: 5051

Re: STM32F103C8T6 Reference Voltage READ

that should work for 'official' core, e.g.

Code: Select all

uint16_t value = analogRead(AVREF);
on datasheet, section 5.3.4 Embedded reference voltage
https://www.st.com/resource/en/datashee ... f103c8.pdf
that is the adc value you get for the internal voltage 1.2v

Go to advanced search