Aye Arr is a MicroPython library for sending and receiving infrared remote signals on Raspberry Pi Pico/RP boards. It uses the RP's PIO to handle the timing of IR pulses.
The library consists of two layers:
NEC- a protocol layer for acting as or listening for consumer remote controls.Pulse- the underlying creation and decoding of infrared pulses with a carrier frequency.
For transmission projects using Aye Arr you need an infrared LED (with suitable current limiting resistor) connected up to a GPIO pin of your RP board. For receiving projects using Aye Arr you need an infrared photodiode with a 38KHz receiver module, such as our IR Receiver Stick, connected to a GPIO pin of your RP board.
If your board is online and has mip you should be able to run:
import mip
mip.install("github:org/pimoroni/aye_arr/package.json")Otherwise, using Tools -> Manage Packages in Thonny, locate the
aye_arr package and install it as normal.
You can also install this library manually by copying the aye_arr directory in this repo to your board. To do this, click on the down arrow next to <> Code, click on Download ZIP, then unzip the file and copy the aye_arr folder within it over to your RP board via Thonny.
There are a variety of examples to get you started with Aye Arr, located in the examples folder of this repository:
To take Aye Arr further, function references for the Aye Arr library can be found at:
