Wednesday, 2 April 2014

Britain is NOT Great

EUROPE

A few examples in Europe: University Education is largely free, there are lower levels of income equality, there is much higher use of renewable energy, there is much larger ownership of key portions of the economy...

UK

Most English are against privatisation, but the government is roaring ahead with it.

4th most unequal country in the developed world

Pay has fallen faster, in the last 3 yrs, than the EU

Work 3rd longest hours for 2nd lowest wages

3rd highest housing costs

Highest train fares

2nd worst in fuel poverty

Least happy children

Higher infant mortality rate

Worst child poverty

4th poorest pensioners

8th biggest pay gaps men/women

Cost of child care MUCH higher

Wealth gap 2x as wide as EU

16% below productivity of advanced economies

40% of all western privatisations are in UK

Most un-democratic government (first past post, unelected Lords). Giving lowest trust in politicians

Not investing in the future (except HS2 which no one wants!).

Just flogging off assets to suck wealth into un-productive London based black holes.

London is now the centre for money-men over making things. And they truly rule the political agenda, not us

Britain is NOT great, it is very, very sick.

Is it surprising the Scots want out?

Thursday, 13 March 2014

Playing with FFT

I have worked super hard to try to get an FFT going. With somewhat disappointing results? I have looked at a number of FFT code libraries for the Arduino. but found only one that is implementable on the Uno (8bit code). This is "fix_fft". Here's my setup (with a 1kHz sinewave input), the audio lines are the Yellow (GND) and Green (SIGNAL at 0dB)

2014 03 14 10 26 08

The audio input to the Arduino is on A0, with bias at the mid point by 10K to GND and 10K to +5V. In this example shown here the input is a sine wave of 1kHz from the program Signal Inspector running on my iMac. The full range of the code displays a maximum up to about 4kHz.

Hint: Google "u8glib" and "fix_fft", then put them both in your Arduino "libraries" folder.

Here's a photo of the display with a 500Hz square wave input. You can see the fundamental and the harmonics at x3, x5 & x7.

2014 03 14 15 45 53

Code

#include "U8glib.h"
#include "fix_fft.h"


// LCD SPI SCK-EN, MOSI-RW & SS-CS
#define EN 13
#define RW 11
#define CS 10

// display set up, bar, line position L & R
#define LINEY 50
#define LINEXL 0
#define LINEXR 128

#define SAMPLES 128

#define AUDIO A0

U8GLIB_ST7920_128X64_1X lcd(EN, RW, CS); // serial use, PSB = GND

char im[SAMPLES];
char data[SAMPLES];
int barht[SAMPLES];

void setup()
{
  lcd.begin(); // inti display
  lcd.setRot180(); // flip screen
}

void loop()
{
  static int i, j;
  int val;
  

  // get audio data
  for(i = 0; i < SAMPLES; i++)
  {
    val = analogRead(AUDIO); // 0-1023
    data[i] = (char)(val/4 - 128); // store as char
    im[i] = 0; // init all as 0
  }


  // run FFT
  fix_fft(data, im, 7, 0);

  // extract absolute value of data only, for 64 results
  for(i = 0; i < SAMPLES/2; i++)
  {
    barht[i] = (int)sqrt(data[i] * data[i] + im[i] * im[i]);
  }
  
  for(i = 0, j = 0; i < SAMPLES/2; i++, j += 2)
  {
    barht[i] = barht[j] + barht[j + 1];
  }
  
  // display barchart
  barchart(SAMPLES/4, barht); // plot SAMPLES / 4 = 32 as barchart gen cannot handle 128 bars
} 

// plot line and bar at position and height
void barchart(int n, int bh[])
{
  int i, s, w; // bars, spacing and width
  
  s = (LINEXR - LINEXL) / n;
  w = s / 2;
  
  lcd.firstPage();
  do
  {
    lcd.setFont(u8g_font_helvR08);
    lcd.drawStr(20, 10, "FFT Audio Spectrum");
    lcd.drawLine(LINEXL, LINEY, LINEXR, LINEY);
    lcd.drawStr(0, LINEY + 10, "0");
    lcd.drawStr(29, LINEY + 10, "1k");
    lcd.drawStr(59, LINEY + 10, "2k");
    lcd.drawStr(91, LINEY + 10, "3k");
    lcd.drawStr(115, LINEY + 10, "Hz");
    
    for(i = 0; i < n; i++)
    {
      lcd.drawBox(LINEXL + s * i, LINEY - bh[i], w, bh[i] + 1); // u8glib doesn't accept box height of 0
    }
      
  }while(lcd.nextPage()); 
}


