SNACK VENDING MACHINE                                                                        2024-25
ADVANTAGES AND DISADVANTAGES :
ADVANTAGES:
1. 24/7 Accessibility:
Snack vending machines provide round-the-clock access to snack, making them especially useful
in emergencies or during off-hours. This constant availability ensures that users can obtain
necessary snack and beverages whenever they need them.
2. Convenience:
These machines are typically placed in easily accessible locations such as hospitals, airports,
shopping centers, and public transportation hubs. This convenience allows individuals to quickly
access snack without the need to visit a shop, saving time and effort.
3.Low labor costs:
Snack vending machines automate the snack purchasing process, reducing labor costs for
businesses.
4. Reduced Wait Times:
Snack vending machines eliminate the need to wait in line at a shop, allowing users to quickly
purchase and receive their snack. This efficiency is particularly beneficial in high-traffic areas or
during peak times when shops and markets may be busy.
5. Cost Efficiency:
Automated vending machines can reduce operational costs associated with staffing and
managing a traditional shop. These savings can potentially be passed on to consumers, making
snack more affordable.
6. Inventory Management and Monitoring:
Snack vending machines are equipped with real-time inventory tracking systems that monitor
stock levels and alert suppliers when replenishment is needed. This ensures that snack are always
available and reduces the risk of stock outs.
Dept Of ECE,DBIT                                                                                 33
SNACK VENDING MACHINE                                                                      2024-25
7. Controlled Environment:
The machines can maintain proper storage conditions, such as temperature and humidity, to
preserve the integrity and efficacy of snacks. This controlled environment is crucial for sensitive
snacks and beverages that require specific storage conditions.
8.Increased sales:
Snack vending machines can increase sales for businesses by providing an additional revenue
stream.
9. Increased Reach in Remote Areas:
In areas where access to shops and markets is limited, snack vending machines can provide an
essential service. They can be deployed in remote or underserved regions, offering a reliable
source of necessary snacks and beverage supplies.
10.Enhanced customer experience:
Snack vending machines can enhance the customer experience by providing a convenient and
easy way to purchase snacks.
11.Reduced waste:
Snack vending machines can help reduce waste by providing a controlled dispensing system.
Dept Of ECE,DBIT                                                                                34
SNACK VENDING MACHINE                                                                    2024-25
DISADVANTAGES:
While snack vending machines offer numerous advantages, there are also several disadvantages
and challenges associated with their implementation and use. Here are some key disadvantages:
1. Limited Snack Selection:
Snack vending machines typically have a limited capacity, restricting the variety and quantity of
snacks they can store. This limitation means they may not be able to stock all necessary snacks,
particularly those that require special handling or are less commonly used.
2.High upfront costs:
Purchasing and installing a snack vending machine can be expensive.
3. Maintenance and repair:
Ensuring compliance can be complex and costly, particularly in navigating different jurisdictions
requirements for dispensing selected snacks.
4. Technical Malfunctions and Maintenance:
Like any automated system, snack vending machines are susceptible to technical issues such as
software glitches, hardware failures, or power outages. These malfunctions can disrupt service,
potentially leaving users without access to critical medications. Regular maintenance and
technical support are necessary, adding to operational costs.
5. Limited customer interaction:
Snack vending machines can limit customer interaction, which can be a disadvantage for
businesses that value customer service.
Dept Of ECE,DBIT                                                                              35
SNACK VENDING MACHINE                                                                       2024-25
                                        CHAPTER 5
           CONCLUSIONS & FUTURE SCOPE CONCLUSION
CONCLUSION:
The Snack Vending Machine project represents a significant advancement in automated snack
dispensing technology, combining user-friendly design with efficient operational capabilities.By
integrating an IR sensor for contactless user interaction, an LCD display for clear guidance, and
a relay-controlled motor for automated dispensing, the system enhances the overall user
experience while minimizing manual intervention.The project successfully addresses the
growing demand for convenience in modern consumer behavior, offering an efficient solution for
accessing snacks in various environments such as offices, schools, and public spaces. Users are
assured of a smooth and transparent purchasing process, while the system's energy-efficient
design contributes to sustainability goals.Moreover, the project serves as an educational platform
for developing technical skills in electronics and programming, showcasing the practical
applications of these disciplines in real-world scenarios.Future enhancements could include
advanced payment systems and data analytics for better inventory management and user
engagement.
FUTUREWORK:
Here are some potential future works for snack vending machines, implementing AI-powered
snack recommendation systems to suggest personalized options based on user preferences and
purchase history. Integrate IoT sensors to monitor and control vending machine operations, such
as inventory management and predictive maintenance. Expand mobile payment options to
include popular digital wallets and cryptocurrencies. Increase the availability of healthy snack
options, such as organic, gluten-free, or vegan products. Implement eco-friendly packaging
solutions to reduce waste and minimize environmental impact. Display detailed nutrition
information for each snack option to promote informed choices. Upgrade to high-resolution
touchscreen interfaces for easier navigation and selection. Integrate popular voice assistants, such
as Alexa or Google Assistant, for hands-free operation. Implement automated inventory
management systems to optimize restocking and reduce waste.
Dept Of ECE,DBIT                                                                                 36
SNACK VENDING MACHINE                                                                 2024-25
REFERENCES:
  Kumar, S., & Agarwal, P. (2021). "Design and Implementation of Smart Vending Machine
     Using IoT." International Journal of Engineering Research & Technology (IJERT).This
     paper discusses the integration of IoT in vending machines, improving automation and user
     experience.
    Bashir, A., & Kadir, A. (2020). "An Automated Vending Machine System Using Arduino
     and RFID." International Journal of Computer Applications.The authors explore a vending
     machine system using Arduino and RFID This paper discusses the integration of IoT in
     vending machines, improving automation and user experience. technology, highlighting
     automation techniques.
    Gupta, A., & Jain, R. (2022). "Development of Smart Vending Machine." Journal of
     Advanced Research in Dynamical and Control Systems.This study presents a smart vending
     machine design focusing on user interaction and technology integration.
    Patel, K., & Joshi, M. (2019). "Vending Machine for Automated Beverage Dispensing
     System Using Microcontroller." International Journal of Research in Engineering and
     Technology (IJRET).This research details the design and implementation of an automated
     beverage vending machine using microcontrollers.
