Raspberry PiGeneral

mmWave Radar SEN0395 with Raspberry pi3

userHead SamiaHanani 2022-06-25 01:40:08 927 Views0 Replies

Hello everyone
during a project I work with mm Wave Radar SEN0395 with a raspberry pi 3 and a GrovePi Plus, I connected it through the GPIO15 and the IO2, I wrote a program with python3 to display the values read from the radar every second but it only shows me 1, someone might have an idea ?

import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
configuration=GPIO.getmode()
while True :
   port=15
   GPIO.setup(port, GPIO.IN)
   state=GPIO.input(port)
   print(state)
   time.sleep(1)