Hardware

GPIO Configuration

GPIO pin assignments for the button and motion sensor can be changed in the pawvision_settings.json configuration file. Update the following fields to match your wiring:

Refer to your board’s pinout diagram to select the correct GPIO numbers.

Required Components

Wiring the Button

  1. Connect one leg of the button to the designated GPIO pin (see your configuration, e.g., button_pin).
  2. Connect the other leg to a ground (GND) pin on the SBC.
  3. The software uses an internal pull-up resistor, so no external resistor is required.

Example (Raspberry Pi):

Wiring the Motion Sensor

  1. Connect the VCC pin of the PIR sensor to a 3.3V or 5V power pin (check your sensor’s requirements).
  2. Connect the GND pin to a ground pin on the SBC.
  3. Connect the OUT pin to the designated GPIO pin (e.g., motion_sensor_pin).

Example (Raspberry Pi):

Supported Motion Sensors

PawVision supports standard PIR (Passive Infrared) motion sensors, such as the HC-SR501. These sensors detect movement by measuring changes in infrared radiation.

mmWave Sensors

mmWave (millimeter wave) sensors are also supported for motion detection. These sensors use radio waves to detect movement and offer:

To use an mmWave sensor:

Most modules with a simple HIGH/LOW output will work out of the box. If your sensor requires special handling, you may need to adjust the configuration or code accordingly.

Notes

Safety Advice: Resistors and Voltage Protection

For most basic setups, no extra diodes or resistors are strictly required. However, for added safety and reliability:

Summary: