Thai-Nichi Institute of Technology (泰日工業大学)
CPE-312: Embedded System: Semester 2/2021
Section 1 Group 8
The game progresses by counting up from 1 to 24, with the player who calls "24" become a loser in that round.
no color: 1green: 2blue: 3green & blue: random number
The game will play music. When the player wins.
- Keil uVision5
- Microprocessor: STM32L152RB
- Power Supply
- Speaker
- Buzzer
- Switch x2
- LED (green & blue) x2
- 330 Ohm resistors x3
MCU: STM32L152RBLCD: 6-digit, 24 segmentPush buttons: user buttonTIMER: PWM ModeSoftware: Keil / Language CMCU : STM32L152RB
- Show game count number (LCD)
- Selected number (Matrix Switch)
- Confirm number (push button)
- Indicate Number status (LEDs)
- Music box (PWM Mode)
- Show game count number (LCD)
- 6-digit EG:
xx-p-y xx: current total numberp: p-player, c-computery: selected number
- 6-digit EG:
- Selected number (Matrix Switch)
00-> 1,01-> 2 ,10-> 3 ,11-> rand
- Confirm number (push button) : User button
- Indicate Number status (LEDs)
None-> 1 ,Green-> 2,Blue-> 3,Green & Blue-> rand
- Music box (PWM Mode)
win: play soundtracklose: buzzer
- Push Button
- Matrix Switch
- EXTI
- DAC
- TIM
- LED
- LCD
- Buzzer
- Speaker
- Click drop down
codebutton on top of this repository. - Open with GitHub Desktop.
- Clone this repository to your local drive
- Open in Keil uVision5.
$ git clone https://github.com/pichayakorn/S1-G08-2021.gitThe codes are licensed under the MIT license.
Check out LICENSE for more detail.






