Wednesday, October 23, 2019

Lab Notes for 10/23/19

Goals that should have been accomplished for the week of 10/9/19-10/22/19:
  • Have an operational code combining the load cell code and motor code using Arduino IDE
  • Code is supposed to alternate between load cell and motor frequencies on Arduino IDE's serial port
  • Things that were actually accomplished:
  • Code was operational
    • However, ran into issues with the motor
      • Motor did not run
  • Troubleshooted the system
    • The circuit was not the issue because tested the Load Cell and Motor codes independently and they functioned fine
    • Manipulated the code a bit by checking to see if the conditional statement where the remainder of the counter divided by the sampling rate was the issue was the issue and it wa
      Discussion:
      "Psuedocode" Example:
      Goal of the code: 
      The purpose of the code is to have the load cell and motor function together and send signals to Arduino IDE's serial port at certain frequencies. Load cell frequencies should be sent more frequently than the motor frequencies. Code should serve as an on/off switch to initate the motor. For example, when this "switch" is on the motor should move one step while sending both motor and load cell signals to the serial port. When the "switch" is off, the motor will not move, but load cell signals will still be sent. This on/off value will change depending on what sampling frequency you choose for the load cell/motor cell. 

      A list of important variable for this code can be seen through this link:

      Important Functions:
      IF 
      "counter is <= to the number of motor steps"
      then:
      increase the increment of the counter
      move on to next condition

      IF
      "the remainder of the counter divided by LM is equal to 0"
      then:
      move the motor by 1 step
      Send Load cell signals and motor signals to serial port
      increment the step counter

      ELSE
      send load cell signals only to the serial port

      END CODE

      LM Calculations:

      Goals for the next week:
      • Modify the code and verify it works!
      • Configure code with MATLAB???


      No comments:

      Post a Comment

      Progress for 11/20/19

      Goals for 11/20/19: Set HX711 pins to digitalread configuration, to collect the raw data and try to see if that fixes the issue of slow p...