Mallika V
Published © GPL3+

​Serpo Shield 360: Snake Deterrent System

​A smart Arduino-based safety device that uses IR sensors to detect and deter snakes. Created by Kirupakaran V.

IntermediateWork in progress5 hours57
​Serpo Shield 360: Snake Deterrent System

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Arduino UNO
Arduino UNO
×1
360-Degree Infrared (IR) Sensor Array
×1
​Soil Moisture Sensor
×1

Hand tools and fabrication machines

USB-A to B Cable
​Laptop

Story

Read more

Schematics

Serpo_Shield_360_Code

Code

Serpo_Shield_360_Code

C/C++
/* * Project: Serpo Shield 360
 * Creator: Kirupakaran V.
 * Description: Smart Snake Deterrent with Bio-Acoustics
 */

const int irSensorPin = 2;    // IR Sensor Input
const int relaySpeaker = 7;   // Relay to trigger Frequency Sweep Speaker
const int waterMotorRelay = 8; // Relay for thermal decoy
const int alertLED = 13;      // Red Alert LED
const int safeLED = 12;       // Green Safe LED

void setup() {
  pinMode(irSensorPin, INPUT);
  pinMode(relaySpeaker, OUTPUT);
  pinMode(waterMotorRelay, OUTPUT);
  pinMode(alertLED, OUTPUT);
  pinMode(safeLED, OUTPUT);
  
  Serial.begin(9600);
}

void loop() {
  int sensorStatus = digitalRead(irSensorPin);

  if (sensorStatus == LOW) { // Snake Detected
    Serial.println("ALERT: Snake Detected in 360 Zone!");
    
    // Activate Deterrents
    digitalWrite(alertLED, HIGH);
    digitalWrite(safeLED, LOW);
    digitalWrite(relaySpeaker, HIGH); // Trigger radio frequency sweep
    digitalWrite(waterMotorRelay, HIGH); // Activate thermal decoy
    
    delay(5000); // Run deterrent for 5 seconds
  } 
  else {
    // System Safe
    digitalWrite(alertLED, LOW);
    digitalWrite(safeLED, HIGH);
    digitalWrite(relaySpeaker, LOW);
    digitalWrite(waterMotorRelay, LOW);
  }
  
  delay(100); // Small delay for stability
}

Serpo_Shield_360_Code

C/C++
/* * Project: Serpo Shield 360
 * Creator: Kirupakaran V.
 * Description: Smart Snake Deterrent with Bio-Acoustics
 */

const int irSensorPin = 2;    // IR Sensor Input
const int relaySpeaker = 7;   // Relay to trigger Frequency Sweep Speaker
const int waterMotorRelay = 8; // Relay for thermal decoy
const int alertLED = 13;      // Red Alert LED
const int safeLED = 12;       // Green Safe LED

void setup() {
  pinMode(irSensorPin, INPUT);
  pinMode(relaySpeaker, OUTPUT);
  pinMode(waterMotorRelay, OUTPUT);
  pinMode(alertLED, OUTPUT);
  pinMode(safeLED, OUTPUT);
  
  Serial.begin(9600);
}

void loop() {
  int sensorStatus = digitalRead(irSensorPin);

  if (sensorStatus == LOW) { // Snake Detected
    Serial.println("ALERT: Snake Detected in 360 Zone!");
    
    // Activate Deterrents
    digitalWrite(alertLED, HIGH);
    digitalWrite(safeLED, LOW);
    digitalWrite(relaySpeaker, HIGH); // Trigger radio frequency sweep
    digitalWrite(waterMotorRelay, HIGH); // Activate thermal decoy
    
    delay(5000); // Run deterrent for 5 seconds
  } 
  else {
    // System Safe
    digitalWrite(alertLED, LOW);
    digitalWrite(safeLED, HIGH);
    digitalWrite(relaySpeaker, LOW);
    digitalWrite(waterMotorRelay, LOW);
  }
  
  delay(100); // Small delay for stability
}

Credits

Mallika V
1 project • 0 followers

Comments