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
# Electronic Chess Board with Autonomous Play and Legal Move Display
2
2
3
-
An electronic chess board that autonomously moves pieces using an XY electromagnetic system, detects piece positions with Hall sensors, displays legal moves with LEDs, and shows a timer on LCD.
3
+
An electronic chess board that autonomously moves pieces using an XY electromagnetic system, displays legal moves with LCD.
4
4
5
5
6
6
@@ -13,13 +13,13 @@ An electronic chess board that autonomously moves pieces using an XY electromagn
13
13
14
14
## Description
15
15
16
-
This project is an autonomous chess board powered by an STM32 Nucleo-U545RE-Q microcontroller. The board uses a system of two stepper motors to move an electromagnet along the X and Y axes beneath the board, allowing it to physically move chess pieces (which contain small magnets) without human intervention. Hall effect sensors placed under each of the 64 squares detect the presence and position of pieces. An 8x8 LED matrix highlights the possible moves for each piece, and an LCD display shows the chess timer for each player.
16
+
This project is an autonomous chess board powered by an STM32 Nucleo-U545RE-Q microcontroller. The board uses a system of two stepper motors to move an electromagnet along the X and Y axes beneath the board, allowing it to physically move chess pieces (which contain small magnets) without human intervention. An LCD display shows the current piece being moved and its legal moves.
17
17
18
18
The board implements a chess engine in Rust that computes valid moves and executes them automatically, moving pieces physically on the board.
19
19
20
20
## Motivation
21
21
22
-
I chose this project because it combines multiple engineering disciplines: mechanical design, electronics, and software. A self-playing chess board is a fascinating challenge that requires precise motor control, real-time sensor reading, and complex game logic — all implemented in Rust on an embedded system. It is a project that is both technically challenging and visually impressive, making it a perfect showcase for the knowledge gained throughout the semester.
22
+
I chose this project because it combines multiple engineering disciplines: mechanical design, electronics, and software. A self-playing chess board is a fascinating challenge that requires precise motor control and complex game logic — all implemented in Rust on an embedded system. It is a project that is both technically challenging and visually impressive, making it a perfect showcase for the knowledge gained throughout the semester.
23
23
24
24
## Architecture
25
25
@@ -29,36 +29,11 @@ The system is composed of the following main modules:
29
29
30
30
-**STM32 Nucleo-U545RE-Q**: The main microcontroller that runs the chess engine, controls the motors, reads the Hall sensors, and drives the LEDs and LCD.
31
31
-**XY Motion System**: Two stepper motors (one for each axis) move a carriage beneath the board. An electromagnet mounted on the carriage attracts and moves the magnetic chess pieces.
32
-
-**Hall Sensor Matrix**: 64 Hall effect sensors (one per square) detect the presence of a magnetic chess piece on each square.
33
-
-**LED Matrix**: An 8x8 LED matrix (one LED per square) displays valid moves for the selected piece.
34
-
-**LCD Display**: A 16x2 I2C LCD shows the chess timer for both players.
32
+
-**LCD Display**: A 16x2 I2C LCD displays the current piece being moved and its legal moves.
35
33
-**Power Supply**: A 12V external power supply powers the stepper motors and electromagnet. A voltage regulator steps down to 5V for the logic components.
36
34
37
35
### Block Diagram
38
-
39
-
```
40
-
+---------------------------+
41
-
| STM32 Nucleo-U545RE-Q |
42
-
| |
43
-
| +--------+ +---------+ |
44
-
| | Chess | | Motor | |
45
-
| | Engine | | Control | |
46
-
| +--------+ +---------+ |
47
-
| | | |
48
-
+-------|------------|------+
49
-
| |
50
-
v v
51
-
+---------------+ +------------------+
52
-
| Hall Sensor | | Stepper Motor X |
53
-
| Matrix (8x8) | | Stepper Motor Y |
54
-
+---------------+ | Electromagnet |
55
-
| +------------------+
56
-
v
57
-
+---------------+ +---------------+
58
-
| LED Matrix | | LCD I2C 1602 |
59
-
| (8x8) | | (Timer) |
60
-
+---------------+ +---------------+
61
-
```
36
+

62
37
63
38
64
39
## Hardware
@@ -89,62 +64,70 @@ The system is composed of the following main modules:
89
64
-**Role**: Flyback protection for the electromagnet
90
65
-**Connection**: In parallel with the electromagnet, reverse biased
91
66
92
-
### 7. Hall Effect Sensors SS49E (x64)
93
-
-**Role**: Detect the presence of a magnetic chess piece on each square
94
-
-**Interface**: Analog output read via ADC on STM32
95
-
-**Arrangement**: One sensor per square, arranged in an 8x8 matrix
96
-
97
-
### 8. LED Matrix 8x8 (x1)
98
-
-**Role**: Display valid moves for the currently selected piece
99
-
-**Interface**: Controlled via GPIO (row/column multiplexing)
100
-
101
-
### 9. Resistors 220Ω (x64)
102
-
-**Role**: Current-limiting resistors for LEDs
103
-
104
-
### 10. LCD I2C 1602 (x1)
67
+
### 7. LCD I2C 1602 (x1)
105
68
-**Role**: Display the chess timer for both players
106
69
-**Interface**: I2C (SDA, SCL)
107
70
108
-
### 11. Power Supply 12V (x1)
71
+
### 8. Power Supply 12V (x1)
109
72
-**Role**: Power the stepper motors and electromagnet
110
73
111
-
### 12. Voltage Regulator LM7805 (x1)
112
-
-**Role**: Step down 12V to 5V for logic components
113
-
114
-
### 13. Capacitors 100µF (x2)
74
+
### 9. Capacitors 100µF (x1)
115
75
-**Role**: Stabilize voltage on the power supply lines
116
76
117
-
### 14. Breadboard + Jumper Wires
77
+
### 10. Breadboard + Jumper Wires
118
78
-**Role**: Prototyping and connections
119
79
120
80
## Schematics
121
81
122
-

82
+

123
83
124
84
125
85
## Bill of Materials
126
86
127
87
| Device | Usage | Price |
128
88
|--------|-------|-------|
129
89
| STM32 Nucleo-U545RE-Q | Main microcontroller | provided by lab |
130
-
| NEMA 17 Stepper Motor x2 | Move electromagnet on X and Y axes |~60 RON |
0 commit comments