arduinoProjects

Arduino-Primarily based Wi-fi Frequency Meter – Code and Circuit

EFY tested

This mission demonstrates an Arduino-powered wi-fi frequency meter that may measure the frequency of sinusoidal AC transmissions starting from 50Hz to 3kHz. Figures 1 and a pair of present prototype representations of the transmitter and receiver, respectively.

Wireless Frequency Meter
Fig. 1: Authors’ prototype of the transmitter facet
Arduino based Wireless Frequency Meter (Receiver side)
Fig. 2: Authors’ prototype of Wi-fi Frequency Meter (Receiver facet)

The block diagrams of the transmitter and receiver sides are proven in Figs 3 and 4, respectively.

Block diagram of the Wireless Frequency Meter transmitter side
Fig. 3: Block diagram of the transmitter facet
Block diagram of the Wireless Frequency Meter receiver side
Fig. 4: Block diagram of the receiver facet

Wi-fi Frequency Meter – Circuit and Working

The primary parts used within the Wi-fi Frequency Meter mission and their position is described beneath.

– Commercial –

Arduino-Primarily based Wi-fi Frequency Meter - Code and Circuit
Wireless Frequency Meter Components

Arduino Uno

Arduino Uno is an AVR ATmega328P microcontroller (MCU)-based growth board with six analogue enter pins and fourteen digital I/O pins. The MCU has 32kB ISP flash reminiscence, 2kB RAM and 1kB EEPROM. The board supplies the potential of serial communication by way of UART, SPI and I2C.

The MCU can function at a clock frequency of 16MHz. In our mission, Arduino Uno is used on the receiver facet. Digital I/O pin 5 is used as enter pin and is linked to DATA pin of 434MHz RX module. Digital I/O pins 7, 8, 9, 10, 11 and 12 of Arduino are used to interface with the 16×2 character LCD to show the worth of the measured frequency.

– Commercial –

Arduino-Primarily based Wi-fi Frequency Meter - Code and Circuit

Rectifier Diodes

Rectifier diodes (1N4007) are used to rectify the alternating enter sign to pulsating DC on transmitter facet.

MCT2E

MCT2E opto-coupler IC is used to isolate enter facet from the subsequent stage and in addition produce indicators from pulsating DC waveform on transmitter facet.

LCD

The 16×2 LCD, current on the receiver finish, is used to show the worth of frequency. It’s interfaced with Arduino Uno board in four-bit mode. LCD pins RS, EN, D4, D5, D6 and D7 are linked to digital I/O pins 12, 11, 7, 8, 9 and 10 of Arduino, respectively.

434 MHz TX-RX Modules

The 434MHz transmitter (TX) and receiver (RX) modules are used to transmit and obtain radio frequency (RF) indicators between two units. Provider frequency of the module used right here is 434MHz.

The circuit diagrams of the transmitter and receiver sides are proven in Figs 5 and 6, respectively.

Circuit diagram of the Wireless Frequency Meter transmitter side
Fig. 5: Circuit diagram of the transmitter facet
Circuit diagram of the Wireless Frequency Meter receiver side
Fig. 6: Circuit diagram of the receiver facet

Obtain supply folder: click on right here

The sign whose frequency is to be measured is utilized to check sign enter terminals, as proven within the transmitter-side circuit diagram (Fig. 5). On this frequency meter, check sign should be an alternating one and its amplitude should not be larger than 10V peak-to-peak.

The subsequent stage is a bridge rectifier, which converts the alternating sign to a fully-rectified pulsating DC sign. The sign is then utilized to pin 1 of MCT2E opto-coupler. Pin 1 is linked to anode of the interior LED of the opto-coupler.

With the assistance of the opto-coupler, spikes are produced. Frequency of the sign is twice that of check sign enter. The sign is utilized to DATA pin of 434 MHz TX.

On receiver facet, 434MHz RX module demodulates the acquired sign. DATA pin of 434MHz RX is linked to digital I/O pin 5 of Arduino Uno, which calculates frequency of the check sign and shows it on the LCD and serial monitor of Arduino IDE. Take a look at sign frequencies 1576Hz and 2399Hz displayed on the serial monitor are proven in Fig. 7.

Test signal frequencies (1576Hz and 2399Hz) displayed on the serial monitor
Fig. 7: Take a look at sign frequencies (1576Hz and 2399Hz) displayed on the serial monitor

This mission can be utilized for experimenting, studying, testing and troubleshooting audio tools within the audible vary between 50Hz and 3kHz.

Arduino Code for Wi-fi Frequency Meter

Arduino IDE 1.6.5 is used for programming Arduino Uno. Choose the correct COM port and board from Instruments menu within the IDE. Add freq_meter_wl_1.ino supply code to the board.

From Instruments menu of Arduino IDE, open the serial monitor and choose the correct baud fee (9600 is used right here) to show the frequency on the serial monitor.

For troubleshooting, check the indicators at totally different check factors marked within the circuit diagrams. Anticipated voltages at totally different check factors are listed in Desk 2.

Wireless Frequency Meter Voltage Test

Additional Enhancements and Makes use of

  1. Software: This wi-fi frequency meter measures frequencies all through audio ranges, making it appropriate for repairing audio tools and academic settings that require wi-fi frequency switch.
  2. Expandability: This system can measure greater frequencies with changes to the frequency enter vary or wi-fi modules. Moreover, including further show components or incorporating SD card storage for frequency logs may improve the mission’s versatility.

Saikat Patra is enthusiastic about electronics and microcontroller-based embedded system purposes.

Shibendu Mahata is M.Tech (gold medalist) in instrumentation and electronics engineering from Jadavpur College. He’s keen on designing microcontroller-based real-time embedded sign processing and course of management programs

This text was first printed on 28 December 2019 and just lately up to date in October 2024.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button