You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project is a coffee vending machine capable of creating a variety of coffee drinks using a gravity- and time-based dispenser of hot water and instant coffee. To implement this idea, we'll use a solenoid valve for the water tank, a servo motor with a flap for the coffee container, drink selection buttons, and a host of additional features: an LCD screen displaying the brewing process and water level, a buzzer to notify when the coffee is ready, and a float sensor to indicate when the water level is low. At the core of all these devices will be an ESP32-C6 chip; the enclosure will be a wooden T-shaped structure.
13
+
This project is a lemonade vending machine capable of creating a variety of lemonade drinks using a gravity- and time-based dispenser of hot water and instant lemonade. To implement this idea, we'll use a solenoid valve for the water tank, a servo motor with a flap for the lemonade container, drink selection buttons, and a host of additional features: an LCD screen displaying the brewing process and water level, a buzzer to notify when the lemonade is ready, and a float sensor to indicate when the water level is low. At the core of all these devices will be an ESP32-C6 chip; the enclosure will be a wooden T-shaped structure.
14
14
15
15
## Motivation
16
16
17
-
My desire to build a coffee machine, rather than any other device, is easy to explain – I'm a big fan of this aromatic drink, and if I'm going to do anything, it's going to be something I personally wouldn't shy away from using. Of course, my design is a far cry from a professional coffee machine, but at the same time, I think it will provide worthy competition to the machines dotted around campus.
17
+
My desire to build a lemonade machine, rather than any other device, is easy to explain – I'm a big fan of this aromatic drink, and if I'm going to do anything, it's going to be something I personally wouldn't shy away from using. Of course, my design is a far cry from a professional lemonade machine, but at the same time, I think it will provide worthy competition to the machines dotted around campus.
18
18
19
19
## Architecture
20
20
21
21
The system is organized into three functional layers:
22
22
23
23
**Input Layer**
24
-
- Three tactile push buttons select the drink mode: Espresso, Double Espresso, or Americano.
24
+
- Three tactile push buttons select the drink mode: Standard, Extra Sweet, or Not-so-sweet.
25
25
- A float switch liquid level sensor monitors the water tank and signals when it is empty.
26
26
27
27
**Control Layer**
28
28
- The ESP32-C6 SuperMini runs the main async task loop via Embassy.
29
-
- On button press, a mode-specific timing profile is selected, and serving coffee and water for the correct duration starts.
29
+
- On button press, a mode-specific timing profile is selected, and serving sugar with lemon acid and water for the correct duration starts.
30
30
- The water sensor is polled continuously; if the tank is empty, dispensing is blocked and the display shows a warning.
31
31
32
32
**Output Layer**
33
-
- A 12V solenoid valve (normally closed) controls water flow from the tank to the cup, driven by an IRF540N MOSFET with a 100Ω gate resistor.
34
-
- A servo motor (SG90) opens and closes a mechanical gate on the coffee powder container.
33
+
- A 12V solenoid valve (normally closed) controls water flow from the tank to the cup, driven by an DL-4184 MOSFET module gate resistor.
34
+
- A servo motor (SG90) opens and closes a mechanical gate on the sugar/acid powder container.
35
35
- An SSD1306 OLED display (0.96", I2C) shows brewing status and warnings.
36
36
37
37
All components share a common ground. The 12V rail powers the solenoid valve and is supplied by an external 12V 2A DC adapter. The ESP32-C6 is powered via USB.
@@ -49,15 +49,21 @@ Awaiting arrival of remaining components, added minor changes in the hardware by
49
49
50
50
### Week 12 - 18 May
51
51
52
+
Gathered all the hardware, proceed to create first prototypes. Replace the IRF-3205 for DL-4184 module due to not working transistor.
53
+
52
54
### Week 19 - 25 May
53
55
56
+
Changed SSD1306 screen for 1602A 5V. Made the shell of the machine.
57
+
58
+

59
+
54
60
## Hardware
55
61
56
-
The system is built around the ESP32-C6 SuperMini microcontroller, which manages all inputs and outputs over GPIO, PWM (LEDC), and I2C. Two food-grade plastic containers (1–2L) serve as the water and coffee powder tanks, each mounted above the dispensing point to allow gravity-fed flow.
62
+
The system is built around the ESP32-C6 SuperMini microcontroller, which manages all inputs and outputs over GPIO, PWM (LEDC), and I2C. Two food-grade plastic containers (1–2L) serve as the water and lemonade powder tanks, each mounted above the dispensing point to allow gravity-fed flow.
57
63
58
64
Water flow is controlled by a 12V normally-closed solenoid valve. When the ESP32-C6 pulls the MOSFET gate high, the valve opens and hot water flows through a silicone tube into the cup. The MOSFET (IRF540N) is connected with a 100Ω resistor on the gate to limit switching transients.
59
65
60
-
Coffee powder is dispensed through a mechanical gate controlled by the SG90 servo. At rest, the gate is closed. When activated, the servo rotates 90° to open the gate, powder falls by gravity, and the servo returns to close it after the timed duration.
66
+
Lemonade powder is dispensed through a mechanical gate controlled by the SG90 servo. At rest, the gate is closed. When activated, the servo rotates 90° to open the gate, powder falls by gravity, and the servo returns to close it after the timed duration.
61
67
62
68
### Pin Connections
63
69
@@ -66,17 +72,23 @@ Coffee powder is dispensed through a mechanical gate controlled by the SG90 serv
0 commit comments