Trouble Using Grove Sensors With Jetson Nano

Hi all,

I recently got started trying to connect a Grove PIR Motion Sensor & Grove NFC Reader to my Jetson Nano, using the Grove Base HAT.

I followed these two guides to get the necessary libraries set up in order to interface with the Grove devices:

So, when I tried to test the PIR Motion Sensor, I encountered an issue. I first tried testing it using the test specified here on the sensr’s Wiki page:
https://wiki.seeedstudio.com/Grove-PIR_Motion_Sensor/

However, all that showed up when I tried this test was the following:
"Hat Name = ‘Grove Base Hat RPi’ ", and then blank lines following.

Next I tried using the test in the aforementioned GitHub’s blob/master/doc/README.md page.

However, this time, all I got was an endless stream of “Watching”, indicating that it wasn’t picking up the movement I was doing in front of it, or wasn’t getting the input from the sensor.

So, I was wondering if someone might know what the issue is, either the sensor not working, or the Jetson Nano not being able to get the input from it, and how I might be able to resolve this issue.

Furthermore, none of the guides above mention anything about the NFC Reader, so I was wondering if anyone had any experience setting that up as well.

Thanks!
Sam

Did you check with i2cdetect to confirm if the device can be found?

Using i2cdetect -r -y 1 with the sensor plugged in yields the following:

 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00: – 04 – – – – – – – – – – –
10: – – – – – – – – – – – – – – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – – – – – – – – – – –
40: – – – – – – – – – – – – – – – –
50: – – – – – – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: – – – – – – – –

Indicating the Grove Base HAT is being detected, but I don’t know if this would also show if the sensor is connected.

I don’t have much experience for this device. You may need to trace down the code follow to get more information.

What do you mean? And do you know someone who might know more about this?

I mean you may need to study the python code and narrow down to problem.

Well, that’s part of the problem, that I mentioned in the original post. There are no errors when I run programs to test if the sensor is working. Using the test in the the PIR Motion Sensor’s wiki page, the program runs, but doesn’t receive any input to relay, or isn’t able to access/process the input, outputting the message posted above of "Hat Name = ‘Grove Base Hat RPi’ ", and then blank lines following.

When I try another test script on the GrovePi Github page:

import time
from grove.factory import Factory

### connect to pin 5(slot D5)
pir = Factory.getGpioWrapper("PIRMotion", 5)
while True:
    if pir.has_motion():
        print("Hi, people is moving")
    else:
        print("Watching")
    time.sleep(1)

I get an infinite stream of “Watching”.

I know the Grove Base HAT & PIR Sensor work, as I’ve successfully tested them with my Raspberry Pi. And according to the guides listed in the original post, Grove Sensors should also work with the Jetson Nano, so I don’t know what the issue might be.

I think the py code should have code to access the sensor REG, if you can find it and just use i2cget to access the REG to confirm it would be greate.

I just got confirmation from Seeed Studio that they don’t know of any modules they make/sell that work with the Jetson Nano. So in that case, do you know of any PIR Motion Sensors & NFC Readers that definitely are compatible?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.