DIY Vending Machine Using STM32 Blue Pill | STM32f103C8T6 Mircrocontroller Used |
by Md_Rahat_Hasan in Circuits > Microcontrollers
353 Views, 2 Favorites, 0 Comments
DIY Vending Machine Using STM32 Blue Pill | STM32f103C8T6 Mircrocontroller Used |
A vending machine is an automated device that dispenses various items such as snacks, beverages, cigarettes, lottery tickets, or other consumer products to customers after they insert currency or credit into the machine. Vending machines are widely used in locations such as schools, offices, airports, malls, and other public places for convenient, self-service purchases.
We will use the STM32 Blue Pill microcontroller to make a vending machine. There will be basic programming. However, the people are not familiar with STM32 as much as Arduino. There is a big difference between STM32 and Arduino. No problem I made a detailed video on it on YouTube. You will easily understand the process.
Supplies
Component List:
- STM32F103C8T6 Microcontroller (You can use any 32-bit STM Microcontroller)
- ST-Link V2 Connection Interface
- Yellow DC Motor....................4x
- L293D Motor Driver IC..........2x
- IR sensor Module .................4x
- Push buttons
- 16x2 LCD Display
- White LED
- Buzzer
Spring Making
I made these springs out of GI wire for the product lineup. it will attach to the motor. To make this you need 14 sizes of GI wire. I wrap it in a perfume battle and make the shape of springs. For holding the spring I cut a plastic board-like biscuit shape and made 3 holes, this middle hole for attaching to the dc motor, and after that, I tied it by screws with the spring.
Motor Control Using PWM Signal From STM32
This Circuit is for One Motor Connection.
First of all, I am showing you how to control the DC motor by using the PWM mode of STM32. To control the motor you need motor driver ic L293D. Because the stm32 blue pill can not provide that much current to operate the DC motor.
LCD Control & Necessary Files
Download the LCD's necessary file from Google Drive:
https://drive.google.com/file/d/1xDsKPFEuVL4eIkznz8WZm2sMZYe2LdtQ/view?usp=sharing