Radar Speed based on doppler device


hello everyone,
i'm trying create radar speed able measure speed of cars.
after deep research on internet, found interesting things, far have no success...
i have ordered jtron hb100 10.525ghz microwave doppler (i don't have device yet on hands) jtron hb100 10.525ghz.
so, while don't have device on hands, decided use mattel hot wheels radar gun perform experiments, , found 1 have done hard work , found "test point" should out frequency picture bellow:
i'm using frequency measurement library build small circuit library website recommend that's connected arduino pins 5,6 , 7 , "test point" mattel toy connected signal input.

this code have response device:
code: [select]

//* connect pin 5,6 , 7 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 value 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 test a-440hz tuning fork when use tuning fork, on mattel toy displays 20km/h while on arduino output:
code: [select]

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
** test tuning fork ends here!, bellow data when leave toy away...maybe 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 internet research, build attached diagram test without mattel controller board connecting doppler if signal it's input.
could me working ?

thanks in advance!

i received sensors, result still same!
i borrowed osciloscope friend, , on mattel radar gun toy, note vcc (the doppler device) operates in pulse mode @ 8.000khz. (take on attached picture!)
so, 1 me ? thanks!


Arduino Forum > Using Arduino > Sensors > Radar Speed based on doppler device


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code