Saturday, 16 September 2017

The Saga with AD9850



Just when you think you have covered all the bases and have finally got it right, along comes the inevitable. If you’re lucky the circuit works as planned, works but not quite right, and in some cases you let the smoke out. 

After a few rounds of testing and trying hard to not pay attention to that little voice in the back of your head, you unplug the power and take a closer look at the board, datasheets, and the schematic.  In the case of my lpf/mar-6 board, a missing cap, a resistor that should not be there, and another missing capacitor.  So the cure was cutting a trace, adding stuff, removing stuff, and voila, it works.
It’s amazing to me the feeling you get when something you build from scratch works and to go from the frustrations when it doesn’t work to when you fix it, even more.  Mind you it would be nice once and a while to have a circuit work right out of the gate.

It’s an interesting project where on one hand it first appears to be a simple project.  Combine an lpf circuit with an amplifier and away you go.  So where did this get complicated?

1, Board layout. Need to go through 3 or 4 revisions at least before getting it close enough to actually etch.

2, Components you thought you had on hand, you don’t, or are of the wrong footprint.  Now you have to beg or borrow, wait a month for that slow boat, or pay some hefty shipping charges.

3, Errors you make due to stupidity or a lack of knowledge. The latter being ok as it is all about learning. The former, well make up an excuse to explain to your buddies.

4, We now have the option of simulating circuits. Confirming that the circuit at least has the chance of behaving the way we expect or at least get you in the ballpark.  LT spice to the rescue. However, there is a learning curve that is well worth the time spent in my opinion.

5, By now you are in so deep with the prototype, it can be hard to let go of it.  Recognizing when you can continue with the present board or do start over.

6, Working with a team on a project. Unquestionably a great way to go about a project. I would never have learned so much on my own as I do being part of a team.  Individuals bring different strengths and knowledge to the group, and besides, it’s way more fun. So why do I have it listed under complications? Well, plainly stated, information overload. It’s all inversely proportional of course to the amount of time one has. The better organized you are the better you can track, remember, and implement those new ideas and suggestions.  Who would have thought that I can be busier at my hobby than I was at work before I retired? 

For my latest board, going to give it another go. Couple more modifications and some more testing that hopefully turns into a proof of concept.   Pictured below, shows the board in its present state.  The fixed resistors for biasing the MAR6 were removed and a pot substituted. This will give me better control over setting the current. Missing cap added in and another one still to be added. The thru hole cap visible has a trace broken below it to allow for circuit changes required due to oversights on my behalf…. To put in nicely. 

Friday, 8 September 2017

AD9850 LPF Redesign and Amplifier Board



Almost finished the AD9850 LPF/amplifier board.  Just a couple of parts to left to install and they are being mailed to me. Hopefully Canada Post can beat the slow boat from China and I’ll get them by Tuesday next week.

When designing the board, there were 2 options for selecting a footprint for components. Example, 1210 or 1210 handsolder.  I chose handsolder but I really don’t know exactly the differences. I assumed the pads are a little larger, but the tolerance between the contact area on the device and nearby ground spacing is tight. As well the distance between the solder pads seems to be a little on the far side.  Not much room for error.  Anyway no big deal as I check for shorts every time I place a component and a good thing I do that as I do get shorts. 

My boards are on the smaller side of things lately and I’ve noticed that my printer has an easier time with the print density.  Not as many pin holes on the ground planes.

One change I did this time round was to use a pin header for test points instead of individual test pins located throughout the board.  Since this board is not overly complex, I was able to group 5 pins together and this gives a solid support so badly needed.  My previous methods didn’t last too long as the constant attachment of probes eventually ripped up the pad that the tp was soldered to.  Even enlarging the pad didn’t help much.

I did manage to damage one trace and needed to put a jumper in to repair. It was the 2nd component I installed so I almost was going to scrap the board and re etch another but went ahead and carried on.  It’s a prototype board and not the finished product.

I had to change the 2 15pf caps in the LPF to 18pf as I was out of the 15’s. Fortunately LT Spice basically shows not much of a change in the characteristics of the curve so all’s good with that.
I have an Altoids tin available, almost out of them, so I’ll install the board in that to minimize outside influences. 

That’s it for this board until next week unless the other part of the design team points out an oversight. Well actually that has already happened but I was well into this board so I ignored it…for now.  Next version of the board will have a couple of attenuator pads etched in. One ahead of the filter and the other right after.  Thank you Dave.


Monday, 4 September 2017

RF Experiments...has to be a better way:)



I’ve been spending a fair bit of time these days characterizing the AD8307 and AD9850 module.  The 8307 experiments are pretty much completed and I started in on the AD9850 module that I originally sourced from eBay.  Both these components are to be used in the up and coming SNA project that will be the fall buildathon put on by the Peel Amateur Radio Club.

I’ve always found that when being part of the design team for these projects, they are nothing less than an ideal learning opportunity on many levels.  This project has not disappointed.

For years I used the standard prototype board for my projects. While I know that they are not ideal for RF experimentation, I always went ahead and used them.  Not sure what was different this time, but I had all kinds of issues when trying to characterize the AD9850. Between some suspect continuity between the different connections on the prototype board and placement of wiring, the results were not consistent between the different runs of experiments.  In fact just a hand placement or a probe connection swung readings that could have contributed to at least a .5dBm error.  In one case a wire placed one pin over where it should have been did not rear its ugly head until scope readings on the output signal were not what was expected by a long shot. 

The 8307 board was sensing the rf and giving solid readings so it took a little head scratching and a few runs through the experiments before digging into the scope reading problems revealed the issue.
I was finally convinced that a proper rf testing jig was needed and forget the prototype board. When precision is needed as in this case, you need to have not only the test equipment but the proper testing setups as well.

My 2nd kick at the can was to try and minimize the wiring that involved rf.  The Arduino, and the power supply were easy to take care of. The 8307 board was not much of an issue due to it been isolated in an Altoids tin with coaxial cable connecting to the 9850.  However I now connected the 8307 to the dummy load and the 9850 thru a series of sma bnc connectors that eliminated most of the un-shielded cabling I used for some of the rf.  See picture below.  Results, better but not good enough.  It will have to do for now as I’ve ordered some boards to make a more permanent rf testing environment.

In the meantime I’m now putting together a lpf and amplifier board.  The lpf will replace the lpf that comes with the 9850 module as most of us know is a pretty crappy filter and not the right impedance to boot.

Board is pretty much done and hopefully I can populate it in the next day or two.