iqram20 / mmWave

mmWave SDK examples based on Batman Kit mmWave Sensor module

Home Page:http://www.joybien.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mmWave

mmWave SDK examples based on Batman Kit mmWave Sensor module This App works with Raspberry Pi 3, Pi 2 , Pi 4 and Jetson Nano ,Windows and MacOS. Run this repository example needs install mmWave lib. Those examples are VSD,HAM,PMB,SRR,PC3D,TMD examples: VSD stands for Vital Signs Detection, HAM stands for High Accuracy Measurement, PMB stands for People Moving Behavior, SRR stands for Short Range Radar, LPD stands for Long range People Detect, PC3D stands for People Overhead Counting 3D, TMD stands for Traffic Monitor Detection

Hardware requirements:

   VSD: Batman kit 101: IWR1642-VSD
   HAM: Batman kit 101: IWR1642-HAM
   PMB: Batman kit 101: IWR1642-PMB
   SRR: Batman kit 101: IWR1642-SRR
   
   LPD: Batman kit 201: IWR6843-LPD
   PC3D: Batman kit 301: IWR6843-PC3D
   TMD: Batman kit 201: IWR6843-TMD

Install Library:

  mmWave Library
  $sudo pip3 install mmWave
  
  tkinter Library
  $sudo pip3 install tkinter
  or
  $sudo apt-get install python3-tk python-tk
  
  numpy Library
  $sudo pip3 install numpy
  or
  $sudo apt-get install python3-numpy python-numpy
  
  NOOBS_V3 is installed already
  pySerial Library
  $sudo pip3 install pySerial
  
  RPi.GPIO library please reference:
  https://www.raspberrypi-spy.co.uk/2012/05/install-rpi-gpio-python-library/

Some install problem the following information for reference:

  (1)-------libf77blas.so.3-----------------------------------------
  from scipy.linalg import _fblas
  ImportError: libf77blas.so.3: cannot open shared object file: No such file or directory

  problem solved:
  First of all, for libf77blas.so.3, you have to install ATLAS, something like sudo apt-get install libatlas-base-dev

  $sudo apt-get install libatlas-base-dev
  (2)-----------------------------------------
  Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 265, in open
  self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
  FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyS0'

  problem solved:

  (1)menu->perference->Raspberry pi Configuration->Serial Port(Enable)
  (2)reboot:
  (3)$ls -l /dev/ttyS0
        crw--w---- 1 root tty       4, 64 Nov  1 04:21 /dev/ttyS0
  (4)$sudo chmod +666 /dev/ttyS0
  (5)pi@raspberrypi:~ $ ls -l /dev/ttyS0
      crw-rw-rw- 1 root tty 4, 64 Nov  1 04:21 /dev/ttyS0

How to Enable RPi UART port:

Enable UART:

  1:[MainMenu] -> [Preferences] -> [Raspberry Pi Configuration]

MainMenu 0

  2:Select [Interface Tab] in Raspberry Pi Configuration
  
  3:Enable Serial Port: Check radio RadioButton

MainMenu 1

  4:List tty Device
  
  $ls /dev/tty*
  $sudo chmod +666 /dev/ttyS0
  or 
  $sudo chmod +666 /dev/ttyAMA0
  
  Reboot

MainMenu 1

UART Still can not work, Please check cmdline.txt

$cat /boot/cmdline.txt

if you find the console=serial0,115200 in cmdline.txt. please use raspi-config to remove it.

$sudo raspi-config 
then reboot

Detailed information plrase reference:

https://www.raspberrypi.org/documentation/configuration/uart.md

Video Demo(Press ICON to watch the Video)

Vital Signs Detection:

Watch the Video

High Accuracy Measurement:

Watch the video

People Moving Behavior:

Watch the video

Short Range Radar:

Watch the video

People Overhead Counting 3D:

Watch the video

About

mmWave SDK examples based on Batman Kit mmWave Sensor module

http://www.joybien.com


Languages

Language:Python 100.0%