Improvements can be made by directly programming the Arduino Uno ADC converter, rather than relying on the call to analogRead(). This would give a faster esponse and a wider bandwidth.

Wednesday, 12 March 2014

The EU, what you need to know

I am a strong supporter of the EU and believe UK should be a totally involved member. There are currently 28 nations in the EU which is an economic and political partnership. The EU is based on treaties that UK has signed, with some "opt out" clauses.

Boarders have been removed between EU states and people can travel freely though out most of the continent - EXCEPT UK as we are not signed up to this agreement, so you have to show your passport when you come in! This EU freedom however makes it easy for anyone to live and work anywhere in the EU.

The EU has a single "internal market" for goods, services, money and people to move freely - EXCEPT UK where there are restrictions and some people want to have more limits.

The EU promotes human rights, and at least here the UK is signed up, although there are many voices of dissent... Human rights means dignity, freedom, democracy, equality, rule of law and respect for human rights - all brought together in the "Charter of Human Rights" signed under the treaty of Lisbon 2009 - to which UK is a signatory.

How it works

The EU is NOT a federal state (like USA). It is sovereign nations that mutually agree things. We pool some of our sovereignty to gain collective strength and world influence. Decisions are made by the European Parliament, elected by EU citizens and the European Council of members of national governments. The "civil service" of the EU is the European Commission who propose directives to harmonise the states, which must then be agreed by the EP & EC.

The European Commission is much maligned in UK, they DO NOT make laws, anything they propose has to be approved by the democratically elected EP & EC/C of ministers.

Download this book free from here.

Screen Shot 2014 03 12 at 12 10 39

These are the EU organisations - quite a lot of them, and we NEED to understand what they do!

Screen Shot 2014 03 12 at 12 12 02

I will not go into every one here, but the key ones are the EP - your voice, the EC & C your governments voices, and the EC - defining political directions. In addition there are the legal side, the C of J, the financial side, the ECB, and a bunch of others.

Decisions are made by

1 The European Parliament. That's why the elections in May 2014 are VERY important, we need to send our best people to the EP. (in my opinion we should not have to elect separate MPs and MEPs, but simply send some of our MP to Europe!!! Having separate MPs just causes power struggles)

The EP consists of:

Screen Shot 2014 03 12 at 12 30 20

Grouped by politics like this:

Screen Shot 2014 03 12 at 12 30 39

2. The European Council (headed by Van Rompuy, to be replaced this year...). All of our heads of state - i.e. Mr Cameron etc - determining political direction and priorities.

3. The Council. Government representatives. Day to day negotiations.

4. The European Commission (headed by Jose Manuel Borroso, to be replaced this year). Representing the EU as a whole, and keeping things harmonised and on track, proposing new laws. They do NOT adopt the laws, 1 & 3 do.

The law making process works like this:

Screen Shot 2014 03 12 at 12 21 48

Key points are

1. Laws (regulations, directives, decisions or recommendations) are drafted under provisions of treaties, and the form of words comes from the EC.

2. The EP amends these.

3. The Council (of our governments members) also approves

Or it all goes round and round until agreement is reached. Agreement can be in two ways: unanimous vote required or what is called "qualified majority" which means by most governments. Our UK parliament gets the proposed laws in draft form for debate before decisions to support or ask for changes.



You can have your say!!! If 1 million EU citizens from 1/4 of states agree then they can bring forward a law for the EC to consider. Need to get going on Facebook!!!

The euro (lower case please).

The euro has been a mess, mostly because the states that adopted it did NOT follow the rules. Almost every euro state broke the fundamental rules that would have stabilised the currency. And the banks dived in to promote this law breaking for their own profit ends. So the result is a great imbalance and great debts for some countries. These guys use the euro:

Screen Shot 2014 03 12 at 12 36 24

There is also quite a lot of corruption in the EU and billions of euro go missing every year. No one seems to be doing very much about this, as it is in every government's interest to get the money!

There is an EU Investment Bank (AAA rated) which sells bonds and invests in EU projects - to the tune of €52bn in 2012, €45 of which was spent in EU countries. This provide money for local small businesses and major development projects (like HS2...).

