Showing posts with label diy. Show all posts
Showing posts with label diy. Show all posts

Monday, 22 July 2013

3 Ghz counter and power detector build

To measure the output of the phase locked oscillators for the spectrum analyzer I needed a fairly accurate frequency counter.

I test a counter usually against my 10 Mhz rubidium source.
Neither a cheap 1 Ghz counter from China nor a self built counter built around pic micro controller produced good results. They were way of,...

This new project which I found on the Elektor homepage raised my curiosity.
Usually I don't like Eektor projects that much,  they tend to use the most expensive components but then deliver a mediocre circuit that does not make use of all the bells and whistles this components could deliver. On the other hand I like the magazine and always  hope this time they hit gold.

First for pre scaling (dividing the input signal down) it uses a cheap pll chip instead of an expensive dedicated pre scaler. (nice!)
Second as counter it uses a CPLD device and provides the VHDL (Verilog hardware description language) sources.
Third it uses a 0.5 ppm crystal oscillator as reference.
Forth it can measure the power level but unfortunately only within an accuracy of 4 db (if the frequency is modulated). I can live with that, power meters almost always have trouble with modulated sigbak sources .

I ordered an empty pcb, luckily I already ad most of the needed parts in my lab.
In the build process I first populated the most difficult parts like the qfn power detector, the input amplifier and than the rest of the integrated circuits.
Then I soldered the passive components.
Afterwards the big components like the display were soldered.

Before power up I checked for short circuits.

Next step is programming the Cpld and the Dsp about which I will tell you in another blog post.


Counter function blocks
             1) Hf input
             2) Dc input
             3) Battery input
             4) Input splitter (Log detector, Counter)
             5) Log Detctor
             6) Preamp
             7) Pll (prescaler)
             8) Oscillator
             9,10) Linear regulators
             11) Reference
             12) Polyfuse circuit protection
             13) Jtag disable
             14) Jtag (Busblaster programmer input)
             15) Icd (Dsp programmer input)
             16) Cpld
             17) Dsp

Links:
Project link



Sunday, 21 July 2013

Meet the Lpcxpresso

Embdedded Artists did an awesome job around the Lpc Arm processor line from Nxp.
32 bit Arm processors are now  available and affordable for everyone.
All you need is some fundamental C experience, an Lpcxpresso board and to read the Embedded Artists tutorial.

For example I read the I2C tutorial section, hooked up an Lm75 I2C temperature sensor and understood enough about the usage of I2C to write my own character display library based on an Newhaven I2C display.

The productivity using this tool set can be breathtaking.
You use templates from Embedded  Artists, expand the code debug it and you are done.

The code red ide is based on Eclipse so you really get a nice development environment.
There is a huge user base on the Internet and some really great forums.

The debugger works great and you always see what is going on with your source code.

For my hardware designs I meanwhile use only controllers from Ti and the Lpc line if I need 32 bit power. I don't want to work without a decent debugger any more.

In the moment I use the following boards:
LPC1115 board
A Arm cortex M0 processor with 64kB flash and 8kB data memory

LPC1669
A Arm cortex M3 processor with 512kB flash and 64kB data memory
It has a built in Ethernet and can interface and offers tons of features.

I also bought the Lpcxpresso experiment kit, which offers example hardware and software to try the most interesting chip features out.

Once I figured the user rights management on my private git server out, I will provide some example code I wrote for this processor, like my lcd library.

LPC 1115 and Lm75 sensor on a breadboard


The new Jtag V2 interface

Lpcxpresso experiment kit



Links:
Embedded Artists
Lpcxpresso experiment kit
Code Red Ide
Nxp
User Forum

Tuesday, 16 July 2013

Backwoods Logger

The Backwoods Logger is a very useful at displaying graphing and logging pressure, height and degrees , all in the size of a Tic-Tac box weighing about 1 ounce.

It's built-in oled screen can show current data or graphs of data vs time within a scale from the past 2 hours to the past 2.5 days.

Most important, this logger is an open source project.
The logger is based upon a Bosch BMP085 temperature and pressure sensor and an Atmel AVR ATmega328P micro controller.

I built this device about a year ago and often used it.
Unfortunately I once left it in my trousers bag and put it in the wash machine.

