Description: This is basically the frequency meter section of the frequency meter/pulse generator based on the AT90S2313 described elsewhere on this site, combined with the 100 MHz RF interface described in the page about the RS-232 to 100 MHz RF desktop channel adapter. Built and aligned in the same manner as the 100 MHz RF desktop channel adapter. The frequency meter has a maximum input frequency of 4 MHz and counts up to 65535. Time bases of 10 ms, 100 ms, 1 second, 10 seconds, and 100 seconds are selectable from the keyboard via the RF link. I would suggest adding a 5-volt zener from pin 9 of the AT90S2313 to ground to reduce chances of damage to the input from electrostatic discharges. I did not put it on the schematic because I did not build this and try it. Take a look at the frequency and pulse generator project on this website to see how I used the reverse base-emitter junction of a transistor to accomplish the same thing because I didn't have any appropriate zeners at the time of the project.
The frequency meter sends to address $02 (the RS232 to RF Data Channel receive address) and receives address $03 (which is coded as $18 in the firmware because of the position of the address within the header byte).
Firmware
This firmware was a combination of the firmware from two projects, with the irrelevant parts removed. There are several assembler warnings of registers being assigned more than once - don't worry about it, there aren't any conflicts but it made hooking the two pieces of code a little easier and made the resulting file a little easier to read doing it this way.
Here is the Assembler source file. In case it's helpful, here is the hex file.
At power-on, a greeting and menu are displayed. Individual readings are taken whenever the "R" key or return key are pressed.
Variations
A low battery indicator would be a nice improvement so that the terminal would be alerted when a low battery was detected. Additionally, an LED could be added as a power-on indicator. By the way, the one I built takes 16 mA while transmitting and 12 mA while looking for a signal.
The low speed of the data channel is noticeable as the greeting and menu are tediously written on the terminal screen. The low speed of the data channel is not apparent when taking measurements of 1 second or longer. For shorter period measurements (10 ms and 100 ms), the effects of the terminal's receiver's recovery time are apparent. The effect is that the further the frequency meter is from the RS-232 to 100 MHz adapter, the more likely the first characters (carriage return and line feed) will be lost when the frequency meter sends the results of the measurement, which come more quickly after a short time base measurement than a long one. A delay should be added to prevent transmission from starting within a given time after a transmission was observed - in this case, about 300 ms (forever to an AVR processor, but not a long time from the standpoint of the receiver).
The frequency meter circuit utilizes the AT90S2313 microcontroller, which is responsible for processing the input frequency signals and managing the communication with the RS-232 to RF adapter. The circuit includes a frequency counting mechanism that utilizes a timer to capture the number of pulses within the specified time bases. The maximum input frequency of 4 MHz allows for a wide range of applications, while the counting capability of up to 65535 provides sufficient resolution for most frequency measurement tasks.
The design incorporates a selectable time base feature that can be adjusted through user input via the RF link. This flexibility is crucial for accommodating various measurement scenarios, allowing the user to select between 10 ms, 100 ms, 1 second, 10 seconds, and 100 seconds intervals based on their requirements.
To enhance the robustness of the frequency meter, a 5-volt zener diode is recommended to be connected from pin 9 of the AT90S2313 to ground. This addition serves to protect the microcontroller's input from potential damage due to electrostatic discharge events, which can occur during operation.
The firmware running on the AT90S2313 is a streamlined version derived from previous projects, ensuring efficiency and clarity. At power-up, the user is greeted with a menu that facilitates easy navigation through the measurement functions. The firmware also handles the communication protocol, utilizing specific addresses for sending and receiving data, which is critical for the operation of the RS-232 to RF data channel.
In terms of power consumption, the frequency meter operates at 16 mA during transmission and 12 mA while idle, which is efficient for battery-operated applications. The implementation of a low battery indicator and a power-on LED would further enhance user experience by providing visual feedback regarding the operational status of the device.
Overall, the design and implementation of the frequency meter offer a practical solution for frequency measurement applications, combining effective hardware design with efficient firmware to deliver reliable performance.This basically the frequency meter section of the frequency meter/pulse generator based on the AT90S2313 described elsewhere on this site, combined with the 100 MHz RF interface described in the page about the RS-232 to 100 MHz RF desktop channel adapter. Built and align this is the same manner as the 100 MHz RF desktop channel adapter. The frequency meter has a maximum input frequency of 4 Mhz and counts up to 65535. Time bases of 10 ms, 100 ms, 1 second, 10 seconds, and 100 seconds are selectable from the keyboard via the RF link.
I would suggest adding a 5 volt zener from pin 9 of the AT90S2313 to ground to reduce chances of damage to the input from electrostatic discharges. I did not put it on the schematic because I did not build this and try it. Take a look at the frequency and pulse generator project on this web site to see how I used the reverse base-emitter junction of a transistor to accomplish the same thing because I didn't have any appropriate zeners at the time of the project.
The frequency meter sends to address $02 (the RS232 to RF Data Channel receive address) and receives address $03 (which is coded as $18 in the firmware because of the position of the address within the header byte). Firmware
This firmware was a combination of the firmware from two projects, with the irrelevant parts removed.
There are several assembler warnings of registers being assigned more than once -don't worry about it, there aren't any conflicts but it made hooking the two pieces of code a little easier and made the resulting file a little easier to read doing it this way. Here is the Assembler source file. In case its helpful, here is the hex file
At power-on a greeting and menu is displayed. Individual readings are taken whenever the "R" key or return key are pressed. Variations
A low battery indicator would be a nice improvement so that the terminal would be alerted when a low battery was detected.
Additionally an LED could be added as a power-on indicator. By the way, the one I built takes 16 ma while transmitting and 12 ma while looking for a signal. The low speed of the data channel is noticeable as the greeting and menu are tediously written on the terminal screen. The low speed of the data channel is not apparent when taking measurements of 1 second or longer. For shorter period measurements (10 ms and 100 ms) the effects of the terminal's receiver's recovery time are apparent.
The effect is that the further the frequency meter is from the RS-232 to 100 MHz adapter, the more likely the first characters (carriage return and line feed) will be lost when the frequency meter sends the results of the measurement, which come more quickly after a short time base measurement than a long one. A delay should be added to prevent transmission from starting within a given time after a transmission was observed -in this case, about 300 ms (forever to an AVR processor, but not a long time from the standpoint of the receiver).
A rectangular-wave pulse generator with an extremely long period can be constructed using only two components: a National Semiconductor LM3710 supervisor integrated circuit (IC) and a 100-nF capacitor to suppress noise spikes. This circuit leverages the watchdog and reset timers...
The mechanical chassis prototype, as illustrated in the accompanying image, was constructed using two materials: foam and aluminum. Foam was selected for its ease of manipulation, while aluminum was chosen for its excellent strength-to-weight ratio. The prototype features a rotary...
A 0 to 2 MHz frequency meter with a Minimum Mass Wireless Coupler, based on the ATMega8. Range to the Minimum Mass Base Unit is 10 to 15 cm. Since the frequency meter is battery operated, it can be floated...
Power input is to a 7805 5 volt regulator. A pair of LEDs is connected between the 5 volt supply and ground, with current limiting resistors in series and one pin on the AT90S2313 shunts the current through one LED...
Dot Award. This circuit is tested and functional. The circuit consists of two integrated circuits (ICs). IC1 serves as a pulse source, activated by a momentary button switch (S). When the button is pressed, it charges capacitor C1, which powers...
The GNU tools must be configured, built, and installed on the system. This chapter presents a simple example of using the GNU tools in an AVR project. After reviewing this chapter, users should gain a better understanding of how these...
This circuit is a frequency meter, low cost. It covers region 1HZ until 1MHZ. The IC1 schmitt trigger that it regulates the signal of entry and him changes in reasonable level suitable for the IC2-3-4. With the tenth pulse in...
This circuit is quite effective for testing or operating counters and stepping relays, as it eliminates the need for manually setting a switch for the desired number of pulses. By pressing the appropriate switches S1 to S9, one can generate...
The multifunction frequency meter is an instrument that can measure various parameters on a single display using an 8-digit 7-segment LED. The controls measure...
The multifunction frequency meter is designed to provide accurate measurements of frequency, voltage, current, and other electrical...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more