Doppler Speed Radar

when I experimented with it

What is the "it" of which you speak?

Russ,

If I can ask what did you pay for the MDU1720 modules and where did you get them?

Thanks
wade

I'm staying in India & I got is in handy:
[u]http://www.sunrom.com/sensors/speed/microwave-doppler-radar-sensor-for-motion-and-speed-sensing[/u]

Obviously I'm talking about the speed that get's printed in serial monitor.

Try testing with something that has no moving parts, like a cardboard box. With doppler a car with running engine 'moves' just by the vibration of the body.

It's with the timer 2, that's for sure. But before I make the initial values as 0mph, I need an expert opinion on this & a better way of doing this.
& showing 2mph for a static body's sort of absurd. But that's mathematics going in there.
I confused myself on this. Just started studying Timers

Is there a way of increasing the range of the Doppler radar? As in the data sheet of the Doppler radar(that I bought from an Indian market) shows a maximum sensing range of 20ms . But when I tested it on road, it gave me hardy1.5-1.8ms sensitivity. The parallex X-band sensor have a range 2.4-9m approx. I need to increase the range of my Doppler since I cannot get a parallex model whose sensitivity range can be controlled with a trim pot.

Can you give it more power?

Also what you reflect from, smooth metal is best and for testing a corner reflector will send the most back. If you take a box and cut so there are 3 sides together making a corner then line the inside of that with smooth foil (try not to wrinkle) you will have a cheap corner reflector. Make it not small. Even if the reflector is not pointing directly at the source, the geometry will send the waves back. It works with light, it should work with radar.

Last is movement. The object must move relative to the radar either toward or away though sideways can be mixed in.

No 5 volts is maximum. & currently, since I'm using it for vehicle speed measurement, you can expect the worse conditions. Any type of vehicle's surface from Indian Roads shall be the reflecting surface.

Hello everyone.

I am a Korean. I am interested in radar system.

I made Radar system. However, I encounter the serious problems.
If I start the below source code, it always have speed 60 Hz, Speed 840[m/s]

I am thinkg about this problems. In my opinion, whenever the counter happened, freq is not zero.

So freq has always 1.

If you have any solution, please help me.

=====================================
X-tal : 8000000 Hz
TICK_CNT // 255-(8000000/1024/60) = 126

The interrupt has happened 60 times / 1 seconds

Code============================================
static unsigned int freq = 0;
static double speed = 0;
// timer0 : 8bit as timer
// timer1 : 16bit as counter

#pragma vector = TIMER0_OVF_vect //off time
__interrupt void Timer0_Interrupt(void)
{

freq = TCNT1; // edge clock count
TCNT1 = 0; // edge clock counter init.

TCNT0 = 0x1C; // Timer init
if(T2_Timer > 0) T2_Timer--; // Use external Timer
}

#pragma vector = TIMER1_OVF_vect //counter
__interrupt void Timer1_Interrupt(void)
{

}

void main( void )
{
System_init();
Delay_ms(100);

Radar_Pulse_Enable();
Delay_ms(10);
TCNT1 = 0;
TIMSK = 0x05;

while(1)
{

if(freq > 0) // when the radar detect any product
{

Radar_Pulse_Disable();
freq = freq60; // 60 interrupta per seconds
speed = freq
0.014; // unit [m/s]

UART_String_Transmit(" Freq : ");
Tx_HOST_Printf("%d[Hz]",freq);

UART_String_Transmit(" Speed : ");
Tx_HOST_Printf("%0.3lf[m/s]", speed);
Tx_HOST_Char(LF);
Tx_HOST_Char(CR);

memset(Printf_Buff, 0, PRINT_BUF_SIZE);
memset(com1_rx_data, 0, RX_BUF_LENGTH);

freq = 0; //reset

Radar_Pulse_Enable();
}
}
}

==============================================

If I start the below source code, it always have speed 60 Hz

What's your local mains frequency?

Please remember to use code tags when posting code.

Hello, This is the first time to write this web-page.
So, Could you tell me the code tags??

And, I use 10.525GHz radar(HB 100).

Thanks.

cshsss:
Hello, This is the first time to write this web-page.
So, Could you tell me the code tags??

And, I use 10.525GHz radar(HB 100).

Thanks.

Quote this post and you will see this text inside of code tags.
You will also see this whole post and your post inside of quote tags, all html.

hi, i'm new to this forum. I want to ask it is possible to have two hb100 microwave sensor to work on one arduino board? im using the sensors to detects car speed. if it is possible how do i assign which pins to use for each sensor?

Hello all.
Needing a little help.
I am using this radar code on the uno, works good, when i try to use it on the mega2560 nothing happens
what do i need to change for it to work on the mega2560

thanks for the help.

What code?

sorry.
Im using the enclosed code on a uno, so what will i need to change for it to work on a mega2560

thanks for the help

Radar.ino (1.83 KB)

Rechecked the sums, and they look ok
regards

Allan.

jam67033:
sorry.
Im using the enclosed code on a uno, so what will i need to change for it to work on a mega2560

thanks for the help

It compiles fine for a MEGA. I think your biggest problem will be that the Input Capture pin for Timer1 is not brought out to any Arduino pin. You may have to switch to Timer4 (Pin 49) or Timer5 (Pin 48).

read the post on my radar project and will try your suggestion on changing the timers

thank you