This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Status display for motor controller
#5
Hey guys,

Ues, I can hear my servo clearly. However, for me it’s more like a notification that it still works rather than an annoyance. 1khz is definitely in the audible range! However, this makes using all the other standard libraries possible. For a sail boat this might still be too loud, depending on your setup.

Steinert seems to be pretty expensive, yes. I eye balled the milliseconds per cycle in my first experiments and realized that Steinert causes an overrun such that I was forced to increase the loop time. I implemented Steinert only because that’s what I knew was working with the temp sensors I had sitting around. I bought them for a different project. Plus, I didn’t understand your code completely with respect to which value to change when using different resistances than yours. Having said that, I tested both algorithms and they seem to come to very similar results. So if you could confirm what values to change in your code, we can continue to use your temp code.

Watchdog: Yeah, I just don’t like seeing my uC resetting with me not knowing why. That’s all.

ADC filtering is good here because it untangles the code and it’s a simple fix for potentially noisy signals. Each channel has it’s own filter coefficient.

Yes, I’m running at 97% flash. That’s kinda insane and I haven’t found a good reason why, so far. Commenting the display out, doesn’t help. So it should be something else.

A huge optimization would be to implement Steinert or anything else computationally expensive using a lookup table. That would eliminate most computations. We just need to provide a script that spits put the lookup table for any given sensor and hardware implementation. ADC to temperature mapping is that a matter of a linear scale between two of the LUT values
Reply


Messages In This Thread
RE: Status display for motor controller - by McNugget - 2020-02-06, 06:54 PM
Status display for motor controller - by holgerw - 2020-02-13, 08:42 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)