Maybe this will help you get started...
Check to see if you PIR is 3.3v compatible. Some are. If so, you can use the simple fritzing example without the voltage divider.
NOTE: In the fritzing diagrams the PIR red wire is VCC, black wire is GND and yellow wire PIR OUT.
If your PIR is not 3.3v compatible, you can use the fritzing example with the voltage divider which uses 4.7K and 10K resistors to form that divider and drop the PIR output signal to about 3.4v assuming 5v at VIN. Check the band colors to see which resistor is which in the diagram. Do not exceed that 5V for VIN (i.e. Power to the Oak) as it will raise the voltage of the PIR output.
This all may not be necessary if the Oak pins can tolerate 5V but, I would rather be safe than sorry.
Finally, here is a very simple example. It will need a lot more code to handle the notifications and keeping motion states so that you are not flooded with continuous notifications when the PIR output remains HIGH because of motion. The example simple turns on the Oak onboard LED when motion is detected.
// Simple Oak PIR example
#define PIR_Out 5 // On Oak pin 5
#define Oak_LED 1 // Onboard LED pin
void setup()
{
pinMode(PIR_Out, INPUT);
pinMode(Oak_LED, OUTPUT);
digitalWrite(Oak_LED, LOW); // Turn Off onboard LED
// Serial.begin(9600);
// Serial.println("Warming up...");
delay(10000); // Ten seconds
}
void loop()
{
if (digitalRead(PIR_Out) == HIGH) {
digitalWrite(Oak_LED, HIGH);
}
else {
digitalWrite(Oak_LED, LOW);
}
delay(200); // Adjust delay as needed
}
exeng OUT