Interface a mircowave radar device to the microcontroller

11 Feb 2010 . Edited: 12 Feb 2010

Hello  there

I am trying to connect a microwave radar device to the MBED microcontroller to detect  people in a room, however it find out  one a LED  turn on .

http://www.microwave-solutions.com/shop/media/pdf/DataSheets/Mdu1750f.pdf

Due  changing doppler effect frequency very fast, I  would  like to know the frequency response of microcontroller, and if building an high pass  filter to  clear DC error and an amplify are enough to connect the device to the micro.

Also i went to  write a such code (see below), but id like to initialize to 0 the AnalogIn how can  i do?

Hope all is  clear

Regards

Antonio:)

 

AnalogIn DE(p20);
DigitalOut Sir(p5);
int main()
{
    while(1) 
    {
            
      if(DE > 0.3)
       {
            Sir = 1;
            
            wait (0.5);
            
       } 
      else 
       {
            Sir = 0;
       }   
    }
}
12 Feb 2010

how can i  deleted it , anyway i did !!!  wowoowowoowow :D 

AnalogIn DE(p20);
DigitalOut Sir(p5);

float value = 0;

 

int main()
{
    wait  (1);
    while(1)
    {
   
    value = DE * 1;
   
    if(value > 0.3)
       {
            Sir = 1;
           
            wait (0.25);
           
       }
      else
       {
            Sir = 0;
       }  
    }
}