Projet realised by @MaximePich et @LirokWid
This project is designed for controlling a motor using an STM32G474 microcontroller on a Nucleo development board. It includes a simple shell interface for user interaction and motor control. The software provides functionalities for starting/stopping the motor, setting the motor speed, and monitoring the motor's current.
Example of the motor being controlled : https://youtube.com/shorts/cWRz2HWbShM
- Control the motor speed and direction.
- Monitor the motor's current.
- User-friendly shell interface for interacting with the system.
Before getting started, make sure you have the following:
- An STM32G474 Nucleo development board.
- Development environment setup for STM32 (e.g., STM32CubeIDE).
- Necessary libraries and dependencies (provided in the code).
- A motor or motor controller connected to the Nucleo board.
-
Clone this repository to your local development environment:
git clone <repository-url> Open the project in your preferred development environment (e.g., STM32CubeIDE).
-
Build and flash the project to your STM32G474 Nucleo board.
-
Connect your motor or motor controller to the appropriate pins on the Nucleo board.
-
Power up the system and start the shell interface.
When you power up the system, it will initialize and display a shell prompt.
You can enter various commands to control the motor:
- help: Display a list of available commands.
- start: Start the motor.
- stop: Stop the motor.
- speed : Set the motor speed, where is between -100 and 100.
Use the shell interface to monitor the motor's current and control its behavior.