SMART AUTOMATIC ROOM FRSHNER

by Circuitplayground in Circuits > Arduino

98 Views, 1 Favorites, 0 Comments

SMART AUTOMATIC ROOM FRSHNER

SMART ROOM FRESHNER  OUTSIDE  VIEW.jpg
SMART ROOM FRESHNER.jpg
SMART ROOM FRESHNER 1.jpg
SMART ROOM FRESHNER  INSIDE VIEW.jpg
SMART ROOM FRSHNER INSIDE VIEW 2.jpg
SMART ROOM FRESHNER  OUTSIDE  VIEW.jpg

This smart room freshener can be used in scenarios where you want to dispense a certain amount of freshener based when motion is detected in the room. The servo motor movement could be used to release the freshener in a controlled manner. The flexibility of the design allows for customization and integration into different smart home setups...In summary, our smart room freshener not only dispenses freshener based on motion detection but also provides a practical warning mechanism, ensuring that users are alerted when the freshener is running low. This thoughtful addition enhances the user experience and makes the device more efficient in maintaining a fresh environment.

Supplies


Here's a list of components needed for your smart room freshener project:

  1. Microcontroller:
  • Arduino Board (e.g., Arduino Uno)
  1. Sensors:
  • HX711 Load Cell Amplifier
  • PIR (Passive Infrared) Motion Sensor

2.Actuators:

  • Servo Motor

3.Output Devices:

  • Buzzer

4.User Interface:

  • Push Buttons (3x)
  • Wires and Breadboard for connections

5.Indicators:

  • LEDs (optional, for visual feedback)

6.Power:

  • Power Supply for Arduino Board (e.g., USB cable)

7.Mechanical:

  • Container for Freshener
  • Mechanism for Dispensing Freshener (if required)

8.Miscellaneous:

  • Resistors (as needed)
  • Jumper Wires
  • Enclosure (optional, for a finished look)
  1. Libraries:
  • HX711 Library
  • Servo Library (if not included in your Arduino IDE)

Remember to check the specifications and pin compatibility of each component, and ensure that the power requirements are met for proper functioning. Additionally, you might need tools like a soldering iron and basic hand tools for assembling and securing the components.





CIRCUIT DIAGRAM

Schematic_automatic freshner_2023-12-24.png
PCB DESIGN SMART ROOM FRESHNER.png

CONNECT THE CIRCUCIT AS PER THE CIRCUIT DIAGRAM ...THIS IS THE MAIN BOARD TO CONTROL ALL THE OPERATIONS

Dispenser Mechanism

SMART ROOM FRESHNER 1.jpg
SMART ROOM FRESHNER  INSIDE VIEW.jpg
SMART ROOM FRSHNER INSIDE VIEW 2.jpg
SMART ROOM FRESHNER  OUTSIDE  VIEW.jpg

Here are the clear steps in order to create the dispenser mechanism for your smart room freshener:

  1. Cutting the Cap:

  • Using a cutting tool (e.g., a sharp knife or scissors), carefully cut an opening in the cap. Ensure that the opening is large enough for the dispenser mechanism. as shown in figure 1
  1. 2 Attaching the Servo:
  • Position the servo motor near the opening in the cap. Choose a location that allows the servo arm to move freely without obstruction.
  • Use a hot glue gun or an adhesive to secure the servo in place. Ensure that it is firmly attached to the cap.as shown in figure 2
  1. 3 Preparing the Iron Wire:
  • Take a piece of iron wire and cut it to the desired length. The length will depend on the size of your dispenser and the distance needed for effective dispensing.
  • Using pliers, bend the wire at a 90-degree angle. This bent portion will connect to the servo arm.
  1. 4 Connecting the Wire to the Servo:
  • Attach the straight end of the iron wire to the rotating arm of the servo. You may use additional adhesive or a small screw to secure the connection.
  • Ensure that the wire is securely fastened to the servo arm and that it can move freely as the servo rotates.
  1. 5 Testing the Dispenser Mechanism:
  • Power up your Arduino board and upload the provided code to control the servo.
  • Verify that the servo rotates smoothly and that the dispenser mechanism operates as intended.
  • Adjust the code and servo position as needed for optimal dispensing.
  1. 6 Securing the Cap:
  • Once the dispenser mechanism is tested and working correctly, securely attach the cap back to the freshener container.
  • Make sure the cap is tightly sealed to prevent any leakage.
  1. 7 Fine-Tuning and Calibration:
  • Fine-tune the servo angles and rotation delays in your Arduino code to control the amount of freshener dispensed per rotation.
  • Test the dispenser multiple times to ensure consistency in dispensing.
  1. 8 Integration with the Smart Room Freshener:
  • Connect the servo to the designated pin on your Arduino board.
  • Modify your existing Arduino code to incorporate the dispenser mechanism, triggering the servo rotation when freshener dispensing is required.

