Skip to content

Materials: Overview

This section provides a high-level overview of the materials used in the implementation of the Embedded Blockchain Surveillance System. The materials are categorized into software and hardware components that work together to create a comprehensive surveillance solution. Visual representations of these components can be found in the System Images section.

System Components Overview

The Embedded Blockchain Surveillance System combines multiple technologies to achieve its objectives:

Software Infrastructure

  • Smart Contracts: Built with Solidity and OpenZeppelin, deployed on Polygon blockchain
  • Cloud Backend: Hono framework with IPFS integration and AI processing capabilities
  • Frontend Application: React-based interface for officials to monitor surveillance sessions
  • AI Processing: faceapi.js for criminal detection in video streams

Hardware Components

  • IoT Surveillance Devices: ESP32-CAM microcontrollers with integrated cameras
  • Motion Sensors: PIR sensors for detecting movement and triggering recordings
  • Power Supply: 7.4V 40000mAh Li-ion Battery for extended operation
  • Power Management: LM2596 DC-DC Buck Converter for voltage regulation
  • System Control: Slide switch for manual power control

Infrastructure

  • Server Infrastructure: 3.5GB VPS from Racknerd for cloud server deployment
  • Blockchain Network: Polygon for cost-efficient and scalable transaction processing
  • Decentralized Storage: IPFS via thirdweb gateway for secure video storage

Technology Stack Summary

The system leverages a comprehensive technology stack designed to provide:

  • Decentralized Data Storage: IPFS for video stream storage with blockchain verification
  • AI-Powered Detection: Automated criminal identification using face detection
  • Real-Time Monitoring: IoT devices with motion sensors providing continuous surveillance
  • Immutable Records: Blockchain-based timestamping and event logging
  • Secure Access: Role-based authentication and authorization for officials

System Architecture Visualization

Individual Components

Visual representations of individual hardware components:

  • ESP32-CAM - Main controller with integrated camera
  • PIR Motion Sensor - Detects motion and triggers recordings
  • 7.4V Battery - High-capacity power source for extended operation
  • Buck Converter - Voltage regulation component
  • Slide Switch - Manual power control component

System Integration

  • Circuit Schematic - Complete circuit diagram showing component connections
  • Coupled System - Actual implementation of all components working together
  • IPFS Dashboard - Interface for decentralized video storage

Cost Breakdown

Hardware Components

CategoryComponentFunctionEstimated Price (₦)
ProcessingESP32-CAMMain controller with dual-core processor, Wi-Fi, and integrated camera18,000
SensorsPIR SensorDetects motion using infrared radiation and sends digital signal to ESP32-CAM3,500
Power7.4V 40000mAh Li-ion BatteryPrimary power source providing extended operational time9,400
PowerLM2596 DC-DC Buck ConverterSteps down 7.4V battery voltage to 5V for ESP32-CAM operation4,500
PowerSlide SwitchMain power switch for the entire system100
ConnectionsJumper WiresFor connecting all components electrically2,500
HousingIP65/IP66 EnclosureWeather-resistant housing for outdoor protection7,000

Software and Infrastructure

CategoryComponentFunctionEstimated Price (₦)
Development ToolsSolidity, OpenZeppelin, FoundrySmart contract development and testing toolsFree (Open Source)
Backend FrameworkHonoWeb framework for cloud server API developmentFree (Open Source)
IPFS ClientHeliaDecentralized storage client for video stream managementFree (Open Source)
AI Libraryfaceapi.jsFace detection and recognition for criminal identificationFree (Open Source)
Frontend FrameworkReact, ViemUser interface and blockchain interactionFree (Open Source)
Cloud Infrastructure3.5GB VPS (Racknerd)Monthly hosting for cloud server~15,000/month
BlockchainPolygon NetworkGas fees for smart contract interactionsVariable (low cost)
IPFS GatewaythirdwebDecentralized storage accessFree tier available
Development EnvironmentVS Code, Git, Node.js, TypeScriptDevelopment tools and runtimeFree (Open Source)

Total Estimated Cost

The total initial hardware cost is approximately ₦45,000, with ongoing monthly infrastructure costs of about ₦15,000 for the VPS hosting. The software components are primarily open-source tools with minimal licensing costs.