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
* Researche suitable motors for the project, as well as how to implement the coin detection system and the change mechanism.
46
+
* Order hardware components.
47
+
48
+
### Week 27 April - 3 May
49
+
50
+
* Designed and built the vending machine structure, featuring four product compartments, with two compartments on each row.
51
+
52
+
### Week 4 - 10 May
53
+
54
+
* Assembled the hardware components inside the vending machine structure and completed the breadboard wiring.
46
55
47
-
### Week 19 - 25 May
48
56
49
57
## Hardware
58
+
The vending machine is controlled by an STM32U5 microcontroller that manages all system operations. It integrates an MFRC522 RFID reader and push buttons for inputs, while using an I2C LCD 1602 for the display. The physical dispensing is handled by four stepper motors and the coin-return mechanism is driven by a servo motor.
50
59
51
-
Detail in a few words the hardware used.
60
+
***STM32U545 Nucleo:** The central microcontroller that executes the Rust firmware to process the system logic and coordinate all other parts.
52
61
53
-
### Schematics
62
+
***MFRC522 RFID Reader:** An SPI-based card scanner used to authorize admin transactions.
54
63
55
-
Place your KiCAD or similar schematics here in SVG format.
64
+
***28BYJ-48 Stepper Motors & ULN2003 Drivers:** Used to rotate the dispensing spirals inside the compartments.
56
65
57
-
### Bill of Materials
66
+
***LCD 1602 Display with PCF8574 I2C Adapter:** Provides real-time instructions, credit status, and feedback using only two I2C wires.
58
67
59
-
<!-- Fill out this table with all the hardware components that you might need.
68
+
***SG90 Servo Motor:** A micro servo used to operate the physical change coin mechanism.
60
69
61
-
The format is
62
-
```
63
-
| [Device](link://to/device) | This is used ... | [price](link://to/store) |
70
+
***Push Buttons & Limit Switch:** Act as the physical user interface for product selection and mechanical coin detection.
64
71
65
-
```
72
+

73
+

74
+

66
75
67
-
-->
76
+
### Schematics
77
+
78
+

79
+
80
+
### Bill of Materials
68
81
69
82
| Device | Usage | Price |
70
83
|--------|--------|-------|
71
-
|[STM32](https://www.st.com/resource/en/datasheet/stm32f722ic.pdf)| The microcontroller | 110 RON |
84
+
|[STM32](https://www.st.com/resource/en/datasheet/stm32f722ic.pdf)| The microcontroller | Provided by faculty |
85
+
|[Endstop limit switch](https://sigmanortec.ro/product-reviews-add-from-email?bt_gsr_product_id=166&bt_gsr_order_id=123878&source_url=account_page)| Used as a coin detector | 5.23 RON |
86
+
|[Motor Stepper](https://sigmanortec.ro/product-reviews-add-from-email?bt_gsr_product_id=482&bt_gsr_order_id=123878&source_url=account_page)| Used to rotate the dispensing spirals inside the vending machine | 4 X 10.29 RON |
87
+
|[Driver motor stepper](https://sigmanortec.ro/product-reviews-add-from-email?bt_gsr_product_id=151&bt_gsr_order_id=123878&source_url=account_page)| A stepper motor driver boosts STM32 signals to power the motor | 3 X 4.53 RON |
88
+
|[RFID](https://sigmanortec.ro/product-reviews-add-from-email?bt_gsr_product_id=267&bt_gsr_order_id=123878&source_url=account_page)| Used to scan admin cards to grant free product | 9.53 RON |
89
+
|[Wires](https://sigmanortec.ro/product-reviews-add-from-email?bt_gsr_product_id=8&bt_gsr_order_id=123878&source_url=account_page)| Used to create all electrical connections | 31.96 RON |
90
+
|[I2C LCD Interface](https://sigmanortec.ro/product-reviews-add-from-email?bt_gsr_product_id=397&bt_gsr_order_id=123878&source_url=account_page)| An I2C LCD interface changes a parallel connection into a 2-wire serial connection, saving STM32 pins| 5.11 RON |
91
+
|[LCD 1602 Display](https://sigmanortec.ro/product-reviews-add-from-email?bt_gsr_product_id=292&bt_gsr_order_id=123878&source_url=account_page)| Used to show user instructions, current credit, product selection | 11.18 RON |
92
+
|[Breadoard 400](https://sigmanortec.ro/product-reviews-add-from-email?bt_gsr_product_id=56&bt_gsr_order_id=123878&source_url=account_page)| Used to distribute power and connect components | 2 X 6.62 RON |
93
+
|[Servomotor SG90](https://sigmanortec.ro/product-reviews-add-from-email?bt_gsr_product_id=689&bt_gsr_order_id=123878&source_url=account_page)| Used for the change mechanism that dispenses coins back to the user | 9.49 RON |
94
+
|[Push Buttons, 12x12x7.3mm](https://sigmanortec.ro/product-reviews-add-from-email?bt_gsr_product_id=62&bt_gsr_order_id=123878&source_url=account_page)| Used as product selection buttons | 4 X 1.33 RON |
95
+
|[Buzzer pasiv](https://sigmanortec.ro/product-reviews-add-from-email?bt_gsr_product_id=347&bt_gsr_order_id=123878&source_url=account_page)| Used to generate acoustic feedback | 5.03 RON |
96
+
| Total || 155.37 RON |
97
+
98
+
72
99
73
100
74
101
## Software
75
102
76
103
| Library | Description | Usage |
77
104
|---------|-------------|-------|
78
-
|[st7789](https://github.com/almindor/st7789)| Display driver for ST7789 | Used for the display for the Pico Explorer Base |
79
-
|[embedded-graphics](https://github.com/embedded-graphics/embedded-graphics)| 2D graphics library | Used for drawing to the display |
0 commit comments