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!