Passive Radar platform using Stepper and Rotary encoder

This is a aspect that I'm still in the process of understanding. From my research, I've learned that it's feasible to store data on EEPROM and utilize it as memory that can be erased and replaced with new data.

For controlling the stepper motor's movement or stopping it via Python, I'm considering utilizing UART communication. However, I haven't found a definitive solution yet.

As a step towards understanding this better, I plan to simulate Python commands with a basic code that controls the stepper motor in both forward and backward directions using the encoder for positional guidance and limiting. In this setup, the Python script would only issue commands for clockwise (CW) and counterclockwise (CCW) movements. The Arduino sketch would involve establishing a serial connection and integrating the encoder for limiting and positional guidance.

To proceed with the simulation, I'm seeking guidance in this forum on how to incorporate the rotary encoder as a sensor for limiting and positional guidance using my sketch to controll the stepper CW or CCW.