Programing IzeBot robot....need some help,i`ve stucked...
Pistu
Posts: 10
hey guys
need some hlep
i`m programing an IzeBot vehicle with fuzzy logic.
i`ve started to write the program but i`ve stucked....now i want to make a table to write values of the membership functions and with fuzzy rules i want
with IF..THEN rules to read the recent value from the accelerometer sensor [noparse][[/noparse]Memsic2125] and to find the value in the table and to act.
any idea?
thanx for helping me
sorry for my english....
need some hlep
i`m programing an IzeBot vehicle with fuzzy logic.
i`ve started to write the program but i`ve stucked....now i want to make a table to write values of the membership functions and with fuzzy rules i want
with IF..THEN rules to read the recent value from the accelerometer sensor [noparse][[/noparse]Memsic2125] and to find the value in the table and to act.
any idea?
thanx for helping me
sorry for my english....
Comments
It is unclear which microcontroller that you are using. Can you provide some more details with the BASIC Stamp module being used, and any sample code you have written so far?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,
Joshua Donelson
www.parallax.com
IF accel_x=ZE and accel_y=ZE THEN r_motor=Fast_f
IF accel_x=ZE and accel_y=ZE THEN l_motor=Fast_f
IF accel_x=ZE and accel_y=NS THEN r_motor=Fast_f
IF accel_x=ZE and accel_y=NS THEN l_motor=Medium_f .....and so on...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,
Joshua Donelson
www.parallax.com
I'm taking a look at the program, and seeing if I can make a suggestion as to a route to take.
Thank you for your patience,
Joshua Donelson
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,
Joshua Donelson
www.parallax.com
Regards,
Pistu
Post Edited (Pistu) : 3/18/2009 3:34:05 PM GMT
It looks like you are always trying to send same duration of the PWM cycle, but change the Duty and Pin; is that correct? Or did you want to change the Pin, Duty and Cycle?
Joshua Donelson
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,
Joshua Donelson
www.parallax.com
Are you trying to create a similar project as the following?
http://forums.parallax.com/showthread.php?p=524063
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,
Joshua Donelson
www.parallax.com
something like this i want to make http://forums.parallax.com/showthread.php?p=524063 but in my project the pwm commands is according to fuzzy logic...
now i want to make from ex. to the Accel_X 3 tabels ZE,Small,Great and to write the values [noparse][[/noparse]pulses] ZE [noparse][[/noparse]1,2,3,4....45]
then i want that the incoming pulse from the accelerometer to be categorized to a tabel and to respond to the rule IF accel_x=ZE and accel_y=ZE THEN r_motor=Fast_f Fast_F [noparse][[/noparse]pwm comand]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,
Joshua Donelson
www.parallax.com
The LOOKUP command in the basic stamp would help me to make tables?..i`m not sure how...
For example:
Index = 3
LOOKUP Index, [noparse][[/noparse] 5, 6, 7 ], Variable
This would make the variable equal to 7
BASIC Stamp Syntax & Reference Manual [noparse][[/noparse] soft copy ]:
http://www.parallax.com/Portals/0/Downloads/docs/prod/stamps/web-BSM-v2.2.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,
Joshua Donelson
www.parallax.com