how to use IFC AI08

Autonomous Robot, Manual Robot, DC Motor Driver, Stepper Motor Driver, Servo, Multi PWM chip.....

how to use IFC AI08

Postby dirayim » Tue Mar 04, 2014 2:14 pm

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.....
dirayim
Greenhorn
 
Posts: 3
Joined: Mon Feb 24, 2014 9:19 am

Re: how to use IFC AI08

Postby ober » Tue Mar 04, 2014 9:17 pm

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.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: how to use IFC AI08

Postby dirayim » Fri Mar 07, 2014 3:27 pm

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....
dirayim
Greenhorn
 
Posts: 3
Joined: Mon Feb 24, 2014 9:19 am

Re: how to use IFC AI08

Postby sich » Mon Mar 10, 2014 11:16 am

The sample code is given at the product page.
~> How to ask QUESTIONS the SMART way in FORUM? <~
User avatar
sich
Moderator
 
Posts: 603
Joined: Tue Apr 21, 2009 2:15 pm

Re: how to use IFC AI08

Postby yonghui » Mon Mar 10, 2014 12:06 pm

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.
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

Re: how to use IFC AI08

Postby ober » Tue Mar 11, 2014 8:23 am

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.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: how to use IFC AI08

Postby dirayim » Fri Mar 14, 2014 12:32 pm

can help me for the program for fire fighting robot...I wan use the sharp infrared sensor to detect the wall....
dirayim
Greenhorn
 
Posts: 3
Joined: Mon Feb 24, 2014 9:19 am

Re: how to use IFC AI08

Postby yonghui » Mon Mar 17, 2014 10:26 am

I hope u can please try to write your own code?
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm


Return to Robot Controller

Who is online

Users browsing this forum: No registered users and 20 guests

cron