|
STM32F103C6 or STM32F103C8 |
x 1 | |
|
8 Digit 7 Seg Display module |
x 1 | |
|
Capacitor 100 nF |
x 1 |
|
Soldering Iron Kit |
|
|
arduino IDEArduino
|
Simple STM32 Frequency meter from 1Hz to 30 MHz (Arduino IDE)
A frequency meter, also known as a frequency counter, is a device or instrument used to measure the frequency of an oscillating signal. Frequency meters can come in different forms, ranging from simple handheld devices to sophisticated laboratory equipment. The frequency meter presented in the video displays the frequency in digital form, on a retro look 7 segment display module with 8 digits. In one of my previous videos I presented a way of making such an instrument using an Arduino that had a measurement range of 0 to 6 MHz.
This time the frequency meter uses an inexpensive STM32 microcontroller and this time, thanks to his better perfomances of the MCU, the frequency range is from 0 to 30 MHz, and therefore it is ideal for use in HF radio devices .
The code is taken from the rcl-radio site where you can view the original project. I left out the input part of the original project for the sake of simplicity and now the input signal can range from 0.5 to 3V. We can simply increase this range with a voltage divider at the input, consisting of two resistors.
If you want to make a PCB for your electronic project, PCBway is a great choice for you. PCBway is one of the most experienced PCB manufacturing company in China in field of PCB prototype and fabrication. They provide completed PCB assembly service with worldwide free shipping , and ISO9001 quality control system. Also, on their site there is an online gerber viewer where you can upload your gerber and drill files to render your board.
Otherwise, STM32 is a 32-bit ARM microcontroller developed by STMicroelectronics, and Arduino Bootloader can be installed on it, and it can be used as a standard Arduino. The Arduino IDE application can be used for writing, compiling, and uploading code to microcontroller board. This time we will not dwell on the method of installation and uploading the code, because we can find many detailed tutorials on the Internet, such as this one (https://www.instructables.com/Using-a-STM32-Like-an-Arduino-Tutorial-STM32F103C8/).
The device is really simple to build and consists of several components
- STM32F103C6 or STM32F103C8 microcontroller board
- 8 Digit 7 Seg Display module
- and one 100nF capacitor
And now let's test the device in real conditions. First we will use this rectangular signal generator for which you can find instructions for making in one of my previous videos.
As can be seen, the frequency of the generator and the frequency meter differ by a hundred Hertz at 30 Megahertz, but since this is not a laboratory professional device, we do not know whether the fault is with the generator or the frequency meter. However, this is a very small difference and can be ignored. Otherwise the frequency meter can be roughly calibrated in the code line:
TIMER1_BASE->ARR=36000;
Next I will measure the frequency of the sinusuidal signal at the output of this old Tone Generator.
And finally a short conclusion. This is an incredibly inexpensive measuring device, the total cost of which does not exceed a few dollars, and is an indispensable instrument in any laboratory. For reliability and universality, it is necessary to add a simple passive or active circuit to the input to increase the input voltage range. The device is embedded in a suitable miniature box made of PVC material and lined with self-adhesive colored wallpaper.
Simple STM32 Frequency meter from 1Hz to 30 MHz (Arduino IDE)
- Comments(0)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Mirko Pavleski
- Testing 2500W Large Induction Heater An induction heater is a device that uses electromagnetic induction to heat objects. It consists of...
- Arduino FFT Audio Spectrum analyzer on 8x32 color matrix WS2812B The spectrum analyzer displays the amplitude of signals as a function of frequency, allowing engine...
- Unusual Led Ring Arduino Clock, Temperature, and Humidity meter There are many arduino clock projects with temperature and humidity readings where the results are ...
- How to make simple portable PEMF Magnetic Pulser PEMF (Pulsed Electromagnetic Field Therapy), which is also known as magnetic pulse therapy uses ele...
- Single Mosfet Mini SSTC Tesla coil with 10 + cm Spark A Solid State Tesla Coil (SSTC) is a type of Tesla coil that uses solid-state components such as tr...
- How to Make EM84 (6E2) Vacuum Tube Stereo VU Meter A VU meter, also known as a Volume Unit meter, is a device used to display the audio signal level ...
- Universal Arduino Staccato controller for SSTC and VTCC Tesla Coils The VTTC Staccato Controller was developed in the attempt to create longer sparks from VTTCs while ...
- DIY extremly Sensitive and cheap Arduino Seismometer A seismometer, is an instrument used to detect and record ground motion caused by seismic waves, su...
- DIY Extremly Sensitive and cheap Geophone sensor for Earthquakes detecting A geophone is a device used in geophysics to detect ground movement. It is specifically designed to...
- Arduino FFT Spectrum analyzer on VFD display GP1287 An audio spectrum analyzer is a device that visualizes the frequency content of an audio signal. It...
- DIY simple Spark Gap Tesla Coil Tesla coil is a type of resonant transformer circuit invented by Nikola Tesla around 1891. It is a ...
- DIY PC controlled high power PEMF Therapy Device PEMF or Pulsed Electromagnetic Field therapy is a type of therapy that uses electromagnetic fields ...
- DIY Precise Arduino Miliohmmeter In practice, we very often need to measure low resistances. Measuring low-value resistances, especi...
- The simplest way to determine the quality of lighting in your home - bulb flickering meter Light flickering can be a common issue and may occur with various types of bulbs, including incande...
- Classic Style Arduino Weather Station with three Oled Displays So far I have made several weather stations that display local values as well as internet data, whic...
- How to build simple cheap Hulda Clark Syncrometer Hulda Clark's Syncrometer was a device she claimed could detect the presence of various substances ...
- DIY simplest small CRT Oscilloscope An oscilloscope is a measuring instrument used to visualize and analyze electronic signals. It is c...
- Arduino Door Lock with Smartphone Flashlight Login (Li-Fi project) There are many different arduino door lock projects, where the access method is using a keyboard, R...
-
Open Source Very Large Stick - Freejoy & MMjoy2 breakout board
500 0 0 -
RF Control training board for students based on ESP32 C3
671 0 2 -
Aquarius+ Computer, Standard PCB
895 0 4 -
KINETIC COASTERS with a TWIST! Laser or 3D Print some DIY Magic
605 0 1 -
RPI - 8 IO PLC With ATTiny85 Watch Dog
531 0 1 -
Nintendo Famicom HVC-001 Controller Shells
624 0 1 -
COMMODORE 128 DIAGNOSTIC REV.785260 KEYBOARD DONGLE
593 0 4 -
COMMODORE 128 15KHz DISPLAY ADAPTER (C128 80 COLUMN ADAPTER)
798 1 6 -