Of course it was broken afterwards, the display and the pressure sensor had to be replaced.

I changed them today and now the logger is back and alive again.
Since it is so small I can use it inside an rc controlled glider as an altimeter.

Btw. did I mention it uses an oled display ?!
 


Backwoods logger start up screen

Backside with micro controller and sensor
Washing machine casualities

For more information please visit the project's hompage



Saturday, 13 July 2013

Sorting, sorting , sorting


Usually I store my resistors in a zip bag and there is always the worry  if I already own the right ones for a certain project.

More than a year ago I bought three smd component storage boxes and started to sort my 0603 resistors.
First you have to label all the compartments and then you fill them up with resistors.
Great care is to be taken, wrong placed resistors have to potential to sabotage you project.

Sorting the 0603 resistors was really not a project you would write home about.
But the resistor box turned out extremely useful.
In fact so useful I would not miss this box anymore.
By the time (> 1 year at least) I also forgot about all the hassle.
So I decided today it is time to fill another box, this time 0805 resistors.
To get an idea of the project, i own meanwhile more then 10k of 0805 resistors with about 170 different values.Eight back aching hours later, I finally sorted them in !!!

 
Very useful storage box

more than 10.000 sorted resistors

Friday, 12 July 2013

How to solder QFN chips like the MSP430FR5739

The new MSP430FR chip line has interesting features like embedded non volatile fram and ultra low power consumption. The chip is available in TSSOP38 or QFN40 package.I simply had to try them out.

Usually hobbyists  are repelled by the very small case and the missing pins.
But once you get used to work with the QFN package you start to prefer it over any other packaging.
Since they have no visible pins, they cannot suck the solder up via capillary suction and create ugly shorts.

To solder a qfn chip you buy a breakout board and put a small amount of solder paste at the pcb.
Beside the solder paste you add some solder flux (very important).
Then you place the chip on the board and roughly align it.
With an heat gun you slowly heat the chip and board until the flux starts to melt.
This is a very important phase because the chip will swim on the fluid and align itself correctly.
Now heat it up until the solder past melts and you are done.

The next problem you will face is how to check the correct alignment and if all pins are correctly connected to the board.I use a multimeter for that purpose. Usually the pins have a certain resistance around 5k to 1mega ohm. Measure all pins and if there are shorts suck them away using some solder wick.

Once you get used to Qfn packages and are able to solder the chip  correctly it will only require about two minutes of your precious spare time. Soon you will start to enjoy working with Qfn packages.

MSP430 in QFN package compared to a Dil20 chip

Links
MSP430FR5739
Fram
Demo video

Thursday, 11 July 2013

Meet the Powerscope

Since Ti announced the Launchpad I was very excited to play with this awesome development tool.
It is like a Arduino on steroids, mostly because of it's 16 bit capability and most important it has a debugger.
When your code does not work nothing is more useful than a debugger, maybe  with the exception of a razor sharp brain and years of development experience might not hurt either.

Since the Msp430 line supports low energy consumption and have many different feature sets it is important to verify if the consumption is really as good as it could be. To see exactly what is going on, a scope is the tool of choice, but for a quick estimation the Powerscope is much more comfortable and easier to use.

When measuring very low power devices I would not recommend to use a multimeter, because of their usualy high burden voltage. To circumvent this problem, David Jones from EEVBlog designed the uCurrent , also a great tool.
The Superprobe is a somehow similar device, but it has it's own display so you don't need to connect it to a multimeter.

I also built an usb adapter to attach the Powerscope to a Usb device and measure it's power consumption.
In the attached example pictures I connected the Powersope to an Launchpad which drove a CC2500 radio device.It does not make much sense, because the attached debugger also has a unknown power consumption but it gives an idea of usage and it also shows that the TX mode consumes about 17 mA more than the RX mode .Btw. the code in the moment has no power optimisations what so ever, I was more than happy to get the CC2500 up and running,...

The programming of the Powerscope also was more than easy.
You can either use the Launchpads programmer by removing all the jumpers and insert a programmer cable or you can like me use a Goodfet programmer designed by Travis Goodspeed.
Since I don't like to solder headers just for one time programming, I made a small programming cable with pogo pins. You can use this kind of connection even for debugging.

