easteregg Leprechaun
  • Patrick Collins
    • Home
    • Blog
      • eJPTv1 Certification
      • Conferences

      • Blog Home
    • Travel Photos
    • Notes
    • Graduation!
    • Projects and University Work
      • Honours Project
      • Web App Pen Test

      • All projects
    • Socials
    • About Me

    Arduino PIR Motion Sensor

    Arduino hardware

    About

    • Module: CMP101
    • Title: Computer Hardware Architecture and Operating Systems
    • Grade: B

    The idea for this project was to count how many people are in a room at all times. Using a PIR motion sensor, movement would be picked up when someone entered the room by the door. The arduino IDE program keeps count each time the sensor is activated and increases the total variable. Finally the total number of people in the room is displayed on a mini LCD screen. I successfully got the sensor detecting motion and the total amount of activations displayed on the sensor, which can be (kind of) seen in the following (blurry) images.

    Main Components

    Hardware components

    PIR Motion Sensor

    PIR motion sensor


    Sadly, I didn't get finishing this project how I intended. I planned on getting another sensor to take off the total, accounting for when someone left a room. I had a good understanding and idea for this project, I just didn't have enough experience to complete it fully. However, I had a lot of fun messing around with this project. Figuring out how motion can be detected then using and displaying this data.

    Why this project?

    I came up with this idea originally in a Abertay Ethical Hacking Society meeting. In the code you may see reference to "Hacksoc" which is its abbreviation. The committee has to manually keep count of the total members that are attending each meeting, and report this to the Students Association. So then my idea, which was later found to be too ambitious for me at the time haha, was to count how many people were in a room at all times.

    Maybe if I got it working as intended back then it would have sat at the door and counted the total members attending each week, and the committee would have just to look at the screen.

    <> Code

    If you would like to check out the code have a look at the repository below. You would have to get all the components to see it in motion, but hopefully I have explained it well enough.

    Please DO NOT plagiarise my code. You will be caught, it's not worth it.

    Project's Github Repository

    CMP101 Arduino PIR Motion Sensor

    An attempt to count how many people were in a room at all times, using the Arduino board, IDE and a motion sensor.


    Copyright © 2022-2025 Patrick Collins
    Contact Me: Contact@paddylonglegs.site
    Background created by freepik