Back to Projects

IoT Surveillance Camera With Port Forwarding

Built a Raspberry Pi surveillance system with PIR motion detection, infrared recording, timestamped video storage, and remote live-feed access through port forwarding.

Technologies

Python
Raspberry Pi

Links

Introduction

I developed an IoT Surveillance Camera system using a Raspberry Pi to provide efficient and accessible surveillance. The system uses a motion-activated infrared camera that records 10-second videos when movement is detected, allowing monitoring even in low-light conditions.

Each video is saved with the current date and time for easy retrieval. A web server enables remote access to the live camera feed, giving users real-time monitoring from another location.

Features and Functionality

  • Motion detection: Uses a PIR sensor connected to the Raspberry Pi GPIO ports to detect movement.
  • Infrared recording: Captures 10-second videos in low-light conditions.
  • Date and time stamping: Saves recorded videos in folders named with the current date and time.
  • Remote access: Hosts a web server so users can view the live camera feed remotely.

How It Works

The Raspberry Pi acts as the central processing unit, connecting the PIR sensor, infrared camera, recorded video storage, and the web server used for remote monitoring.

Hardware Setup

The PIR sensor detects motion in the surveillance area and triggers the infrared camera. The Raspberry Pi handles the sensor input, camera capture, saved recordings, and web server.

Raspberry Pi surveillance camera components

Motion Detection Recording

When motion is detected, the user sees a motion message and detection count. The system then saves the recorded video with the date and time so the footage is easier to find later.

Motion detection to MP4 recording flow
Motion detection recording

Remote Live Feed

Port forwarding allows external devices to connect to the Raspberry Pi web server over the internet, giving users access to the live camera feed from another location.

Raspberry Pi web server live feed

Low-Light Recording

The infrared camera can capture footage in low-light environments, which makes the system more reliable when standard lighting is limited.

Infrared camera in well-lit and poorly lit conditions

Future Improvements

  • Integrate cloud storage for extended storage and backups.
  • Allow users to receive alerts and view footage directly from smartphones.
  • Add authentication and access control to the web server.

Conclusion

The IoT Surveillance Camera project combined hardware and software to create a practical security solution. By using a PIR sensor for motion detection, an infrared camera for low-light recording, and a Raspberry Pi web server for remote access, the project provided reliable surveillance and real-time monitoring.

The project strengthened my understanding of IoT technologies, sensor integration, remote access, and how embedded systems can solve real-world security problems.

GitHub
LinkedIn