Dept Of ECE,DBIT                                                                           37
SNACK VENDING MACHINE                                                          2024-25
FINAL MINI PROJECT DEMO
    Moments captured on our Mini-Project demonstration held on 20/12/2024 at DBIT.
Dept Of ECE,DBIT                                                                     38
SNACK VENDING MACHINE                 2024-25
APPENDIX:
CODE FOR RUNNING:
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
int IN1=2;
int IN2=3;
int IN3=16;
int IN4=17;
int IN5=8;
int IN6=9;
int IN7=14;
int IN8=15;
int sw1=6;
int sw2=7;
int sw3=5;
Dept Of ECE,DBIT                          39
SNACK VENDING MACHINE                                             2024-25
int sw4=4;
int ir=11;
// Set up a new SoftwareSerial object
//const int rs = 13, en = 12, d4 = 10, d5 = 11, d6 = 9, d7 = 8;
//LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup()
    pinMode(IN1,OUTPUT);
    pinMode(IN2,OUTPUT);
    pinMode(IN3,OUTPUT);
    pinMode(IN4,OUTPUT);
    pinMode(IN5,OUTPUT);
    pinMode(IN6,OUTPUT);
    pinMode(IN7,OUTPUT);
    pinMode(IN8,OUTPUT);
    pinMode(sw1,INPUT_PULLUP);
    pinMode(sw2,INPUT_PULLUP);
    pinMode(ir,INPUT);
    pinMode(sw3,INPUT_PULLUP);
    pinMode(sw4,INPUT_PULLUP);
    digitalWrite(IN1,LOW);
    digitalWrite(IN2,LOW);
Dept Of ECE,DBIT                                                      40
SNACK VENDING MACHINE                             2024-25
    digitalWrite(IN3,LOW);
    digitalWrite(IN4,LOW);
    digitalWrite(IN5,LOW);
    digitalWrite(IN6,LOW);
    digitalWrite(IN7,LOW);
    digitalWrite(IN8,LOW);
    Serial.begin(9600);
    lcd.init();           // Initialize the LCD
    lcd.backlight();
    lcd.clear();
    lcd.print(" VENDING ");
    lcd.setCursor(0,1);
    lcd.print(" MACHINE ");
    delay(2000);
void loop()
Waiting_Coin();
void Waiting_Coin()
    lcd.clear();
Dept Of ECE,DBIT                                      41
SNACK VENDING MACHINE                        2024-25
    lcd.print("Insert The ");
    lcd.setCursor(0,1);
    lcd.print("Coin..");
    while(1)
        if(digitalRead(ir)==LOW)
        Serial.print("COIN PLACED...");
            lcd.clear();
            lcd.print("coin placed ");
            lcd.setCursor(0,1);
            lcd.print("select the item ");
            delay(2000);
            Select_Product();
void Select_Product()
    lcd.clear();
    lcd.print("1.chips 2.Biscuits");
Dept Of ECE,DBIT                                 42
SNACK VENDING MACHINE                      2024-25
 lcd.setCursor(0,1);
 lcd.print("3.chocos 4.Dry Fruits");
 delay(1000);
 while(1)
     if(digitalRead(sw1)==LOW)
         lcd.clear();
         lcd.print("chips selected");
         lcd.setCursor(0,1);
         lcd.print("ready to dispense");
         delay(1000);
         digitalWrite(IN1,HIGH);
         digitalWrite(IN2,LOW);
         delay(2000);
         digitalWrite(IN1,LOW);
         digitalWrite(IN2,LOW);
         lcd.clear();
         lcd.print("chips dispensed");
         lcd.setCursor(0,1);
         lcd.print("please collect");
         delay(1000);
