Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9880 Discussions

TSOP38238: Is there library support for Infrared Sensor and Intel Edison

MClif
New Contributor I
1,084 Views

My hardware:

Intel Edison

IR (Infrared) Receiver Sensor - TSOP38238 (AdaFruit product id: 157)

I've been working through the tutorial:

https://learn.adafruit.com/ir-sensor

I downloaded the sample code from:

http://github.com/adafruit/Raw-IR-decoder-for-Arduino

When I compile rawirdecode the first compiler error is:

rawirdecode:20: error: 'PIND' was not declared in this scope

# define IRpin_PIN PIND

I then searched for a library with "IR" in it's name, found "Robot IR Remote" and included it.

It added these includes:

# include

# include

# include

When I compile with the new includes I get this warning:

WARNING: library RobotIRremote claims to run on [avr] architecture(s) and may be incompatible with your current board which runs on [i686] architecture(s).

And the same "PIND" not declared error.

I then searched the internet for Intel Edison, infrared and TSOP38238 and didn't find anything that seemed useful.

I started asking about this at the AdaFruit forum which referred me to the Arduino forum and they referred me to Intel.

Question: Is there a library that supports TSOP38238 on Edison?

Question: Is Edison incapable for working with Infrared sensors?

Question: Or, if it is, do I have to write my own library

Regards,

Bill

0 Kudos
1 Solution
idata
Community Manager
208 Views

Hi Bill.,

 

 

Yes, the library that you tried to use (Robot IR Remote) is indeed developed for another architecture and it won't work on the Edison.

 

Now regarding your questions, I've been looking at the UPM libraries, http://iotdk.intel.com/docs/master/upm/modules.html, and there's no a specific library for your sensor (TSOP38238) but there are other libraries for different IR devices, for example the RPR220 or the GP2Y0A so with this in mind the Edison is capable to handle IR devices similar to yours. To answer your last question, it would be necessary to write your own library and for that you can base your work on the libraries that I mentioned before.

 

You can check them here:

 

http://iotdk.intel.com/docs/master/upm/classupm_1_1_r_p_r220.html http://iotdk.intel.com/docs/master/upm/classupm_1_1_r_p_r220.html for the RPR220.

 

http://iotdk.intel.com/docs/master/upm/classupm_1_1_g_p2_y0_a.html# details http://iotdk.intel.com/docs/master/upm/classupm_1_1_g_p2_y0_a.html# details for the GP2Y0A.

 

 

Regards,

 

-Pablo

View solution in original post

2 Replies
idata
Community Manager
209 Views

Hi Bill.,

 

 

Yes, the library that you tried to use (Robot IR Remote) is indeed developed for another architecture and it won't work on the Edison.

 

Now regarding your questions, I've been looking at the UPM libraries, http://iotdk.intel.com/docs/master/upm/modules.html, and there's no a specific library for your sensor (TSOP38238) but there are other libraries for different IR devices, for example the RPR220 or the GP2Y0A so with this in mind the Edison is capable to handle IR devices similar to yours. To answer your last question, it would be necessary to write your own library and for that you can base your work on the libraries that I mentioned before.

 

You can check them here:

 

http://iotdk.intel.com/docs/master/upm/classupm_1_1_r_p_r220.html http://iotdk.intel.com/docs/master/upm/classupm_1_1_r_p_r220.html for the RPR220.

 

http://iotdk.intel.com/docs/master/upm/classupm_1_1_g_p2_y0_a.html# details http://iotdk.intel.com/docs/master/upm/classupm_1_1_g_p2_y0_a.html# details for the GP2Y0A.

 

 

Regards,

 

-Pablo
MClif
New Contributor I
208 Views

Hi Pablo,

Thanks for the info and pointers.

The pages that you referenced don't give me enough clues to continue. They are probably good for those who are further ahead in their experimentation with Edison. I will drop this IR sensor project.

I now know that I should do more research on compatibility at places like:

iotdk.intel.com/docs/master/upm/modules.html

software.intel.com/en-us/iot/hardware/sensors

You can close this discussion.

Thanks for the help.

Bill

Reply