Giter Club home page Giter Club logo

arribasraul / simple-alarm Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 4 KB

The objective of this project is to create a simple and effective alarm system using an ATtiny85 microcontroller, a wired door opening sensor, a relay module, a car siren, and an indicator LED. The alarm will be triggered when the door opening sensor detects the opening of a door, and it can be deactivated using a switch connected in the power line

C++ 100.00%
alarm attiny85 door-sensor

simple-alarm's Introduction

Alarm System with ATtiny85

This project implements a simple alarm system using an ATtiny85 microcontroller, a door opening sensor, a relay module, a car siren, and an indicator LED. The alarm activates when the door is opened, triggering the sensor, and it can be deactivated using a switch in the power line.

Components Needed

  • ATtiny85: Microcontroller to control the alarm system.
  • Door Opening Sensor: Detects door opening and triggers the alarm.
  • Relay Module: Controls the activation of the car siren.
  • Car Siren: Emits sound when activated by the relay.
  • Indicator LED: Provides visual feedback on alarm status.
  • 12V Power Supply: Powers the entire system.
  • Reset/Off Switch: Used to reset or turn off the alarm.

System Operation

  1. Door Opening Detection:

    • The sensor detects door opening and sends a signal to ATtiny85.
    • ATtiny85 triggers the alarm when it receives the door open signal.
  2. Alarm Activation:

    • ATtiny85 activates the relay module.
    • The relay module powers the car siren.
    • Indicator LED turns on to show the alarm is active.
  3. Alarm Deactivation:

    • Alarm can be deactivated using the switch in the power line.
    • Switch cuts off power to the relay and siren, turning off the alarm.
    • Indicator LED turns off to indicate alarm deactivation.

ATtiny85 Code and Logic

  • Use loop() function to monitor door opening sensor.
  • When door opens and alarm is inactive, trigger the alarm.
  • Activate the relay to power the siren and turn on the LED indicator.

Additional Notes

  • Ensure correct electrical connections to avoid damage.
  • Customize the project by adding SMS/email notifications or other features.

simple-alarm's People

Contributors

arribasraul avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.