Simple STM32 Frequency meter from 1Hz to 30 MHz (Arduino IDE)

  Рет қаралды 5,792

Mirko Pavleski

Mirko Pavleski

Күн бұрын

Пікірлер: 12
@bennguyen1313
@bennguyen1313 Жыл бұрын
I understand the signal goes to an input pin, but then what happens inside? For example, to measure frequency, common techniques would be: 1a) Configure free-running timer, and whenever a transition is detected, the ISR code would read the timer's counter to compute the frequency 1b) Configure Input-Timer Capture, where the timer value is latched when an edge is detected. The Isr code would read the timer's latched value to compute frequency 2) Configure a timer for a specific period of time, and count the number of ISR interrupts due to edge transitions that occur during that time to compute frequency Some STM32 have pins that can be configured for "External Clock Input" Input, where the hardware peripheral, automatically counts the number of transitions on the line! There's a post "External TRigger for TIMER 3" that even shows how a non-ETR pin (ex. CH3) can be used by as the input to the Slave Mode Controller (TIMx_CCMR1=1) by selecting the XOR of CH1,2,3 as the TI1 source (TIMx_CR2.TI1S = 1). However, I assume you still need a precise timer running to interrupt and see how many transitions were counted during that time?
@electronics.unmessed
@electronics.unmessed Жыл бұрын
Love your ideas of making inexpensive measurement equipment for hobbyists!
@siliconvalley4066
@siliconvalley4066 7 ай бұрын
FYI, If you set the ETR prescaler to divide by 8, it counts up to 240MHz. This is done by changing the SMCR register value: TIMER2_BASE->SMCR = (1
@gardeningfromscratch.
@gardeningfromscratch. Ай бұрын
Great project, I want to build but can't get it to compile in Arduino IDE 2.3.2, using STM32F103C8T6 just get lots of these "Compilation error: base operand of '->' is not a pointer". Any suggestions? Sorted ! I needed the dan.drown board definitions, not the "official" stm32 definitions.
@moonwalker573
@moonwalker573 Жыл бұрын
excellent
@NaderGator
@NaderGator 8 ай бұрын
cool project .. can this be done with "OLED Display Module 128X64 " ?!
@electronicscaos
@electronicscaos Жыл бұрын
Everything MCU'd nowadays... You can do it with some decade counters, an inverter buffer and a crystal for far cheaper and simpler.
@MirkoPavleskiMK
@MirkoPavleskiMK Жыл бұрын
Maybe so, but making it would be much more complicated
@odissey2
@odissey2 8 ай бұрын
I would argue about "cheaper"
@argentinomacrifuevidaltamb3772
@argentinomacrifuevidaltamb3772 Жыл бұрын
Excelente trabajo. Gracias!!!
How to make Simple 500KHz Oscilloscope with STM32 ( Arduino IDE )
12:22
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 7 МЛН
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 18 МЛН
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,4 МЛН
How to make Simplest and Cheapest compact Internet Radio   Yoradio
18:35
"turn Your Cfl Lamp Into An Induction Heater!"
3:30
ElectraBoost
Рет қаралды 25 М.
Budujemy miernik częstotliwości - LabFun
7:59
LabFun
Рет қаралды 13 М.
INPUT CAPTURE using DMA || Measure High Frequencies and Low Width
11:01
Super simple Arduino Frequency Counter
11:11
learnelectronics
Рет қаралды 99 М.
#985 Frequency Counter Project with PCB
8:06
IMSAI Guy
Рет қаралды 15 М.
Frequency Counter And Crystal Tester / Meter - Assembly And Testing
18:24
Function/Waveform Generator || DIY or Buy
11:01
GreatScott!
Рет қаралды 390 М.