Go Down

Topic: Precise Position Control Of DC Hobby Servo motor Using Fuzzy Logic Controller (Read 3188 times) previous topic - next topic


Hello all,
hopefully everyone is in the best of their health and spirits.

I am required to precisely control the position of a hobby servo motor(HS 311) through fuzzy logic inference system. I require an accuracy upto 0.1 degrees. I have simulated the fuzzy system on matlab and it controls the motor well in time. Now I want to burn this fuzzy inference system in a micro controller.
Can the arduino uno r3 hold the code for this? by 'hold' I mean does it support floating point mathematics to precisely handle the calculations to accurately position the motor.

Any Help or suggestion on the topic will be highly appreciated please.



by 'hold' I mean does it support floating point mathematics to precisely handle the calculations to accurately position the motor.

Yes, it does. Whether it's fast enough depends.
The art of getting good answers lies in asking good questions.


I require an accuracy upto 0.1 degrees.

That is interesting. Using a similar type of hobby servo I got only ~.4 deg of repeatable accuracy.
Google forum search: Use Google Search box in upper right side of this page.
Why I like my 2005 Rio Yellow Honda S2000  https://www.youtube.com/watch?v=pWjMvrkUqX0


Is it worth going for such precision with a fuzzy system in the first place?

I know that fuzzy is repeatable, I know how it works, and that it produces a set point based on rules which always give the same answer under the same conditions. (As opposed to a lay understanding which is that the output itself is fuzzy....)

But given that the whole fuzzy membership thing is, well, fuzzy, eg the slopes of the trapezoid ends and stuff like that, and the centroid approach to de-fuzzing, is it really of any value to get too anal about the precision of the setpoint and meeting it in the hardware?

We get to the point where we do anal maths on calculating membership levels and centroid positions (becasue that arithmetic is pretty trivial), losing sight of the fact that the membership definitions of stuff like cold, cool, warm, hot are loose in the first place.
Johannesburg hams call me: ZS6JMB on Highveld rep 145.7875 (-600 & 88.5 tone)
Dr Perry Cox: "Help me to help you, help me to help you...."
Your answer may already be here: https://forum.arduino.cc/index.php?topic=384198.0

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131