Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to use the demo functions of IGEP Radar devices

940 bytes added, 12:42, 3 September 2013
Added source code
or
./demo-epsilon.sh #If you are using IGEP RADAR EPSILON
 
The script source is similar to this:
 
<pre>
#!/bin/sh
 
# DEBUG enable "set -x"
#set -x
 
# Configure I/O
./radar_init.sh
 
# Configure DDS modulation
 
echo 0 > /sys/class/gpio/gpio162/value
./radar_dds -d /dev/spidev4.0
echo 1 > /sys/class/gpio/gpio162/value
 
# Pre-start DDS modulation
echo 1 > /sys/class/gpio/gpio140/value
# It captures ADC sample and starts DDS modulation. It saves samples to "adquisition.txt" file
./radar_adc -d /dev/spidev4.0 > adquisition.txt
# End DDS modulation
echo 0 > /sys/class/gpio/gpio140/value
 
# It adapts capured data ("adquisition.txt" file) removing DC component and selecting window of samples. It saves preprocessed sampling data to "data.txt" file
./radar_dcwindow -L adquisition.txt -B 1000 -E 1700 > data.txt
# It calculates FFT
./radar_fft -L data.txt -M 4 > fft.txt
 
# It does simple signal processing ( it searches position of maximum peak of FFT )
./radar_maxfft -L fft.txt
</pre>
When the script ends it shows you the result of the process:
0
edits