top of page

Bird Repellent Device Using Arduino Nano controller.


Using Arduino Nano to be controller.

This project is part of Computer System, 2558.

Now, The building, house and point government offices often find that there are many birds .Cause subsequent problems, The problem is easy to see the filth caused by bird droppings.And odors The area is dirty pool. Create difficulties in cleaning up and bacteria were attached to the birds.


Solutions

As mentioned in the above. We meet in the problems caused by birds. It brings up the idea of building a bird to resolve this issue. which This bird repellent device students will make a device that can be installed anywhere. It is easy to activate, safe to use and the price is not very high.

Objective

- To eliminate interference from pigeon. - To bring the benefits of technology in everyday life. - The training process is a step function.

Operation

(1.) If there is nothing fly though the sensor, The system will not de anything.

(2.) if a bird flies though the sensor, The light rotates 10 second.

(3.) If the light completly rotate, It'll check again for 3 seconds.

(4.) Due to the four case. If the sensor still detects birds, The speaker will sound out for 10 seconds.

(5.) At the end of the fourth will begin to do the case at the first case again.

Coding in Arduino

1: int d2 = 2;

2: int d3 = 3;

3: int d4 = 4;

4:

5: void setup()

7: {

8: pinMode(d2, INPUT);

9: pinMode(d3, OUTPUT);

10: pinMode(d4, OUTPUT);

11: }

12:

13: void loop()

14: {

15: if(digitalRead(d2 == HIGH)

16: {

17: digitalWrite(d3, HIGH);

18: delay(10000);

19: digitalWrite(d3, LOW);

20: delay(3000);

21: for(int a=0;a<3000;a++)

22: {

23: if(digitalRead(d2 == HIGH)

24: {

25: digitalWrite(d3, HIGH);

26: digitalWrite(d4, HIGH);

27: delay(10000);

28: a=3000;

29: digitalWrite(d4, LOW)

30: }

31: delay(1);

32: digitalWrite(d3, LOW)

33: }

34: }

35: }


bottom of page