By following these steps, you can create a functional and controlled dispenser mechanism for your smart room freshener. Ensure precision in your cuts and connections to achieve reliable and efficient dispensing. now make ur housing for circuit by ur own and with this the project comes to an end






Working and Calibrations

Your smart room freshener is a versatile device with various features. Let's break down its functionality:

  1. 1 Weight Measurement:
  • The system uses an HX711 load cell amplifier to measure and save the weight of a container placed on the scale.
  • Pressing Button 1 saves the current weight, and the buzzer beeps three times to confirm the action.
  1. 2 Weight Reset:
  • Button 2 resets the saved weight to zero, and the buzzer beeps four times to indicate the reset.
  1. 3 Buzzer Control:
  • Button 3 stops the buzzer, providing a way to silence the device.
  1. 4 Motion Detection:
  • The system incorporates a PIR (Passive Infrared) motion sensor (PIR_PIN) to detect motion in the room.
  • When motion is detected, the servo motor (attached to SERVO_PIN) rotates at a specified angle (pirRotateAngle) for a certain duration (pirRotateDelay).
  1. 5 Buzzer Feedback:
  • A buzzer is used to provide audible feedback for certain events such as saving weight, resetting weight, or stopping the buzzer.
  • The frequency of the buzzer is set to 1000 Hz.
  1. 6 Servo Motor Movement:
  • The servo motor is controlled to rotate twice, each time moving to a specific angle (pirRotateAngle) and then returning to 0 degrees after a delay (pirRotateDelay).

calibration;

Calibrating the system, especially when using a load cell amplifier like HX711, is crucial to ensure accurate weight measurements. Here's a step-by-step guide on how to calibrate your smart room freshener system:

Note: Calibration is a one-time process and should be done with the freshener container placed on the scale in a stable position.

  1. 1 Obtain Known Weight:
  • Place a known weight on the freshener container. This could be a reference weight that you trust to be accurate.
  1. 2 Modify Calibration Variables:
  • In your Arduino code, find the section where the HX711 library is used to read the weight (scale.get_units(10)).
  • Adjust the scale.set_scale() function with a calibration factor. This factor is the ratio of the known weight to the raw sensor readings. For example:
cpp

Copy code
scale.set_scale(1234.56); // Replace 1234.56 with your calibration factor
  1. 3 Upload Code and Check Serial Monitor:
  • Upload the modified code to your Arduino board.
  • Open the Arduino IDE Serial Monitor (Tools -> Serial Monitor).
  • Observe the weight readings when the known weight is placed on the scale.
  1. 4 Fine-Tune Calibration Factor:
  • Adjust the calibration factor until the weight readings closely match the known weight. You may need to repeat steps 2 and 3 several times to achieve accuracy.
  • For fine-tuning, you can use smaller calibration increments. Make sure to consider factors like the precision of your known weight.
  1. 5 Save Calibration Factor:
  • Once you find a calibration factor that provides accurate readings, update the code with this final calibration factor.
cpp

Copy code
scale.set_scale(finalCalibrationFactor); // Use the accurate calibration factor
  1. 6 Test Different Weights:
  • Test the system with various weights to ensure accurate and consistent measurements across a range of values.
  1. 7 Optional: Set Tare Weight (Zero Point):
  • If needed, you can set a tare weight (zero point) when the container is empty. This ensures that the system accounts for the weight of the container itself.
cpp

Copy code
scale.tare();
  1. 8 Final Check:
  • Double-check the entire system, including the servo and dispenser mechanism, to ensure everything is functioning correctly.

By following these steps, you'll calibrate your smart room freshener system to provide accurate and reliable weight measurements, enhancing the overall performance of the device.

source code: for source code please email.to smdfarooq1164@gmail.com ....its free of cost no money is charge for source code feel free to contact...