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

bug: bioreactor stepper is being noisy and heats up Rlim #27

Closed
opatiny opened this issue Jun 16, 2020 · 5 comments
Closed

bug: bioreactor stepper is being noisy and heats up Rlim #27

opatiny opened this issue Jun 16, 2020 · 5 comments
Assignees
Labels
PCB prototyping when we are working on prototypes

Comments

@opatiny
Copy link
Contributor

opatiny commented Jun 16, 2020

The cause might be an input current too big. Checkout the datasheet to find if one of the resistors doesn't have the right value.

Screenshot of the resistors of the stepper:
stepper-resistors

@opatiny opatiny self-assigned this Jun 16, 2020
@opatiny opatiny added PCB prototyping when we are working on prototypes labels Jun 16, 2020
@opatiny
Copy link
Contributor Author

opatiny commented Jun 16, 2020

After inspecting the datasheet, we could calculated the relationship between the max current per coil of the stepper IFS, RSENSE and RLIM. We came to the conclusion:

  • RSENSE = 0.1Ω => RLIM = 82Ω
  • RSENSE = 0.2Ω => RLIM = 168Ω

This should suit a stepper with 0.1A per winding.

Additionnaly, we calculated that with the initial RLIM, which had a value of 330Ω, and with RSENSE = 0.2Ω, IFS was approximately 0.19A. This is absolutely within the specification of the stepper that we use ( a 17HS13-0404S1).

No other explanation that a problem with RLIM was found which would explain why the stepper is noisy and why it gets really hot.

@opatiny opatiny closed this as completed Jun 16, 2020
@opatiny
Copy link
Contributor Author

opatiny commented Jun 16, 2020

Some of the noise can be caused by vibrations of the stepper motor. We should add some rubber spacers around the screws holding it in place to test this hypothesis.

@opatiny
Copy link
Contributor Author

opatiny commented Jun 17, 2020

In this comment, I describe the formulas to calculate RLIM and VVREF depending on the other known parameters.

rlim-bioMain

Description of the variables:

  • VVREF: voltage on pin VREF. This value limits IFS.
  • IFS: the amount of current per coil of the stepper that the chip outputs.
  • RLIM: resistor R47 on the image above. Changing this resistor allows us to modify VVREF.
  • R: resistor R41 on the image above. R=3.3kΩ
  • RSENSE: resistor of the current sensor of the chip. RSENSE = 0.2Ω
  • VCC: chip input voltage. VCC = 3.3V

From the datasheet, we have the following formula:

Additionally, after some basic equations solving, we obtained the following formula:

Which is equivalent to:

@opatiny
Copy link
Contributor Author

opatiny commented Jun 17, 2020

After inspecting the datasheet, we could calculated the relationship between the max current per coil of the stepper IFS, RSENSE and RLIM. We came to the conclusion:

  • RSENSE = 0.1Ω => RLIM = 82Ω
  • RSENSE = 0.2Ω => RLIM = 168Ω

This should suit a stepper with 0.1A per winding.

RLIM was changed twice to try these values. We observed that the torque of the stepper got really weak, to the point where the stepper wouldn't start spinning by itself. ( You had to push it a little bit to get it turning.)

This problem was solved when ramp in and ramp out were implemented (issue #23).

In the end, though, we put back a 330Ω resistor. After some testing, we realized that the stepper was not heating anymore. The noise, however, remains an issue.

@opatiny opatiny changed the title bug: bioreactor stepper is being noisy bug: bioreactor stepper is being noisy and heats up Jun 17, 2020
@opatiny opatiny closed this as completed Jun 17, 2020
@lpatiny
Copy link
Member

lpatiny commented Sep 26, 2020

For RSENSE = 0.1Ω a value of 180Ω for RLIM seems good.

@lpatiny lpatiny changed the title bug: bioreactor stepper is being noisy and heats up bug: bioreactor stepper is being noisy and heats up Rlim Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PCB prototyping when we are working on prototypes
Projects
None yet
Development

No branches or pull requests

2 participants