Go Down

Topic: Doppler Speed Radar (Read 10390 times) previous topic - next topic

GoForSmoke

Maybe some day I'll be able to listen to objects move again. It's a wonderful experience.
Nick Gammon on multitasking Arduinos:
1) http://gammon.com.au/blink
2) http://gammon.com.au/serial
3) http://gammon.com.au/interrupts

dattasaurabh82

umm, Is there any way of putting the velocity at 0 mph when not detecting anything? Cause here(when I experimented with it) when I did not move my hand, it still showed 2 mph & that's not acceptable in some cases.

AWOL

Quote
when I experimented with it

What is the "it" of which you speak?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

wwbrown

Russ,

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

Thanks
wade

dattasaurabh82

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

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

GoForSmoke

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.

Nick Gammon on multitasking Arduinos:
1) http://gammon.com.au/blink
2) http://gammon.com.au/serial
3) http://gammon.com.au/interrupts

dattasaurabh82

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

dattasaurabh82

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.


GoForSmoke

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.
Nick Gammon on multitasking Arduinos:
1) http://gammon.com.au/blink
2) http://gammon.com.au/serial
3) http://gammon.com.au/interrupts

dattasaurabh82

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.

cshsss

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 = freq*60;                 // 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();
        }
    }
}

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


AWOL

#26
Mar 26, 2015, 08:41 am Last Edit: Mar 26, 2015, 08:41 am by AWOL
Quote
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.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

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.

 

GoForSmoke

#28
Mar 26, 2015, 10:50 am Last Edit: Mar 26, 2015, 10:51 am by GoForSmoke
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.

 
Code: [Select]

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.
Nick Gammon on multitasking Arduinos:
1) http://gammon.com.au/blink
2) http://gammon.com.au/serial
3) http://gammon.com.au/interrupts

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy