Close

Does this project spark your interest?

Become a member to follow this project and don't miss any updates

Handheld 3GHz Spectrum Analyzer

Includes RF detector up to 6GHz and a datalogger

3.8k 5 63 41

This project was created on 08/15/2014 and last updated 24 days ago.

Description
This is a handheld spectrum analyzer that works up to 3 GHz. All basic functions that you would expect on a spectrum analyzer are available. No external PC or other computer is needed.

The user interface is a backlit graphic LCD. The lowest section of the LCD displays the menu (function of the control buttons).

The most important connectivity aspect is, that the device can be used to check or debug wireless connectivity of other systems. But also a wired serial connection is provided for remote operation (half duplex RS232). An application for PC, Linux and MAC is developed, that enables remote control of the analyzer.

For Openness, many things will be public, such as schematics, complete parts list, pcb artwork, and firmware source code.

See my 2-minute video on YouTube:

https://www.youtube.com/watch?v=nwh_d2H407A&feature=youtu.be

And the 5-minute video:

https://www.youtube.com/watch?v=W-IwOH89Uy8
Details

  • System diagram

  • Internal operation of the spectrum analyzer

The analyzer has the classic structure with a local oscillator, mixer and IF system. The Si4012 is used as local oscillator, it generates up to 960 MHz and has a two-wire control interface. The mixer is a Maxim 2680. The Si4431 is tuned to the IF frequency (with selectable bandwidth) and provides a logarithmic signal strength indication.

The Si4431 can be tuned to 960 MHz maximum, this would give a maximum receive frequency of 960+960 = 1920 MHz. But we can also use the 3rd harmonic of the oscillator, this theoretically gives a maximum receive frequency of 3840 MHz.

For a given receive frequency, mirror frequencies are suppressed in firmware by using two or more combinations of LO and IF frequency. The wanted frequency will be present in all combinations, mirror frequencies are only present in a single combination.

The sweep time is set automatically by the firmware, as a function of the SPAN and the RBW.

  • Other functions

Several wireless communication systems use short pulses, that might be hard to detect on a spectrum analyzer. To detect these, the analyzer has a ADL5519 power detector that works up to 6 GHz. The power detector is sampled at 20KHz, so it will detect short pulses without the need to be tuned to a certain frequency. It also has the ability to measure the frequency of the pulses (under most circumstances with 100MHz resolution), this is described in one of the project logs. The input is switched between the spectrum analyzer and the power detector with a AS186-302 switch chip.

Every 10 seconds, the maximum output level of the power detector and the detected frequency are written to a micro-SD card. A realtime clock is present to provide date and time stamps to the logfile. The logfile is readable on the device itself, but can also be read with excel (CSV format). Every new day, a new directory is created for this day and a new logfile is created. Every month, a new directory is created for this month that contains the directories of the days.

The micro-SD card can also be used to upgrade the internal firmware. 

The output of the power detector can be directed to the internal speaker, so you can hear the wireless communication pulses. The sound is generated by the DAC output of the microcontroller, with the same 20KHz sample rate. Volume control is done in the firmware. Sound can be output through a 3.5mm jack. The second channel of this 3.5mm jack can be used as analog input, or as a half duplex RS232 communication port.

A microphone is available. I want to be able to record spoken comments (and store this on the SD card) while measuring, but the firmware for this sound recorder is not yet working.

The device is powered by two AA batteries, or two NiMH cells. An adapter can be connected to charge the NiMH cells.

  • low-frequency electric and magnetic fields

Many people have health problems due to exposure to RF radiation (see mast-victims.org). These people can also be sensitive to low-frequency electric and magnetic fields. For this reason, the device can also measure these low-frequency fields. The waveform is displayed on the screen, and can be output at the speaker. 20KHz sampling is used. Every 10 seconds, the measured value is written to the logfile. The same functions are available for the analog input (AC value is measured, DC value could also be measured).

  • User interface

Only the most important user-interface functions are mentioned in this section.

After switching ON, you can choose between the following modes:

  • SCAN (Spectrum analyzer)
  • RF (Power detector)
  • ELEC (electric field)
  • MAGN (magnetic field)
  • MENU (Utility functions: inspect SD card, set time and date)

The spectrum analyzer mode displays the following values:

  • In PK (peak freq) mode: measured level and frequency of the detected peak
  • In CF (center freq) mode: level and frequency at center frequency
  • Start and Stop frequencies, Span, RBW (Resolution bandwidth)
  • Graphic presentation of the spectrum
  • Battery condition...
Read more »

