Page 1 of 1

how to use IFC AI08

PostPosted: Tue Mar 04, 2014 2:14 pm
by dirayim
please help me use this IFC card....IFC AI08....i want to use sensor CX422 to connect to this card...but I don't know how to write the right programming.....

Re: how to use IFC AI08

PostPosted: Tue Mar 04, 2014 9:17 pm
by ober
IFC-AI08 is analog input card while CX422 is digital output sensor. IFC-AI08 is not designed for digital type of sensor. You should connect CX422 to IFC-DI08 instead.

Re: how to use IFC AI08

PostPosted: Fri Mar 07, 2014 3:27 pm
by dirayim
sorry...I wrong write the model of the sensor...I want to use sensor infrared sensor..the name of the model is SHARP....can you give an example coding how to use that sensor with IFC AI08....

Re: how to use IFC AI08

PostPosted: Mon Mar 10, 2014 11:16 am
by sich
The sample code is given at the product page.

Re: how to use IFC AI08

PostPosted: Mon Mar 10, 2014 12:06 pm
by yonghui
to write code , u can refer to IFC-AI08 library reference doc.
there should be function to call to get the value of analog channel that u connect the sensor to.

Re: how to use IFC AI08

PostPosted: Tue Mar 11, 2014 8:23 am
by ober
Hi, we do not have library for all the analog sensors, there are thousand of analog :)

Even we shrink the sensor to Sharp Infrared distance sensor, there are at least 5 models that I know of, all these sensors have analog output which provide different information at certain voltage. So writing a universal sample code is not possible.

You will need to ready the datasheet of that particular sensor and under the relationship between voltage and distance, further understand the value of ADC function in IFC-AI08, finally, convert the ADC value to distance.

You can try study theexample code of PR23 R2 where we convert the ADC to distance in cm.

Re: how to use IFC AI08

PostPosted: Fri Mar 14, 2014 12:32 pm
by dirayim
can help me for the program for fire fighting robot...I wan use the sharp infrared sensor to detect the wall....

Re: how to use IFC AI08

PostPosted: Mon Mar 17, 2014 10:26 am
by yonghui
I hope u can please try to write your own code?