You can buy an empty pcb at the 43oh store.

Powerscope front side


Powerscope back side

Powerscope connected to Lauchpad in TX mode

Powerscope connected to Launchpad in RX mode

Goodfet 4_1 programmer and programming cable with pogo pins


Links:

Buy Powerscope pcb
Designer thread
Powerscope Code and Info page
Goodfet programmer

Tuesday, 9 July 2013

Spectrum analyzer Part IV Logarithmic Detector

Description (copied from Scotty's web page)

The 8306 Log Detector Module has a dual function.  It is used as a detector to convert RF power to DC voltage (RSSI).  And, it is used as a high gain, RF limited amplifier.
The module has an input impedance of 50 ohms (J1) and a bandwidth of  3 MHz to 160 MHz.  
The RSSI dynamic range is -90 dBm to +10 dBm, with a DC output of +0.4 volts to +2.4 volts, on J2, "MAGVOLTS".  The Limited I.F. Output (J3) is a 50 ohm source with 50 mv peak to peak output.  
The limiter input dynamic range is from -77 dBm to +10 dBm.

Log Detector Rev 0


Build process

So far the Log Detector was one of the easiest modules to solder.
The only problem was to get hold of T1 but fortunately Coilcraft was kind enough to send me two pieces.

Once the module is thoroughly tested and confirmed working it is very important to shield this kind of units properly. 

 Links:
Spectrum analyzer Part I Controller board
Spectrum analyzer Part II Phase Detector  
Spectrum analyzer Part III ADC 16

Log Detector Module
 

Spectrum analyzer Part III ADC 16

There are two Slim modules for the ADC section.
Their main difference is resolution one delivers 16 bit the other module 12 bit.
Although the 12 bit version is cheaper and has a way easier to solder footprint, I choose the 16 bit version.
 
 Description

The ADC-16 is a dual 16 bit, serial, analog to digital converter, using two AD7685's.  
There is no manual adjustment to set the A to D range.  It is not needed to obtain excellent resolution in the MSA and VNA systems.  Each ADC will digitize its input of 0 to 5 volts to a bit value of 0 to  65535 bits.  This equates to 76.3 uv per bit.
Both A/D's will capture, and clock out their data simultaneously


ADC 16 rev A










Spectrum analyzer Part II Phase Detector Module


The  Phase Detector Module is a 360 degree, Phase to Voltage Converter.  It is specifically designed to operate at 10.7 MHz, but will operate in the KHz range up to 30 MHz.  
 The J1 and J2 inputs can be sine or square wave .  The min / max sine input is -20 dBm to +18 dBm.  The min / max square input is 10 mvpp to 5vpp.  Input impedance is nominally 50 ohms, but can be changed to any input impedance.
The output, at J3, is a DC voltage that is proportional to the differential phase of the input signals at J1 and J2.  The 0v to +5v output should be loaded with 100 K or higher.  A realistic phase range is from 20 degrees to 340 degrees with error less than .1 degrees.
Power requirement for the is +7 volts to +15 volts at 50 ma.

To build the RevC module I had to made some component changes and add some capacitors.
The most visible change is the added jumper wire in the bottom right.
It is not easy to solder a jumper to an ic with such a small footprint, but it is manageable as long as you have a good magnifying glass as guidance.

Phase Detector rev C





















Links:
Spectrum analyzer Part I Controller board build notes

Phase Detector Slim Module

Friday, 5 July 2013

Spectrum Analyzer Build

Scotty's Spectrum Analyser|Msa|Slim boards|Electronics|Measurement|Analyser
Two weeks ago I started to build a 0-3 Ghz Spectrum Analyser based on Scotty's design.

For more information you can visit his build page.


I first started with the rev. c controller module.

From left to right: Usb2Lpt Gender changer Controller board rev C



Since the controller uses an parallel board which modern computers dont't have anymore, I used an Usb2Lpt adapter to talk to the board.
Unfortunately the controller and the adapter are routed for a female plug , so their pins are mirrored.
I could easily fix that problem by soldering a quick and dirty gender changer (the board in the middle).

First tests showed the board is working.

Links:
Controller Page
Usb2Lpt



The next step to a spectrum analyser is the  phase detector module.