Screen Shot 2014 03 12 at 12 40 52

If you want to know more about the EU look here.

The Arduino Manager

One of the unsolved issues for me has been how to get my iMac to talk to the Arduino applications (or as they are called Sketches). The Arduino IDE (integrated Development Environment) has a "Serial Monitor" that allows you to give simple commands like Serial.begin(9600); followed by things like Serial.print("this and this"); to send information from the sketch to the iMac, and key presses on the iMac can be sent to the sketch. This is at least an interesting way to exchange commands and information. (I have used it is my Morse Code sender earlier in this blog).

But wouldn't it be nice to have a graphical interface with various elements available to communicate back and forward? Well there is a new one around called "Arduino Manager". And it runs on the iMac, iPad and iPhone. It is able to communicate by USB, WiFi and Ethernet. For the last two you obviously need a WiFi or Ethernet board (it uses the official Arduino boards).

So what can it do?

1. Provide a customisable interface with a variety of elements - push buttons, switches, displays, graphs...

2. Run a "Code Generator" to help you build your sketch correctly by generating the fundamentally needed bits of software code.

Here's a simple example:

Screen Shot 2014 03 12 at 10 52 27
As you can see this example has three boxes configured with actions. The first is a Push Button and a displayed red button. When the button is clicked it activates a red LED connected to the Arduino for 1 second (a programmable time of course...). The second box contains a switch and a display circle. This can switch on or off another yellow LED, when the LED is on the circle will light up. The last is very interesting, it is a box which can display data coming from the Arduino, in this example a temperature sensor.

At bottom right is the connection box where you select the IP address (for WiFi or Ethernet) or the USB serial device for USB. Connect this first and take care, if you want to load or re-upload your sketch to the Arduino you MUST Quit Arduino Manager first to break its use of the USB connection and allow the Arduino IDE to use the line.

The Arduino for this simple demo is wired as follows:

DSC 0016

