Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

SIT315 Module 1 – Task M1QP (4/4 Distinction)

Complete Interrupt-Driven Sense–Think–Act System

Author: Aarya Patel
Platform: Arduino Uno (TinkerCAD Simulation)


Project Overview

This project implements a real-time, interrupt-driven embedded system designed around the Sense–Think–Act model.
It integrates three interrupt types — Pin Change, External, and Timer — to demonstrate concurrency, modularity, and reliable state management in an embedded environment.


System Components

Component Pin Description
Switch 1 D10 PCI input
Switch 2 D11 PCI input
Switch 3 D2 External interrupt
Potentiometer A0 Analog sensor
LED D13 Output indicator
Buzzer D6 Output actuator

Features

  • PCI (D10, D11): Detects simultaneous switch states for LED logic.
  • External Interrupt (D2): Triggers buzzer alerts on change.
  • Timer Interrupt: Executes every 0.5s to read potentiometer and detect threshold events.
  • Non-blocking ISR design: All ISRs use flags, ensuring interrupt safety.
  • Completely simulated in TinkerCAD, no physical hardware required.

Logic Summary

Condition Output
S1 + S2 active LED ON
S3 active Buzzer beep
Potentiometer > 700 LED flash
Any other LED OFF

How to Run

  1. Open the project in TinkerCAD Circuits.
  2. Connect components as described above.
  3. Upload the provided TaskM1.cpp code.
  4. Start simulation and observe Serial Monitor output.

About

Arduino-based interrupt-driven Sense-Think-Act system for SIT315 Module 1 Task M1QP.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages