agree for beginners, life is easier starting with a bigger mcu e.g. in the stm32f4xx series.
check out the nucleo boards from st if you are using the official stm core.
https://github.com/stm32duino/Arduino_Core_STM32
in particular check the specs of the relevant stm32f4xx mcu specs on
stm web site for the ram and flash sizes.
if you are new to micro-controllers programming, that stm32f103c8 blue pill only has 20k sram and 64k flash.
the 20k sram is particularly limiting and 64k flash isn't really a lot either, but works well for 'small' apps.
recently the somewhat more popular ones are the stm32f401 and stm32f411 boards
https://www.aliexpress.com/wholesale?ca ... =stm32f401
the stm32f401 and stm32f411 mcus (again check the specs) are a little less squeezy compared to stm32f103c8 and they have 32bit fpu.
floating point calcs is *much* faster.
i'm messing with a ili9341 lcd currently with the Adafruit library. struggling with various problems as well, no display, takes time to 'debug' and troubleshoot what is going on.
if you do not already have the lcd, i'd suggest to try sending the data back to your pc on the serial monitor. it is as easy as
and if you do not need very high speeds you can even use
Code: Select all
void setup() {
pinMode(PA0, INPUT_ANALOG);
}
void loop() {
Serial.println(analogRead(PA0));
delay(1);
}
if you pair that with a Raspberry Pi over usb, i'd guess you can even plot that data on a big computer monitor.
if you need more accurate timings, that can be achieved with a hardware timer. u'd need to read up on that e.g. in the wiki and examples.
i've done something that way by hooking a h/w timer interrupt to fire at regular intervals. so that i've about 300 samples per sec, Arduino api as above is adequate at those speeds.