Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Implemented a stepper motor control with dynamic ticks (states accelerate, decelerate, stable, wait)
  • View file
    namestepperMotor.svg
    height250
    <include picture of SingleModel.sctx diagram>
  • generated C code executed on Arduino with Arduino IDE
    • analog reads set to inputs of SCChart model
    • max target speed should match physical max speed of the motor (15 revolutions/s)
    • lower acceleration time to be less than 10 seconds to max speed
    • code is delayed based on model's sleep time and execution time of the wrapper
  • plotted data for speed and acceleration 
  • hardware with two 'clocks' to show rotation and speed of the motors
  • speed settable with potentiometer
  • serial prints via USB heavily affect execution time
    • no conditional for consistent delay
    • append strings and only send one serial print to save time

...