Dept Of ECE,DBIT                               43
SNACK VENDING MACHINE                     2024-25
       Waiting_Coin();
   if(digitalRead(sw2)==LOW)
       lcd.clear();
       lcd.print("Biscuits selected");
       lcd.setCursor(0,1);
       lcd.print("ready to dispense");
       delay(1000);
       digitalWrite(IN3,HIGH);
       digitalWrite(IN4,LOW);
       delay(2000);
       digitalWrite(IN3,LOW);
       digitalWrite(IN4,LOW);
       lcd.clear();
       lcd.print("Biscuits dispensed");
       lcd.setCursor(0,1);
       lcd.print("please collect");
       delay(1000);
       Waiting_Coin();
   if(digitalRead(sw3)==LOW)
Dept Of ECE,DBIT                              44
SNACK VENDING MACHINE                       2024-25
       lcd.clear();
       lcd.print("chocolates selected");
       lcd.setCursor(0,1);
       lcd.print("ready to dispense");
       delay(1000);
       digitalWrite(IN5,HIGH);
       digitalWrite(IN6,LOW);
       delay(2000);
       digitalWrite(IN5,LOW);
       digitalWrite(IN6,LOW);
       lcd.clear();
       lcd.print("chocolates dispensed");
       lcd.setCursor(0,1);
       lcd.print("please collect");
       delay(1000);
       Waiting_Coin();
   if(digitalRead(sw4)==LOW)
       lcd.clear();
       lcd.print("Dry Fruits selected");
Dept Of ECE,DBIT                                45
SNACK VENDING MACHINE                            2024-25
            lcd.setCursor(0,1);
            lcd.print("ready to dispense");
            delay(1000);
            digitalWrite(IN7,HIGH);
            digitalWrite(IN8,LOW);
            delay(2000);
            digitalWrite(IN7,LOW);
            digitalWrite(IN8,LOW);
            lcd.clear();
            lcd.print("Dry Fruits dispensed");
            lcd.setCursor(0,1);
            lcd.print("please collect");
            delay(1000);
            Waiting_Coin();
Dept Of ECE,DBIT                                     46
SNACK VENDING MACHINE                                                                   2024-25
DATASHEET
L293D MOTOR DRIVER MODULE
Category: MOTOR DRIVER
Overview:
L293D is a typical Motor driver or Motor Driver IC which allows DC motor to drive on either
direction. L293D is a 16-pin IC which can control a set of two DC motors simultaneously in
any direction. It means that you can control two DC motor with a single L293D IC. Dual H-
bridge Motor Driver integrated circuit (IC).
 Photos:
Dept Of ECE,DBIT                                                                              33
SNACK VENDING MACHINE                                                                      2024-25
Detailed Description:
It works on the concept of H-bridge. H-bridge is a circuit which allows the voltage to be flown
in either direction. As you know voltage need to change its direction for being able to rotate the
motor in clockwise or anticlockwise direction, Hence H-bridge IC are ideal for driving a DC
motor.
In a single L293D chip there are two h-Bridge circuit inside the IC which can rotate two dc
motor independently. Due its size it is very much used in robotic application for controlling DC
motors. Given below is the pin diagram of a L293D motor controller.
There are two Enable pins on l293d. Pin 1 and pin 9, for being able to drive the motor, the pin 1
and 9 need to be high. For driving the motor with left H-bridge you need to enable pin 1 to high.
And for right H-Bridge you need to make the pin 9 to high. If anyone of the either pin1 or pin9
goes low then the motor in the corresponding section will suspend working. It’s like a switch.
The maximum voltage for VSS motor supply is 36V. It can supply a max current of 600mA per
channel. Since it can drive motors Up to 36v hence you can drive pretty big motors with this
l293d.
VCC pin 16 is the voltage for its own internal Operation. The maximum voltage ranges from 5v
and upto 36v.
TIP: Don’t Exceed the Vmax Voltage of 36 volts or it will cause damage.
Lets consider a Motor connected on left side output pins (pin 3,6). For rotating the motor in
clockwise direction the input pins has to be provided with Logic 1 and Logic 0.
     •   Pin 2 = Logic 1 and Pin 7 = Logic 0 | Clockwise Direction
     • Pin 2 = Logic 0 and Pin 7 = Logic 1 | Anticlockwise Direction
     • Pin 2 = Logic 0 and Pin 7 = Logic 0 | Idle [No rotation] [Hi-Impedance state]
     • Pin 2 = Logic 1 and Pin 7 = Logic 1 | Idle [No rotation]
Dept Of ECE,DBIT                                                                                 33
SNACK VENDING MACHINE                                                                     2024-25
In a very similar way the motor can also operate across input pin 15,10 for motor on the right
hand side.
 Key Features:
     • Design based on highly proven IC L293D driver
     • Direct input from 5V microcontroller for L293D driver supply.
     • Output terminal for both motor.
     • Powered from external 12V or from wire header
 Kit Includes :
     • On Board components only.
 Accessories :
     • Multi meter, connecting wires, DC Motors .
Dept Of ECE,DBIT                                                                                 34
SNACK VENDING MACHINE                        2024-25
PHOTO BLOG
                        Fig.5.1 Photo Blog
Dept Of ECE,DBIT                                 35