Search found 66 matches

by fredbox
Mon Jun 29, 2020 10:24 pm
Forum: General discussion
Topic: BARTH STG with STM32F091xC
Replies: 10
Views: 611

Re: BARTH STG with STM32F091xC

The boards menu is improved with Arduino 1.8.13. Arduino and STM32 boards each have their own menu.
A1.8.13_pq.png
A1.8.13_pq.png (10.98 KiB) Viewed 330 times
by fredbox
Wed Jun 24, 2020 3:41 pm
Forum: Let us know a bit about you and your projects
Topic: Hello, Gilhad here again :)
Replies: 2
Views: 150

Re: Hello, Gilhad here again :)

Sadly i cannot find any reasonable page about that now
A partial copy of the old forum is at https://stm32duinoforum.com.
by fredbox
Sun Jun 14, 2020 9:02 pm
Forum: General discussion
Topic: STM32F103C8T6 with RTC DS3231 & I2C LCD 16x2
Replies: 3
Views: 247

Re: STM32F103C8T6 with RTC DS3231 & I2C LCD 16x2

The first thing to do is to connect the hardware one piece at a time and then run a I2C scanner program to make sure that your I2C devices are detected at the right address. In Ardiuino, select File->Examples->Wire->i2c_scanner. DS3231 modules typically have two addresses, one for the clock and anot...
by fredbox
Sat Jun 13, 2020 10:37 pm
Forum: General discussion
Topic: PWM + Encoder = Please Help :-)
Replies: 13
Views: 559

Re: PWM + Encoder = Please Help :-)

Before setup include these lines: #define pin PA6 TIM_TypeDef *Instance = (TIM_TypeDef *)pinmap_peripheral(digitalPinToPinName(pin), PinMap_PWM); uint32_t channel = STM_PIN_CHANNEL(pinmap_function(digitalPinToPinName(pin), PinMap_PWM)); HardwareTimer *MyTim = new HardwareTimer(Instance); Inside setu...
by fredbox
Sat Jun 13, 2020 4:30 pm
Forum: General discussion
Topic: First time with STM32
Replies: 20
Views: 935

Re: First time with STM32

another option is literally is to improve my algorithm for the time drift offsetting Your method looks like a variation of Bresenham's algorithm where the error is applied to the value after some time. This was popular when PIC microcontrollers were all we had to play with. See https://www.romanbla...
by fredbox
Fri Jun 12, 2020 5:16 pm
Forum: General discussion
Topic: PWM + Encoder = Please Help :-)
Replies: 13
Views: 559

Re: PWM + Encoder = Please Help :-)

For rotary encoder see this thread: https://www.stm32duino.com/viewtopic.php?f=7&t=365 Edit - looks like you already found that one. You don't need to attach the timer interrupt to encoder1_read(). Delete this line: MyTim->attachInterrupt(encoder1_read); Systick polls the encoder at 1 millisecond in...
by fredbox
Tue Jun 09, 2020 4:43 pm
Forum: STM32F4 based boards
Topic: STM32F407VET6 Black board
Replies: 0
Views: 328

STM32F407VET6 Black board

If you live in the USA and have Amazon prime, there are a couple of different STM32F407VET6 boards available for < $10 before tax. I ordered one on Sunday (the Black board with the onboard battery) and it arrived one day later. Basic tests blinky, RTC, and SerialUSB all compile and run without any p...
by fredbox
Thu May 28, 2020 11:27 pm
Forum: General discussion
Topic: 1.7 MHz Generation
Replies: 2
Views: 237

Re: 1.7 MHz Generation

Review this information: https://github.com/stm32duino/wiki/wiki ... er-library
Note that 1.7mhz is not an integer multiple of 72 megahertz, so about as close as you can get is 72 / 42 = 1.714 Mhz.
by fredbox
Sun May 17, 2020 5:22 pm
Forum: General discussion
Topic: Float To String - Flash memory consumption
Replies: 4
Views: 362

Re: Float To String - Flash memory consumption

Give the Pstring library a try: http://arduiniana.org/libraries/pstring/ float f=1.234; char buforS[9]; PString(buforS, sizeof(buforS), f,4); Serial.println(buforS); Before adding the code above to an existing program: 19012 / 3556. After adding: 22056 / 3556. Output: Sketch uses 22056 bytes (33%) o...
by fredbox
Sat May 16, 2020 5:43 pm
Forum: General discussion
Topic: New APM32F103CB
Replies: 44
Views: 2475

Re: New APM32F103CB

Quoting from a different thread: I would love to hear how well the APM32 functions. It seems very promising, except the costs are a bit high for smaller quantities. I am particularly curious if USB is fully functional at the higher clock rate, and whether power usage is comparable. 20 pieces from th...

Go to advanced search