This is an old revision of the document!


MilkyWay Maker

Introduction

Name: Mara Sofia STAN
Group: 1221A - FILS

This Arduino-based system offers a convenient and customizable way to make delicious cocoa milk drinks at home. The project contains a smart liquid dispenser with a keyboard that allows the user to input the desired quantity of milk and a distance sensor that detects the presence of a cup to activate the powder dispensing mechanism. The idea behind this project was to simplify and automate the process of making these drinks and ensure consistent quality every time. MilkyWay Maker is a project that was born out of a love for milk-coffee beverages, such as Nescafe and Nesquik thus I strongly believe that this project is not only useful for coffee lovers, but also for those interested in learning about electronics and programming.

General Description

The user can input the desired quantity of milk using the keyboard, and the system dispenses the milk accordingly. The distance sensor detects the presence of a cup, activating the powder dispensing mechanism to add the cocoa powder. This ensures that the drink is prepared accurately and consistently every time.

The project is not only aimed at coffee lovers but also at those interested in learning about electronics and programming. It combines the functionality of Arduino, the convenience of automation, and the enjoyment of delicious milk-coffee beverages. The provided code includes various functionalities, such as reading the keypad inputs, controlling the servo motor, calculating the flow rate of milk, displaying information on an LCD screen, and playing beep sequences for notifications.

Hardware Design

Components:

  • Water Diaphragm Pump, 6-12V, R385
  • 400-Point Breadboard
  • 3×4 Membrane Keypad
  • LCD 1602 + I2C LCD Interface Module 1602
  • HC SR-04P Ultrasonic Sensor, 3-5.5V
  • SG90 Servo Motor, 180 degrees
  • Flow Sensor 0.3-6l/min, YF-S401, 120 degrees
  • 5V Relay Module, High-Level Trigger
  • 9V Battery
  • UNO R3 Arduino Compatible Development Board
  • Passive Buzzer 5V
  • Water Pump Hose 6x8mm
  • Dupont Wires

Software Design

Below is the overall flow and explanation of the code. It combines input from the keypad, measurements from the ultrasonic sensor and flow sensor, and control of the water pump and servo motor to automate the process of dispensing milk based on the desired volume.

  1. Include the necessary libraries for the keypad, LCD display, and servo motor( <Keypad.h>, <LiquidCrystal_I2C.h>, <Servo.h>) and define the pin connections for various components.
  2. Declare global variables for pins, counters, calibration factors, and flags.
  3. Call the setup() function to initialize the settings and configurations of the Arduino board and connected components. Set pin modes, attach interrupts, and initialize the LCD display.
  4. Enter the loop() function, which is the main execution loop of the program. It continuously checks for inputs from the keypad and performs actions based on the input. It also checks for the presence of a cup using the ultrasonic sensor and controls the servo motor accordingly.
  5. Read inputs from the keypad within the loop() function and accumulate them to form a volume value. Display the entered volume on the LCD display.
  6. If the entered volume is within the specified range (1000 mL or less), enter the volume dispensing loop. Activate the water pump and calculate the flow rate using the flow sensor. Display the flow rate and cumulative volume dispensed on the LCD display and serial monitor.
  7. If the total dispensed volume exceeds the entered volume, stop the water pump, display a message indicating that the desired volume has been reached, wait for a few seconds, and reset the process to allow a new measurement.
  8. Call the pulseCounter() function, which is an interrupt service routine that increments a pulse count variable. It is triggered by the falling edge of the pulse from the flow sensor, indicating the flow of liquid.
  9. Call the resetProcess() function to reset the variables and settings related to the flow measurement process. Clear the LCD display, set it to the initial state, and initialize the necessary variables.
  10. Call the getDistance() function to measure the distance using the ultrasonic sensor. Send a trigger pulse and calculate the duration of the echo pulse to determine the distance. Return the distance value in centimeters.
  11. Call the playBeepSequence() function to generate a beep sound using a buzzer. Play a sequence of three short beeps with a delay between them.

Results

I am thrilled and proud of the successful incorporation of my everyday favorite beverage into an Arduino project. By creating the Milky Way Maker coffee maker machine, I have not only combined my passion for coffee with my interest in electronics and programming but also brought a new level of convenience and automation to my daily coffee routine.^_^

Looking forward, the project holds immense potential for customization and expansion. The Arduino platform allows for further enhancements and the addition of new features. For instance, I could explore incorporating temperature control to ensure the perfect brewing temperature or create programmable recipes to cater to different coffee preferences. This adaptability and room for growth make the Milky Way Maker a truly versatile and dynamic coffee maker machine.

Concluzii

Download

Jurnal

Puteți avea și o secțiune de jurnal în care să poată urmări asistentul de proiect progresul proiectului.

Bibliografie/Resurse

Listă cu documente, datasheet-uri, resurse Internet folosite, eventual grupate pe Resurse Software şi Resurse Hardware.

Export to PDF

pm/prj2023/apredescu/milywaymaker.1685303005.txt.gz · Last modified: 2023/05/28 22:43 by mara_sofia.stan
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0