0

Sparkfun IR remote and Circuit playground express (CPX)
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Sparkfun IR remote and Circuit playground express (CPX)

by tinkeringtech on Mon Mar 22, 2021 11:28 am

Hi,

I'm trying to get the sparkfun IR remote https://www.sparkfun.com/products/14865 to work with the CPX in Makecode.
Any thoughts on how I can get it to work? I had to get this remote since the Adafruit IR remote was out of stock. Thanks for any feedback.

I was going to approach Sparkfun with the same question, but wanted to check if anyone had encountered this before.

tinkeringtech
 
Posts: 93
Joined: Wed Nov 23, 2011 10:08 pm

Re: Sparkfun IR remote and Circuit playground express (CPX)

by adafruit_support_mike on Tue Mar 23, 2021 9:15 pm

You should be able to read the signal from the Sparkfun remote using the CPX's built-in IR receiver. The receiver has a bandpass filter that detects 38kHz signals, which are standard for IR remotes.

The information in this tutorial should work:

https://learn.adafruit.com/infrared-tra ... lus-plus-2

adafruit_support_mike
 
Posts: 63053
Joined: Thu Feb 11, 2010 2:51 pm

Re: Sparkfun IR remote and Circuit playground express (CPX)

by tinkeringtech on Tue Mar 23, 2021 9:55 pm

Thanks Mike for the reply.

Yes, I'm sure it can work on the CPX, my issue is that how can I get it to work in Makecode,
What would I use on infrared received values like the attached makecode screenshot?
Attachments
Capture.PNG
Capture.PNG (22.82 KiB) Viewed 93 times

tinkeringtech
 
Posts: 93
Joined: Wed Nov 23, 2011 10:08 pm

Re: Sparkfun IR remote and Circuit playground express (CPX)

by adafruit_support_mike on Wed Mar 24, 2021 9:16 pm

Sorry, I got so busy cross-referencing parts that I skimmed over the Makecode part.

tinkeringtech wrote:What would I use on infrared received values like the attached makecode screenshot?

I don't know what codes the Sparkfun remote will emit. Try using the combination shown here to print out whatever the receiver sees, then press each of the remote's buttons to see what code they produce:

https://makecode.adafruit.com/reference ... ved-number

adafruit_support_mike
 
Posts: 63053
Joined: Thu Feb 11, 2010 2:51 pm

Re: Sparkfun IR remote and Circuit playground express (CPX)

by tinkeringtech on Wed Mar 24, 2021 10:05 pm

Thanks Mike for the feedback and help. I'm not getting any readings from the remote with the test code.
I'm just going to return them and get the Adafruit IR remotes.

tinkeringtech
 
Posts: 93
Joined: Wed Nov 23, 2011 10:08 pm

Please be positive and constructive with your questions and comments.