Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino - Design #7

Open
Honeyyellowcat opened this issue Feb 2, 2024 · 0 comments
Open

Arduino - Design #7

Honeyyellowcat opened this issue Feb 2, 2024 · 0 comments

Comments

@Honeyyellowcat
Copy link
Owner

Honeyyellowcat commented Feb 2, 2024

Design - Arduino

Serial Communication

  • ୨୧・PySerial send commands to the Arduino, instructing it on how to control the stepper motor.
  • ୨୧・Commands from the computer control the stepper motor.

Stepper Motor Control

  • ୨୧・Four digital output pins (portIN1 to portIN4) interface with the stepper motor's driver

Data Processing

  • ୨୧・The Parse_the_Data() function extracts and parses parameters from the received string

Motor Operation

  • ୨୧・Loop continuously checks for incoming data.
  • ୨୧・Parsed parameters determine motor speed, angle, and direction.

Parameter Conversion

  • ୨୧・Received parameters are converted for motor control:
  • ୨୧・Speed is converted to a delay between steps.
  • ୨୧・Angle is converted to the number of steps required for rotation

Sending Data to Serial Port:

  • ୨୧・sendData: Sends motor control data to the Arduino.
  • ୨୧・low_pass_filter: Smoothing motor speed changes.
  • ୨୧・Visual feedback through the GUI: Clockwise/Anticlockwise buttons, Speed (RPM) sliders, and and angle (deg).

Motor Control Functions

  • ୨୧・stepper_Anticlockwise() and stepper_Clockwise() control motor rotation.
  • ୨୧・Direction and step count determined by received commands.

GUI Integration:

  • ୨୧・Constructs a Tkinter window and designs GUI elements.
  • ୨୧・Tkinter: Assigning Functions to Buttons
@Honeyyellowcat Honeyyellowcat moved this to In Progress in PPT_CALIBRATION Feb 2, 2024
@Honeyyellowcat Honeyyellowcat changed the title Arduino Arduino (Design/GUI) Feb 5, 2024
@Honeyyellowcat Honeyyellowcat moved this from In Progress to Done in PPT_CALIBRATION Feb 5, 2024
@Honeyyellowcat Honeyyellowcat changed the title Arduino (Design/GUI) Arduino - Design Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant