Jump to content
43oh

Fuzzy Logic controller for an Iverted pendulum


Recommended Posts

Hi Juan,

I'm not familiar with fuzzy control, nor have I examined your code - so forgive me, but it looks like the pot has quite some friction and is able to hold the pendulum? Also, it seems to oscillate when you push it.

But it is an interesting experiment to get to know fuzzy control, thanks for sharing! I'll hope to find the time to set this up myself.

Link to post
Share on other sites
Hi Juan,

I'm not familiar with fuzzy control, ...

Fuzzy Logic is not anything complicated. It's just another Buzzword - in the fact it is the "analog processing" of data. Instead of digital "OFF" and "ON" is used analogue expression (scale: full "OFF" - a little "ON" - more "ON" - a lot of "ON" - full "ON"). Binary math is replaced with the counting numbers with floating decimal point. (Can also be used version, which counts with integer numbers - full "OFF" = 0x0000, full "ON" = 0xFFFF).

...and this is all. No magic.

Link to post
Share on other sites
it looks like the pot has quite some friction and is able to hold the pendulum?

yes, that's due to a crappy potentiometer and a lightweight pendulum, in this kind of setups the device used to mesure the angle is usually some sort of optical encoder or something like that in order to avoid any kind of friction. Unfortunately I don't have such a device and I thought about making one but the potentiometer was a faster option.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...