Receiver and "blaster" for IR remote controls

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Receiver and "blaster" for IR remote controls

Post by pythoncoder » Mon Mar 08, 2021 1:06 pm

I have updated the micropython_ir library for compatibility with the Pi Pico.
Peter Hinch
Index to my micropython libraries.

arj
Posts: 9
Joined: Wed Feb 03, 2021 5:45 pm

Re: Receiver and "blaster" for IR remote controls

Post by arj » Mon Mar 22, 2021 5:46 pm

Great news. I've ordered some Vishay TSOP4838's from RS and will give it a go when they arrive tomorrow. I'll let you know how I get on. Thanks.

arj
Posts: 9
Joined: Wed Feb 03, 2021 5:45 pm

Re: Receiver and "blaster" for IR remote controls

Post by arj » Tue Mar 23, 2021 2:07 pm

Hi Peter, I have my TSOP4838 and am trying to test with your library. I'm using Thonny from my main development PC (Windows). I'm trying to run test.py in the ir_rx folder but keep getting an error:-

Code: Select all

Traceback (most recent call last):
  File "<stdin>", line 13, in <module>
ImportError: no module named 'ir_rx'
I assume this is because the library files are not available on the Pico? Do I need to copy the .py files in the ir_rx folder to the Pico first? Can I use Thonny to do that? Sorry, I feel it's such a simple step I'm missing somewhere.

arj
Posts: 9
Joined: Wed Feb 03, 2021 5:45 pm

Re: Receiver and "blaster" for IR remote controls

Post by arj » Tue Mar 23, 2021 5:18 pm

Ok, I've worked it out, it was the "Files View" in Thonny that I was missing. Once that is visible you can right click on a local folder (on your PC) and select "Upload to /"" to copy all the library files in a folder to the Pico.

I got it working nicely now.

I documented the codes produced by a couple of the remotes I found at home. Hopefully useful to someone. PDF downloadable from here :-

https://1drv.ms/b/s!AuxPYKnqp1fVjZl7_Ih ... g?e=3tO2FF

Feel free to use this .pdf

Post Reply