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
Copy file name to clipboardExpand all lines: website/versioned_docs/version-acs_cc/project/2026/vlad_stefan.condrea/index.md
+30-1Lines changed: 30 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ A robotic pan-tilt turret capable of detecting targets and launching projectiles
13
13
14
14
A smart robotic turret made using a STM32 NUCLEO board that acts as the main controller. The system uses a pan-tilt mechanical bracket driven by two MG996R servo motors to aim. An HC-SR04 ultrasonic sensor is mounted on the moving arm to detect the distance to a target. Once the target is within range, the Nucleo board triggers the flywheel launcher, which consists of two high-speed DC motors with rubber wheels that shoot the projectile.
15
15
The entire system is powered by a LiPo battery, using an LM2596 step-down module to safely provide 5V to the servos and sensor.
16
+
Added a joystick to the project so now I can manually control the turret and shoot the projectile by pressing the joystick button
16
17
17
18
## Motivation
18
19
@@ -26,6 +27,34 @@ The Nucleo board processes the sensor data to determine if a target is present.
26
27
27
28
Power management is critical: a 7.4V LiPo battery supplies raw power to the motor driver for the DC motors. In parallel, the battery connects to an LM2596 Step-Down converter, which drops the voltage to a stable 5V to safely power the STM32 board, the HC-SR04 sensor, and the servo motors without frying them.
28
29
30
+
31
+
### Main Architectural Components
32
+
33
+
#### Target Detection System (Input Data)
34
+
***Role:** Continuously monitors the environment to detect potential targets and measure their exact distance from the turret.
35
+
***Components:** 1x HC-SR04 Ultrasonic Sensor mounted on the moving pan-tilt bracket.
36
+
***Logic:** The STM32 board sends a microsecond trigger pulse to the sensor, which then emits a sound wave. The board measures the duration of the returning echo signal to calculate the distance in real-time, feeding this data to the radar sweep algorithm.
37
+
38
+
#### The Central Logic Controller (Processing)
39
+
***Role:** Acts as the brain of the system, executing the core algorithms, managing real-time hardware interrupts, and computing ballistic alignment (e.g., Center of Mass calculations and trigonometric offset compensation).
40
+
***Components:** STM32 Nucleo-U545RE-Q Development Board.
41
+
***Logic:** Uses the `embassy` framework for asynchronous programming. It simultaneously handles spatial data acquisition, updates motor states, and coordinates the precise timing sequence for the firing mechanism without blocking the CPU.
42
+
43
+
#### Pan-Tilt Aiming System (Output)
44
+
***Role:** Responsible for the physical orientation of the turret, allowing it to sweep, track, and lock onto targets across both horizontal (X) and vertical (Y) axes.
45
+
***Components:** 2x MG996R High-Torque Servo Motors attached to a metal Pan-Tilt bracket.
46
+
***Logic:** The microcontroller generates precise PWM (Pulse Width Modulation) signals. By altering the duty cycle, the board commands the servos to perform a radar-like scan, adjusting their angles to center perfectly on the detected object.
47
+
48
+
#### Flywheel Launcher System (Output)
49
+
***Role:** Engages and accelerates the firing mechanism to launch the projectile at the locked target.
50
+
***Components:** 1x L298N Motor Driver, 2x High-Speed DC Motors, and 2x Rubber Wheels.
51
+
***Logic:** Upon confirming a target lock, the STM32 sends digital control signals to the IN pins of the L298N driver to set the rotation direction (wheels spinning inwards to grip and propel the foam dart). The L298N acts as a heavy-duty switch, delivering the high current required by the DC motors for the firing sequence.
52
+
53
+
#### Power Management Network
54
+
***Role:** Distributes safe and stable operating voltages to all logic and mechanical components, preventing system resets under high mechanical loads.
***Logic:** The power distribution is split into two branches. The raw 7.4V from the LiPo battery is routed directly to the L298N driver to provide maximum torque to the DC motors. In parallel, the LM2596 module steps down the 7.
57
+
29
58

30
59
31
60
## Schematics
@@ -47,7 +76,7 @@ to the step down module and the DC motors. The hardware is ready
47
76
and can fully function.
48
77
49
78
### Week 19 - 25 May
50
-
79
+
Wrote the code that has 2 modes one for am auto mode which tries to detect an object as precise as possible and a manual mode where I have a joystick to guide the turret.
51
80
## Hardware
52
81
53
82
The project uses the Nucleo board as the brain. It receives echo pulses from the HC-SR04 sensor. After processing the distance, it sends PWM signals to the Pan and Tilt MG996R servos. It also controls a motor driver (L298N/L293D) to activate the dual DC motors for the launcher. The LM2596 acts as a power regulator.
0 commit comments