On the left is a TMS36 temperature sensor IC connected to A0, and on the right are the two red and yellow LEDS connected to D6 & D8 (the red will be activated by the Arduino Manager display's REDLED push button and the yellow by the YELLOWLED switch). Here is the code needed to run this application:

// Arduino Manager 2 x LED & temp sensor
// REDLED button, YELLOWLED switch on/off, TEMP display

#include "SD.h"
#include "IOSControllerSerial.h"

// connection pins
#define RLEDPIN 6
#define YLEDPIN 8
#define TEMPPIN A0

// init global variables
int yellowLed = LOW;
int redLed = LOW;
float temp;

// create USB serial controller to execute work, sync, out and in messages
IOSControllerSerial iosController(&doWork, &doSync,
&processIncomingMessages, &processOutgoingMessages);

void setup()
{
  Serial.begin(9600);
  
  pinMode(RLEDPIN, OUTPUT);
  pinMode(YLEDPIN, OUTPUT);
  
  digitalWrite(YLEDPIN, yellowLed); // Y led off
  digitalWrite(RLEDPIN, redLed); // R led off
}

// conventional loop just calls iosController loop, every 200ms
void loop()
{
  iosController.loop(200);
}

// execute commands
void doWork()
{
  temp = getVoltage(TEMPPIN); // read temp 0-5V
  temp = (temp - 0.5) * 100; // 10mV/deg 0.5V offset, x 100
  
  digitalWrite(YLEDPIN, yellowLed); // on/off yellow led
}

// sync commands depending on name
void doSync(char *name)
{ 
  if(strcmp(name, "YLEDPIN") == 0) // if yellow led name, send current status
  {
    iosController.writeMessage(name, digitalRead(YLEDPIN));
  }
}

// read incoming messages for name with val
void processIncomingMessages(char  *name, char *val)
{
  if(strcmp(name, "REDLED") == 0) // if name button pushed, so flash red
  {
    iosController.logLn("REDLED");
    iosController.temporaryDigitalWrite(RLEDPIN, HIGH, 1000);
  }
  
  if(strcmp(name, "YELLOWLED") == 0) // get yellow name led command
  {
    yellowLed = atoi(val);
  }
}

// send outgoing messages for name with value
void processOutgoingMessages()
{
  iosController.writeMessage("YELLOWLED", yellowLed); // status of yellow led
  iosController.writeMessage("TEMP", temp); // value of temperature
}

// read and compute temperature value
float getVoltage(int pin)
{
  return (analogRead(pin) * 0.004882814); // 0-1023 = 0-5V
}


As you can see the code creates an object called "iosController". This then has various functions like "iosController.writeMessage(name, data)" where "name" is the title of the box on the iMac display, and data is the value to send to the box display. Four fundamental functions run the show, "doSync()", "doWork()", processIncomingMessages()", and "processOutgoing Messages()". These work as you can see in the example above.

Programming the iMac display is very simple, just activate the "edit" mode, top right, then click on any box. This will display the list of actions you can program into the box.

Screen Shot 2014 03 12 at 11 25 05

Each action can be customised by Name, and display.

For full information see the developers web site here.

The Arduino Manager software is available for download from either the Mac App Store or the iOS App Store.

Thursday, 6 March 2014

Snippet of code for LCD display of bar graph

I thought I would document this snippet of code which shows an elegant way to draw a line and bar chart. At the moment it draws a fixed bar chart of BARS (defined as 10) bars, with the heights in the array barht[], obviously these values can be dynamically changed by your application, for example by an FFT of an audio input to give a spectrum...

The bar spacing and bar width are calculated depending on the number of bars (n) passed to the barchart() display function.

There is currently no vertical scale but this could be added...

2014 03 06 10 55 41
Code

#include "U8glib.h"

// SPI SCK-EN, MOSI-RW & SS-CS
#define EN 13
#define RW 11
#define CS 10

// display set up, bar, line position L & R
#define BARWDTH 5
#define LINEY 50
#define LINEXL 4
#define LINEXR 124
#define BARS 10

U8GLIB_ST7920_128X64_1X lcd(EN, RW, CS); // serial use, PSB = GND


void setup()
{  
  lcd.begin(); // init display
  lcd.setRot180(); // flip screen
}

void loop()
{
  int barht[BARS] = {5, 10, 20, 30, 40, 30, 20, 10, 5, 3}; // ht of the BARS bars
  
  // ... other code
  
  
  barchart(BARS, barht); // draw HT bars display
}

// plot line and bar at position and height
void barchart(int n, int bh[])
{
  int i, s, w; // bars, spacing and width
  
  s = (LINEXR - LINEXL) / n;
  w = s / 2;
  
  lcd.firstPage();
  do
  {
    lcd.drawLine(LINEXL, LINEY, LINEXR, LINEY);
    
    for(i = 0; i < n; i++)
    {
      lcd.drawBox(LINEXL + s * i, LINEY - bh[i], w, bh[i]);
    }
      
  }while(lcd.nextPage()); 
}


I just discovered that the lcd.drawBox(...) function gets mighty confused if the last term is 0 (zero). So any implementation should make sure that is is at least 1.

Friday, 28 February 2014

Echo display

I have been playing with the 128 x 64 bit mapped display LCD. This can be driven over an SPI bus and can use the very flexible u8glib library. My set up is like this. The display shows both the distance away from the sensor in cm, and has a graphical bar that move left and right to show this distance.

2014 02 28 18 35 39

Some of the methods for the u8glib library (Google it to find/download) are:

lcd.begin(); // reset display and put in default state
lcd.enableCursor(); // cursor visible
lcd,disableCursor(); // cursor not visible (default state)
lcd.setCursorPos(x, y); // cursor to x, y
lcd.setColorIndex(col); // BW on = 1, off = 0
lcd.drawBitMap(x, y, cnt, h, *bitmap); // draw bit map of cnt bytes
                                       // width is cnt * 8
                                       // at x, y (top left) height h
lcd.drawBox(x, y, w, h); // filled box at x, y. width w, height h
                         // fill set by color index
lcd.drawCircle(x, y, rad, opt); // x, y centre, radius rad, 
                                // opt is option to draw part circle
                                // U8G_DRAW_UPPER_RIGHT, ...LEFT,
                                //  ... LOWER_LEFT, ... RIGHT, ...ALL
lcd.drawDisk(x, y, rad, opt); // as above but filled circle
lcd.drawFrame(x, y, w, h); // frame at x, y width w height h
lcd.drawRFrame(x, y, w, h, r); // rounded frame, edges radius r
lcd.drawHLine(x, y, w); // draw horizontal line from x,y width w
lcd.drawVLine(x, y, h); // draw vertical line from x, y height h
lcd.drawLine(x1, y1, x2, y2,); // draw line from x1, y1 to x2, y2
lcd.drawTriangle(x1, y1, x2, y2, x3, y3); // filled triangle
lcd.drawPixel(x, y); // pixel at x, y
lcd.setFont(*font); // sets font - see table below
lcd.getStrWidth(*s); // returns string width in pixels in current font
lcd.drawStr(x, y, *s); // string at x, lower left of font characters 
lcd.firstPage(); // starts a “picture loop”
lcd.nextPage(); // marks end of “picture loop”, returns 0 if finished


x = col, y = row down from the top left 0, 0 of the LCD. Images (like boxes) draw w = right, h = down from the index x, y. f

For an 128 x 64 display using the ST7920 controller chip an object can be created very simply with

#include “u8glib.h”
U8GLIB_ST7920_128X64_1X lcd(SCK, MOSI, CS); // lcd object


where SCK, MOSI & CS are the standard Arduino Uno SPI bus signals - see code below for connections. Note that display PSB must be GND for serial SPI bus operation.

Code

// QC12864B display using ST7920, with built in pot "VR" for adjusting VO
// LCD connections VSS - GND, VDD - 5V, RS - 10, RW - 11, E - 13, PSB - GND, A - 120R - 5V, K - GND
// sonar Trig 8, Echo 9

#include "U8glib.h"
#include "NewPing.h"

// SPI SCK, MOSI & SS
#define EN 13
#define RW 11
#define CS 10

// sonar
#define TRIG 8
#define ECHO 9
#define MAXDIST 200

// display set up, bar, line position length, caption position
#define BARWDTH 5
#define BARHT 10
#define LINEX1 2
#define LINEY1 50
#define LINELEN 120
#define CAPY1 10

// lcd object
U8GLIB_ST7920_128X64_1X lcd(EN, RW, CS); // SCK = EN D13, MOSI = RW D11, SS = CS D10

// sonar object
NewPing sonar(TRIG, ECHO, MAXDIST);

void setup(void)
{
  lcd.begin(); // init display
  lcd.setRot180(); // flip screen
}

void loop(void) 
{
  unsigned int barht; // bar height = number of echos (0-50)
  unsigned int barecho; // echo distance (0 to 120-BARWDTH) = 50
  unsigned cm; // echo return
  char cmbuf[4]; // echo return in ASCII
  

  cm = sonar.ping_cm(); // get distance echo
  sprintf(cmbuf, "%d", cm); // convert to ASCII
  barecho = map(cm, 0, MAXDIST, LINEX1, LINEX1 + LINELEN); // scale cm to line len
  barht = BARHT; // set bar height
   
  // picture loop
  lcd.firstPage();  
  do 
  {
    lcd.setFont(u8g_font_helvR08); // font height "A" of 8 pixels, 2 rows "g" descenders
    
    lcd.drawStr(LINEX1, CAPY1, "Echo distance measurement"); // col 2 row 8, text bottom left is on row
    lcd.drawStr(40, CAPY1 + 11, cmbuf);
    lcd.drawStr(60, CAPY1 + 11, "cm");
    
    lcd.drawLine(LINEX1, LINEY1, LINEX1 + LINELEN, LINEY1); // base line
    
    lcd.drawStr(LINEX1, LINEY1 + 10, "0"); // scale numbers
    lcd.drawStr(LINEX1 + LINELEN - 16, LINEY1 + 10, "200"); 
    
    lcd.drawBox(LINEX1 + barecho, LINEY1 - barht, BARWDTH, barht);
    

  } while(lcd.nextPage());
  
  // rebuild the picture after some delay
  delay(500);
}

Tuesday, 18 February 2014

Starting thoughts for an Arduino based SDR

Humming about in my mind for some time has been an Arduino based SDR. A few things have come together to at least create a schematic of how it would look.

2014 03 06 11 02 26

On the left is a balanced mixer. This circuit is very interesting as it works both ways. An input from the antenna goes to the SDR Tayloe detector, on the other hand a signal from the Tayloe circuit (for transmitting!) will go out to the antenna. The JFETs used can provide 0.2-0.5W output.

The Tayloe detector uses the FET switch FST3253, which is very common in SDR designs. The I & Q (in-phase and quadrature) signals for the detector switching are generated by the Arduino Uno - more about that below.

The outputs 1B... of the FST3253 go to the summing capacitors of 470nF and the op-amps which provide the audio output. The balanced mixer runs from the Ardunio 3V3 supply, as do the bias to the op-amps (on the +ve inputs). The FST3253 and op-amps run on the Arduino 5V supply.

Arduino Side

The Arduino has to do two things, generate the I & Q signals in quadrature, and drive the DDS AD9850 VFO. A previous post showed how to connect and drive the VFO. So here is the other bit for the I & Q signals.

The chip on my Arduino Uno is the ATmega328. This has three Timers (0, 1 & 2) but no output circuitry to generate quadrature signals (a sad omission on the part of the chip designers...). But in this configuration different signals could be used, generated either by an external counter or directly from the Arduino... which works is to found out when I build it!

So what I do is to set up one of the timers (Timer0) to generate two square waves. One with twice the frequency of the other. Like this:

Screen Shot 2014 02 18 at 12 33 36

To do this you need to understand the complexities of the timers. Timer0 is an 8-bit register which counts up at the clock frequency of 16MHz. Every time is resets it toggles the output signal OC0A which comes out of pin D6 of the Arduino Uno board. The count at which is resets can be set by a value in the OCR0A register. So putting a value of 32 in OCR0A will make it count up to 32 then reset. Thus generating a signal on pin 6.

There is a second separate compare register called OCR0B which can be set up in a mode such that it gets set on the counter reset, and cleared when the count in the OCR0B register is reached. This OC0B signal is then output on pin 5 of the Arduino Uno board. If the OCR0B register is loaded with the value 16 (32/2), then the OC0B signal will be twice the frequency of the OC0A signal as you can see in the diagram.

Other values can be tried for OCR0A & B registers. This has yet to be tried and checked.

The FT3253 can be driven either from a counter, or maybe directly from the two signals from the Arduino...

The snippet of Arduino code to set up Timer0 and generate these signals is:

// Using Timer0, Fast PWM mode
// WGM = 111, mode 7
// COM0A = 01, toggle on match, with WGM02 = 1
// COM0B = 10, clear output OC0B on match, set at BOTTOM
// CS0 = 001, no pre-scale /1
// OCR0A = 32, OCR0B = 16, 50% duty

// includes and object definitions go here

void setup()
{
  pinMode(5, OUTPUT); // OC0B
  pinMode(6, OUTPUT); // OC0A
  // could use DDRD = DDRD | B01100000; i.e. bits 5 & 6 of PORTD OUTPUTS

  // any other setup code goes here

  TCCR0A = 0; // init registers, set all bits to 0
  TCCR0B = 0;

  // set TCCR0A
  // 7        6        5        4        3        2        1        0
  // COMP0A1  COMPA0   COMPB1   COMPB0   -        -        WGM01    WGM00 
  //    0        1       1        0      0        0          1       1    
  // set OC0A on match: COM0A1 = 1, COM0A0 = 1
  // set Fast PWM: WGM01 = 1, WGM00 = 1

  TCCR0A = (1 << COM0A0) | (1 << COM0B1) | (1 << WGM01) | (1 << WGM00);



  // set TCCR0B
  // 7        6        5        4        3        2        1        0
  // FOC0A    FOC0B    -        -        WGM02    CS02     CS01     CS00 
  //   0        0      0        0          1        0        0        1
  //prescale CS02 = 0, CS01 = 0, CS00 = 1, and Fast PWM WGN02 = 1

  TCCR0B = (1 << WGM02) | (1 << CS00);

  OCR0A = 32;
  OCR0B = 16;
}

void loop()
{
 // code for AD9850 goes here
}


The Transmitter

Instead of pins 1B... of the FST3253 going out to the op-amps, a pair of op-amps are used to input 180 deg phase shifted I & Q audio to these pins, this will then be encoded, mixed in the mixer, and transmitted to the antenna. Voila.

Use an SDR program

The I & Q audio signals can be decoded with an SDR progam, for example DSP Radio for the Mac, this progran can also generate the I & Q signals from the Mac microphone input on transmit.

The only part of the SDR "loop" not yet joined up is the control of the AD9850 VFO by the SDR prorgam. Almost all SDRs use a micro chip with sofware pre-loaded to repond to commends from the SDR software over a USB connection. But so far I have not found out how this works...