A partial copy of the old forum is at https://stm32duinoforum.com.Sadly i cannot find any reasonable page about that now
Search found 125 matches
- 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: 3067
Re: Hello, Gilhad here again :)
- Sun Jun 14, 2020 9:02 pm
- Forum: General discussion
- Topic: STM32F103C8T6 with RTC DS3231 & I2C LCD 16x2
- Replies: 3
- Views: 5155
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...
- Sat Jun 13, 2020 10:37 pm
- Forum: General discussion
- Topic: PWM + Encoder = Please Help :-)
- Replies: 13
- Views: 11655
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...
- Sat Jun 13, 2020 4:30 pm
- Forum: General discussion
- Topic: First time with STM32
- Replies: 20
- Views: 13753
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...
- Fri Jun 12, 2020 5:16 pm
- Forum: General discussion
- Topic: PWM + Encoder = Please Help :-)
- Replies: 13
- Views: 11655
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 millisecon...
- Tue Jun 09, 2020 4:43 pm
- Forum: STM32F4 based boards
- Topic: STM32F407VET6 Black board
- Replies: 3
- Views: 6907
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...
- Thu May 28, 2020 11:27 pm
- Forum: General discussion
- Topic: 1.7 MHz Generation
- Replies: 2
- Views: 2458
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.
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.
- Sun May 17, 2020 5:22 pm
- Forum: General discussion
- Topic: Float To String - Flash memory consumption
- Replies: 5
- Views: 7235
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...
- Sat May 16, 2020 5:43 pm
- Forum: General discussion
- Topic: New APM32F103CB
- Replies: 47
- Views: 37199
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...
- Mon May 11, 2020 2:44 am
- Forum: General discussion
- Topic: STM32F103 (Blue Pill) with stm32duino + BME280 + SSD1306 strange behavior
- Replies: 11
- Views: 9711
Re: STM32F103 (Blue Pill) with stm32duino + BME280 + SSD1306 strange behavior
Code: Select all
display = new Adafruit_SSD1306(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire2);
bme = new Adafruit_BME280();