The objective of this system is to control a mechanical arm connected to a DC motor based on movement data received from a motion sensor. Using a custom-designed PC interface, users can send commands to define:
- The number of rotations to the left or right,
- And the time required for one full rotation.
The system supports two operating modes:
- Manual Mode
- Automatic Mode
Details of each mode will be described later.
- Developed using Visual Studio with C#.
- Provides control over:
- Physical Layer: RS485 (wired)
- Protocol: UART
- Ensures reliable communication between the PC interface and the motor control system.
In the event of a power failure (e.g., system shutdown or power interruption), the system typically requires manual reinitialization via the PC interface.
To eliminate this dependency:
- All commands sent from the interface are stored in the internal flash memory of the microcontroller.
- Upon power restoration, the system automatically reads the stored commands and resumes operation from the last known state.
- The system operates with a 12V DC power source.
- A 12V 6A AC-DC converter supplies power to the system components.
(See the diagram below for the connection schematic.)