PIR portable Alarm Buzzer for Fishing or Camping
Description
Video: https://youtu.be/m-AhK6Sv75c this is a PIR alarm inspired by product sold for fishing or camping. it will alert you with sound and flashing LED lights. powered by a 9V battery it is portable and independent from other things. included is a file to print a universal adapter to be glued on the back, it accept a 8mm rod, strap(2cm wide) or a cord/rope up to 5mm. this can be installed at your back when you are fishing to warn you of something coming close, or to warn in case of a thief coming when you are sleeping. very practical for fishing or camping in remote place. this item is designed for those component: -digispark ATTINY85 USB module (or other small arduino) -9V battery + connector -round power switch -PIR module -piezo buzzer (12mm) -1 powerful 5mm led installed on the back side note: Version 3 has only 1indicator LED and no more "Power" led. this is to reduce the clutter inside. i also extended the bottom 10mm so you can use a battery connector on a dangling wire instead of trying to install and glue a connector far away inside the case. my prototype V1 with 2led and a "power" led took me 5hours to assemble. it was very had to try and cram everything inside. V3 should be much better and versatile. arduino code: //pin const int buzzerPin = 2; const int ledPin = 1; const int motionPin = 0; int sensorValue = LOW; void setup() { pinMode(ledPin,OUTPUT); pinMode(buzzerPin,OUTPUT); pinMode(motionPin,INPUT);; digitalWrite(ledPin, LOW); digitalWrite(buzzerPin, LOW); } void loop() { sensorValue = digitalRead(motionPin); if ( sensorValue == HIGH) { tone(buzzerPin, 1200); digitalWrite(ledPin, HIGH); delay(100); noTone(buzzerPin); digitalWrite(ledPin, LOW); delay(100); } else { noTone(buzzerPin); digitalWrite(ledPin, LOW); } }
Statistics
Likes
10
Downloads
0