cancel
Showing results for 
Search instead for 
Did you mean: 

Confused about input capture channels

JLp.1
Associate II

Id like to write a program to read 2 main frequencies, first one from velocity sensor and second from ignition coil. Both of them to build a car gauge dashboard, (there'll be a few more analog signals to read tough).

Given that i come from atmega 328 that has only one input capture module, id like to know if the stm bluepill has the capacity to read both frequencies in the same chip...

I'll need to read 2 frequencies, read analog signals, writing steps bits to update gauges and display data in tft 2.4'' module, so im lookinf for advice about selecting the right chip

Regards

Julian

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @JLp.1 (Community Member)

About the right chip, the best way is to use STM32CubeMX MPU/MCU Selector. This will help you find the right device for your needs.

Take a look at STM32 Ecosystem there is a whole series of dev board (Nucleo, DK...)

Here the link of good starting point:

STM32 MCU Developer Zone - STMicroelectronics

Thank you to Please my answer as answered.

Best regards,

Romain,

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

6 REPLIES 6
RomainR.
ST Employee

Hello @JLp.1 (Community Member)

STM32F103C8 Datasheet (DS5319 Rev 18) embeds 4 16bit TIMER.

They all have at least 4 GPIOs capable of capturing input and thus making period/frequency/duty cycle measurements.

You can also refer to AN4013 STM32 cross-series timer overview chapter 2.3 for an input capture mode.

From a firmware point of view, you should look at the STM32CubeF1 library example

https://github.com/STMicroelectronics/STM32CubeF1/tree/master/Projects/STM3210E_EVAL/Examples/TIM/TIM_InputCapture.

Let me know if it will help and clarifies your request ?

Best regards,

Romain

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Peter BENSCH
ST Employee

One additional comment: if you really want to use this board called Blue Pill, you should know that the STM32s installed there are usually counterfeits, i.e. not originals from STMicroelectronics, even if they look like it. In many cases, they behave completely differently from the originals. So don't be surprised if something doesn't work as expected.

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

It certainly clarifies. Thanks.

About the right chip to do the job I mentioned, what do you think?

Remember, need to read and proccess two frequencies (khz not more than that), update about 10 digital pins, diplay data through spi and drive some neopixels strips....

Would you think 32F103 is enough?

kind regards

julian

I had heard such a complain about those modules...

Is there a way to test the module to know wheter the st on board is original or clone ? I've bought a few already....

regards

julian

Hello @JLp.1 (Community Member)

About the right chip, the best way is to use STM32CubeMX MPU/MCU Selector. This will help you find the right device for your needs.

Take a look at STM32 Ecosystem there is a whole series of dev board (Nucleo, DK...)

Here the link of good starting point:

STM32 MCU Developer Zone - STMicroelectronics

Thank you to Please my answer as answered.

Best regards,

Romain,

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Peter BENSCH
ST Employee

Well, STMicroelectronics manufactures the STM32 originals and also guarantees their functioning, but of course cannot make any statements about any replicas or clones. The Blue Pill board in particular has attracted attention in recent years for using STM32F103 fakes. This will probably not be noticed if you only flash an LED with it.

However, I have seen websites somewhere in the maker scene that deal with distinguishing fakes from originals, e.g. on Greaseweazle's Github account.

In my opinion, however, there is no point in spending much time on this, as the probability of finding a Blue Pill with an original STM32 is close to zero.

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.