Skip to content

1.4. MotionBell Presence Trainer

Description Learners build a device that detects movement and responds with a buzzer sound. The project introduces digital sensing, presence detection, and simple alerts. Learners will follow a practical build process, connect the circuit safely, upload the Arduino program, and observe how the prototype behaves when the input condition changes.
Use case This project is connected to real-world uses such as detecting entry into a room, demonstrating motion-triggered notification systems, and introducing security and automation principles.

Components (Things You will need)

Arduino Uno Arduino USB Cable Bread Board Jumper Wires Resistor Potentiometer Buzzer PIR Motion Sensor

Building the circuit

Things Needed:

  • Arduino Uno = 1
  • Arduino USB cable = 1
  • Bread Board = 1
  • Jumper Wires
  • 220Ω resistor
  • Potentiometer
  • Buzzer
  • PIR Motion Sensor

Mounting the component on the breadboard and wiring the circuit

Step 1: Insert the Buzzer and Motion Sensor into the Breadboard as shown below

Components on breadboard

Step 2: Use a jumper wire to connect 5V on the Arduino Uno to the Positive section on the Breadboard. Using a jumper wire connect VCC on the Motion Sensor to 5V on the Breadboard.

Components on breadboard

Step 3: Using a jumper wire connect the GND on the Motion Sensor to the GND on the Arduino Uno.

Components on breadboard

Step 4: Connect the Negative pin of the Buzzer to GND on the Arduino Uno.

Components on breadboard

Step 5: Connect the OUPUT pin on the Motion Sensor to AO on the Arduino Uno.

Components on breadboard

Step 6: Connect the positive Pin on the Buzzer to Pin number 8 on the Arduino Uno.

Components on breadboard

Make sure to connect the Arduino USB cable to the Arduino board.

PROGRAMMING

Step 1: Open your Arduino IDE. See how to set up here: Getting Started.

Step 2: Write the complete program implementing the system logic with appropriate pin definitions, setup configuration, and the main control loop.

int buzzerPin = 8;
int digitalSensorPin = AO;

void setup() {
  Serial.begin(9600);
  pinMode(buzzerPin, OUTPUT);
  pinMode(digitalSensorPin, INPUT);
}

void loop() {
  int value = digitalRead(digitalSensorPin);
  if(value > 500 || value == HIGH){ digitalWrite(buzzerPin, HIGH); } else { digitalWrite(buzzerPin, LOW); }
  delay(500);
}

Step 3: Save your code. See the Getting Started section

Step 4: Select the arduino board and port See the Getting Started section:Selecting Arduino Board Type and Uploading your code.

Step 5: Upload your code. See the Getting Started section:Selecting Arduino Board Type and Uploading your code

CONCLUSION

The MotionBell Presence Trainer powers on and waits for sensor input or user action. Input or command changes: The display, buzzer, LED, motor, servo, relay, or RGB output responds according to the program logic. Threshold or event condition: The system gives visible, audible, movement, or display feedback when the condition is detected.