Radar Speed based on doppler device

Hello everyone,
I'm trying to create a radar speed to be able to measure the speed of cars.
After a deep research on the internet, I found some interesting things, but so far I have no success...
I have ordered a Jtron HB100 10.525GHz Microwave Doppler (I don't have this device yet on my hands) from Jtron HB100 10.525GHz.
So, while I don't have this device on my hands, I decided to use the Mattel Hot Wheels radar gun to perform some experiments, and I found that some one have done the hard work and found a "test point" that should out with the frequency like the picture bellow:
I'm using the Frequency Measurement Library where I build the small circuit just like the library website recommend that's connected to arduino pins 5,6 and 7 and the "test point" from mattel toy I connected it to the Signal Input.

This is the code I have some response from device:

//* connect pin 5,6 and 7 to input circuit

#include <Wire.h>
#include <FreqPeriod.h>

double lfrq;
long int pp;

float kph = 0;
float mph = 0;
float omax = 0;
float nmax = 0;
float kmax = 0;
int count = 0;

void setup() {
  Serial.begin(9600); 
  FreqPeriod::begin();

  Serial.println("Radar ON!!!");
  delay(1000);
}

void loop() {

  pp=FreqPeriod::getPeriod(); // read the value from the sensor:
  lfrq= 16000400.0 / pp;

  if(lfrq < 5000)
  {

    if (pp ){
      count++;   

      mph = (lfrq / 31.36);
      kph = (mph * 1.609344);
      nmax = mph;
      constrain(mph,0,100);
      constrain(kph,0,100);

      if(nmax > omax)
      {
        omax = nmax;
        kmax = omax * 1.609344;
      }
      
      if (kph > (19))
      {
        Serial.print("Freq:");
        Serial.print(lfrq);
        Serial.print(" Hz  / ");
  
        Serial.print("Count: ");
        Serial.print(count);
        Serial.print("  /   ");
      
        Serial.print(kph);
        Serial.println(" KM/h ");
        delay(2000);
      }  
      //Serial.print(mph);
      //Serial.println(" MPH");

      if(count == 10)
      { 
        omax = 0;
        count = 0;
      }
    }
  }
}

I'm perform a test with a A-440HZ Tuning Fork that when I use this Tuning Fork, on Mattel toy displays 20KM/h while on arduino output:

Radar ON!!!
Freq:481.19 Hz  / Count: 9  /   24.69 KM/h 
Freq:442.73 Hz  / Count: 10  /   22.72 KM/h 
Freq:444.01 Hz  / Count: 1  /   22.79 KM/h 
Freq:412.64 Hz  / Count: 2  /   21.18 KM/h 
Freq:529.06 Hz  / Count: 7  /   27.15 KM/h 
** The test with Tuning Fork ends here!, the bellow data is when I leave the toy away...maybe some interferences...**
Freq:1337.49 Hz  / Count: 7  /   68.64 KM/h 
Freq:1931.95 Hz  / Count: 8  /   99.14 KM/h 
Freq:889.85 Hz  / Count: 10  /   45.67 KM/h 
Freq:1249.54 Hz  / Count: 2  /   64.12 KM/h 
Freq:2440.95 Hz  / Count: 3  /   125.27 KM/h 
Freq:860.75 Hz  / Count: 4  /   44.17 KM/h 
Freq:1246.33 Hz  / Count: 5  /   63.96 KM/h 
Freq:2289.37 Hz  / Count: 6  /   117.49 KM/h 
Freq:878.08 Hz  / Count: 8  /   45.06 KM/h 
Freq:2809.06 Hz  / Count: 9  /   144.16 KM/h 
Freq:781.65 Hz  / Count: 4  /   40.11 KM/h 
Freq:1012.62 Hz  / Count: 5  /   51.97 KM/h 
Freq:2370.78 Hz  / Count: 8  /   121.66 KM/h 
Freq:1251.01 Hz  / Count: 9  /   64.20 KM/h 
Freq:1521.10 Hz  / Count: 1  /   78.06 KM/h 
Freq:1579.66 Hz  / Count: 5  /   81.07 KM/h 
Freq:1696.22 Hz  / Count: 9  /   87.05 KM/h 
Freq:1594.46 Hz  / Count: 10  /   81.83 KM/h 
Freq:786.65 Hz  / Count: 2  /   40.37 KM/h 
Freq:1001.59 Hz  / Count: 4  /   51.40 KM/h

Also, based on the internet research, I build the attached diagram to test without the mattel controller board just by connecting the doppler IF signal to it's input.
Could you help me to get this working properly ?

Thanks in Advance!

I just received the sensors, but the result still the same!
I just borrowed a osciloscope from a friend, and on Mattel radar gun toy, I note that the VCC (the doppler device) operates in pulse mode at 8.000KHz. (Take a look on attached picture!)
So, any one could help me with this ? thanks!

Measure.jpg

@rmartins -- any progress on this project? I just got a Hot Wheels Radar Gun and want to use it to make a speed trap as well.

yeehawjared:
@rmartins -- any progress on this project? I just got a Hot Wheels Radar Gun and want to use it to make a speed trap as well.

Hi yeehawjared, No progress... I had put this project on hold... but I'm think to get some real police officer radar to make some interface with arduino...
Would be nice if anyone have some good news of this!

rmartins - what are you using for pins 5, 6, and 7 to get the speed readout?

I soldered the test connection and got some data of cars driving past the sensor. I'm only reading the test pin using analogRead(). Here's the data for some passes at different speeds:

It looks like you are just plugging in the raw sensor, and not using the test pin -- which requires you to do all the math for speed.

Can you explain what pins you are using to get the speeds listed in your post?

Hi yeehawjared, I'm sorry for my late reply... I was in process (still in proccess) to move to Florida.
As I remember I use the analog pins (I think I was using 3 analog pins of arduino for reading) and have wired some electronic components to the test pin points. (I'll take a look what I did as I move to Florida and find my "stuffs" lol ...) You are right, I was doing some math calc based on the frequency, but the problem was the noise that I couldn't figure out how to by-pass (the Hotweels formware does this job for sure!) , and this is why I put it in hold for now...
By the way, as I get moved, I'll share all the information I have, and maybe we can help each other to get this done !

Regards,
rmartins.

@rmartins -- I got it. I'll post a full howto with source code soon.

jared,

I took a look at your source code, but it doesn't have much in the way of documentation.

I connected the test pin (I'm assuming your yellow wire in hot-wheels-radar-gun/soldered wire.JPG at master · jaredmcqueen/hot-wheels-radar-gun · GitHub)

When I connect that to pin 8 and read the pin with FreqMeasure.h, I get the same reading between 3-5 and no change when the gun registers speeds 10 mph and higher.

I'd love to tie this in with a RasPi and camera to overlay the speed on a picture of speeders going down my street faster than 25 mph.

It's been a while so I can't exactly remember what values the test pin (yellow wire in my pic) gives you.

I abandoned using the hot wheels radar gun in favor of using a HB100 directly. Cheaper, easier to work with, etc.

I ultimately experimented with a HB100 with backpack from tindie. Even with heavy modification, and a waveguide, there still wasn't enough of a range to pick up vehicles reliably.

In order to get medium distance range, a true RF module would be needed. There are a lot of companies that make them, but they are expensive to buy and ship to the US.

yeehawjared, It's been a while ... I know was using the HB100 with backpack from tindie, and probably you get the same results as me... not accurate...
I'm really thinking to get a real radargun from ebay and try it with arduino to see if I can make it work...
Post in here if you have some news !