In the first week, we planned our project and divided tasks among the three team members. We selected the available components, including the Arduino UNO, ultrasonic sensor (HC-SR04), servo motor (MG995), OLED screen, and jumper wires. We created a simple circuit diagram to connect all the components and started researching how to program the sensor, motor, and display. Our goal was to detect a hand using the sensor, activate the servo to push the sanitizer, and show messages on the OLED screen. One of the challenges we faced was understanding how to properly use the Arduino UNO screen, as none of us had used it before. Another issue was determining the best distance for detecting a hand without false activation. After discussing and testing different ideas, we set a target distance of 10 cm for the sensor to activate the sanitizer.
Component:
1- Arduino UNO
Used for:
The Arduino UNO is the main microcontroller board that controls all components. It reads data from the ultrasonic sensor, processes the information, and activates the servo motor accordingly.
2- HC-SR04 Ultrasonic Sensor
Used for:
The HC-SR04 sensor detects the presence of a hand by measuring the distance using ultrasonic waves. It sends a signal to the Arduino when a hand is within the set range.
3- MG995 Servo Motor with Metal Gears
Used for:
The MG995 servo motor is responsible for pushing the sanitizer when a hand is detected. It rotates to a specific angle to activate the dispenser mechanism.
4- OLED Display
Used for:
The OLED screen displays messages such as “Place your hand,” “Dropping,” to inform users about the sanitizer’s status.
5- Mini Rocker Switch (SPST)
Used for:
The mini rocker switch allows users to turn the system ON and OFF, helping to conserve battery life when not in use.
6- 9V Battery
Used for:
The PP3 battery connector is used to power the Arduino with a 9V battery, ensuring the system operates without a direct power source.
7- Jumper Wires
Used for:
The jumper wires are used to connect all components, ensuring proper electrical connections between the Arduino, sensors, servo, and OLED screen.
Comments
Post a Comment