|
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
- Arduino 3D Printed self Balancing Cube Self-balancing devices are electronic devices that use sensors and motors to keep themselves balanc...
- How to make simple Arduino RGB Led strip VU Meter VU meter or volume unit meter is a device intended for visual presentation of the audio signal. It ...
- DIY Simple Antistress and Relaxation PEMF Device based on Schumannn resonance frequency 7.83 Hz Schumann resonances are global electromagnetic resonances, generated by lightning discharges in the...
- DIY Si4825 A10 multiband Radio (MW,SW,FM) Thanks to the production of specialized radio chips, nowadays it is possible to make a quality mult...
- DIY simple HUNTER Led Game with Arduino Some time ago I presented you a simple to make, but interesting game, a 1D version simulation of "P...
- XHDATA D-109WB Radio Short Review with complete disassembly Recently I received a shipment of a radio from the brand XHDATA model: D-109WB, so I immediately de...
- Arduino Rotary encoder combination lock (Arduino door lock system with Rotary Encoder) Rotary dial safes typically use a mechanical combination lock. They are valued for their simplicity...
- DIY DRSSTC Music Tesla coil with Interrupter using cheap Driver Module DRSSTC (Dual resonant solid state tesla coil) is a type of Tesla coil that uses solid-state compone...
- Arduino HPDL1414 Retro Clock with Set and Alarm Functions The HPDL-1414 is a 16-segment LED display with four printable fields that is over twenty years old....
- How to turn a 7 inch Elecrow pi terminal into a standalone SDR Radio Today I received the Pi Terminal-7” IPS HMI CM4 Panel All-In-One Module Raspberry Pi Computer from E...
- DIY Simple Functional Lakhovsky MWO (Multiwave Oscillator) Therapy Device The Lakhovsky Multiwave Oscillator (LMO) is a device that was developed by Georges Lakhovsky in the...
- DIY simple Advanced Weather station (5day forecast) and Internet Radio ELECROW crow panel 2.8 inch esp32 display module is ideal for making simple but also relatively com...
- How to turn a Mouse into a Wireless Tuning Knob for SDR Radio A software defined radio basically consists of an RF front-end hardware part and specialized softwa...
- Arduino Car Paint Thickness Indicator - Meter A paint thickness indicator is useful in industries like automotive, aerospace, marine, and constru...
- Simple Arduino Solar Radiation Meter for Solar Panels The sun provides more than enough energy to meet the whole world’s energy needs, and unlike fossil f...
- Simple ESP32 CAM Object detection using Open CV Object detection is a computer vision technique that involves identifying and locating objects with...
- Arduino OPLA IoT Kit blink_ Example and Symon Says Game The Arduino Opla IoT Kit is a versatile kit designed for creating and managing Internet of Things ...
- How to make Simplest and Cheapest compact Internet Radio - Yoradio Internet radio is a digital audio service that streams music, news, and other forms of audio conten...
-
-
-
kmMiniSchield MIDI I/O - IN/OUT/THROUGH MIDI extension for kmMidiMini
129 0 0 -
DIY Laser Power Meter with Arduino
191 0 2 -
-
-
Box & Bolt, 3D Printed Cardboard Crafting Tools
172 0 2 -