Hackuarium / bioreactor

https://hackuarium.github.io/bioreactor/
5 stars 5 forks source link

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

Closed opatiny closed 4 years ago

opatiny commented 4 years ago

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 commented 4 years ago

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:

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 commented 4 years ago

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 commented 4 years ago

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

rlim-bioMain

Description of the variables:

From the datasheet, we have the following formula:

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

Which is equivalent to:

opatiny commented 4 years ago

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.

lpatiny commented 3 years ago

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