Components
  • 1 × Si4012 Transmitter used as local oscillator
  • 1 × MAX2680 Mixer
  • 1 × ADL5519 Logarithmic RF detector
  • 2 × AG201-63 RF amplifier
  • 1 × AS186-302LF RF switch
  • 1 × ATXMEGA192 Microcontroller
  • 1 × NCP2890 Audio ICs / Audio Amplifiers
  • 1 × MT41T81S Realtime clock
  • 1 × DOGM128-6 LCD display
  • 1 × LP2980-3.3 Voltage regulator

See all components

Project logs
  • Proto 2 PCB impression

    24 days ago • 0 comments

    The PCB was designed in Orcad. 

    In the following screenshot images, the top layer is blue, the bottom layer red. Both layers have  ground planes with several traces in it. For better visibility, the ground planes are displayed as a shaded area. (The ground planes have several adjacent sections. The borders between sections look like a normal trace, but they are not !). Note that a shield can be soldered at the RF section.

    Upper section:

    Middle section:

    Lower section:

    And here is a photograph of the new pcb:

    The assembly of this new pcb is almost finished.

  • Documentation upload

    a month ago • 0 comments

    Today I added links to the (updated) documentation.

    It documents the new proto-2 version schematics and pcb (with SAW filter). It also has the newest firmware version (V55) that communicates with the PC application, programmed in Tcl (latest version, 6, provided).

    It has pcb Gerber files and assembly drawings. The new BOM includes placement coordinates for the components. 

    These docs should be enough to duplicate the project !

  • Low cost version

    a month ago • 0 comments

    Several people asked if they can buy the analyzer as a pcb or kit.

    I think with more than 270 components, this will be relative expensive and/or quite difficult to assemble. I also think that for most people, the spectrum analyzer itself is the most important, and they don’t need the other features.

    ------------------------------------------

    To make it interesting for a lot of people, the following needs to be done:

    - The cost should be low. So it should be a kit.

    - It will only be a spectrum analyzer

    - The kit should have no more than approx. 60 components to make it easy to build.

    - SMD components should not have a very fine pitch

    - The ATXMEGA should come pre-programmed, so an AVRISP2 programmer is not needed.

    My plan is, to make a 'bare bones' version, and offer it as a kit. But the full version with all options will also be available, perhaps only as complete device.

    ------------------------------------------------

    The bare-bones kit will contain:

    - pcb with the programmed ATXMEGA

    - All spectrum analyzer components

    - The Si4431 (that is difficult to mount) on a pre-assembled small pcb

    - connectors: SMA input, 3.5mm RS232 half duplex, connector for 5V power adapter

    - on/off button (or .perhaps only a reset button)

    - NO lcd and no control buttons. Operation by the PC application.

    The price of the bare bones version should be below USD 100, I think.

    -------------------------------------------------

    The following components can then be mounted as an option:

    - LCD with backlight, and control buttons (enables operation without PC)

    - micro-SD card connector, real time clock

    - battery circuits, step-up converter, charging circuit.

    - Enclosure

    - Firmware updates by SD-card (no programmer needed).

    -----------------------------------------------

    The barebones version will require a redesign of the pcb, aimed for easy assembly. For instance, the MBT3946 fine-pitch dual-transistors should be replaced by SOT23 single transistor types. Only a few types of resistors and capacitors should be used. The ATXMEGA has 0.8 mm pitch, that is not very difficult to mount. (It was deliberately chosen for this, I don't like soldering big 0.5mm pitched parts). The Si4012 is a 0.5mm part, but has only 10 pins, si it can be mounted without too much trouble.

    It will, however, not be possible to have the barebones design ready before the next judging round of THP...

View all 9 project logs

Discussions

Chris wrote a month ago null point

I'd love either a board or a fully assembled unit... any idea on a ballpark of the pricing?

Are you sure? [yes] / [no]

Noam Rathaus wrote a month ago null point

What is the estimated cost of this item?

Are you sure? [yes] / [no]

roelh wrote a month ago null point

Hi Noam, I plan to have 2 selling items, SMD mounted pcb and full device. I want to have the pcb SMT-assembled by a professional well-equipped company. As soon as it is clear how much that will cost, I will put the price here on my page.

Are you sure? [yes] / [no]

Bart van der Wee wrote 2 months ago null point

Thank you Roel - this looks like a handy little gadget - if you need help with Dutch->English I may be able to help, just ask.
I would also be interested in building one of these, are you planning on selling kitsets or ready-made items?

Are you sure? [yes] / [no]

roelh wrote a month ago null point

Hi Bart, thank you for your offer for translation.... It was mainly a problem because of the deadline for THP at that time... nearly all program comments are translated now.

I plan to sell:
1) pcbs with all SMD mounted, tested and calibrated,
2) complete device

Are you sure? [yes] / [no]

Similar projects