| Arduino Forum ::  Members :: adilrahim
 Show Posts Pages: [1]
 1 Topics / Robotics / Re: Fuzzy Logic Problem- Servo motor position control on: March 21, 2013, 12:03:08 pm Quote from: PaulS on March 21, 2013, 09:13:04 amI didn't see any problem. Or attachment, for that matter.Sorry, Can you see it now? is there any thing I am doing wrong? :S
 2 Topics / Robotics / Re: Fuzzy Logic Problem- Servo motor position control on: March 20, 2013, 08:19:32 pm Sorry,Now it sayserror: fuzzyadilspeedorignal.h: No such file or directoryplease see the attachment.
 3 Topics / Robotics / Re: Fuzzy Logic Problem- Servo motor position control on: March 20, 2013, 07:57:35 pm Quote from: PaulS on March 20, 2013, 02:17:53 pmThen you are using the wrong symbols on your include statement.It should be:Code:#include "fuzzyadilspeedorignal.h"The " " commas still give the same error.
 4 Topics / Robotics / Fuzzy Logic Problem- Servo motor position control on: March 20, 2013, 12:20:49 pm Hope your'e all in the best of your health and spirits.I am encountering a small problem with the code of Fuzzy logic I generated through this website:http://www.makeproto.com/projects/fuzzy/matlab_arduino_FIST/index.phpThere seems to be a definition problem with the problem. I am posting the code here.This is the header file. Code:typedef float (*_mffloat2)(float,float,float);                   typedef float (*_mffloat3)(float,float,float,float);             typedef float (*_mffloat4)(float,float,float,float,float);       typedef double (*_mfdouble2)(double,double,double);              typedef double (*_mfdouble3)(double,double,double,double);       typedef double (*_mfdouble4)(double,double,double,double,double);#define M_LN2 0.693147180559945309417                                    union                                                                    {                                                                         double d;                                                               struct{ int j,i;}n;                                                    }_eco;                                                                   #define EXP_A (1048576/M_LN2)                                            #define EXP_C 60801                                                      #define _exp(y) (_eco.n.i = EXP_A * (y) + (1072693248 - EXP_C), _eco.d)  Here is the actual code.You need to go only to the Aggregate3 function. where my compiler says that "_mmfloat3" has not been declared. I have the header file copied in the sketch folder. Please any help with this would be appreciated. Code:#include #include Servo myservo;  //create servo objectint pos = 0;    //servo position int inputs[] = {0, 45, 90, 135, 180};  //positions (in degrees) to send to the servoint outputs[] = {0, 0, 0, 0, 0};int numPositions = 5;   void setup() {   //control servo via pin 9   myservo.attach(9, 750, 2550);  //start serial comm. for debugging  Serial.begin(9600);} // Not Functionfloat _not(float x){ return (float)(1.0-x);}// Generates the values in the range [min,max] with increments // defined by 'step'.void generate(float minimum, float maximum, float st, float* values,int length){ float x = minimum; int i; for(i=0;i
 5 Using Arduino / Motors, Mechanics, and Power / Re: Minimum possible angle movement of HS 311 Servo motor on: March 16, 2013, 09:19:29 pm Quote from: JimboZA on March 15, 2013, 09:36:22 amWhat sort of loading will your servo be subject to?Running on no-load conditions as of now.
 6 Using Arduino / Motors, Mechanics, and Power / Re: Minimum possible angle movement of HS 311 Servo motor on: March 15, 2013, 10:22:34 am Thank You ZoomKat. Appreciate it.
 7 Using Arduino / Motors, Mechanics, and Power / Re: Minimum possible angle movement of HS 311 Servo motor on: March 15, 2013, 10:20:43 am Quote from: JimboZA on March 15, 2013, 09:36:22 amAre you sure the servo can be positioned as closely as you want in the first place?I am not sure on that either.  I guess, it depends on the gear and the teeth assembly?
 8 Using Arduino / Motors, Mechanics, and Power / Minimum possible angle movement of HS 311 Servo motor on: March 15, 2013, 09:25:31 am Dear All,I hope you are all in the best of your health and spirits.The servo.h library does not allow the use of floating numbers. I desire the maximum possible accurate movement of this motor. Currently, I can only move it to 1 degree. How do I get to floating numbers? I am not good at this stuff .Any help regarding the matter would be highly appreciated. Thank you.
 9 Topics / Robotics / Precise Position Control Of DC Hobby Servo motor Using Fuzzy Logic Controller on: February 22, 2013, 07:35:56 pm 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. Thankyou
 Pages: [1]