IR 38 kHz Remote Relay Switch for RASPBERRYPI PICO and PICO2
IR 38 kHz Remote Relay Switch for RASPBERRYPI PICO and PICO2
IR 38 kHz Remote Relay Switch for Raspberry Pi Pico and Pico2 is a compact and flexible remote switching solution designed for wireless control of isolated outputs using standard infrared remote controllers. The design is based on the Raspberry Pi and compatible with both Raspberry Pi Pico and Pico2 platforms, using a 38 kHz infrared receiver such as the TSOP38238 for signal detection and decoding.
The system receives and decodes commands from standard 38 kHz infrared remote controls, including remotes using the widely supported NEC protocol, which has been verified for reliable operation in this design. It can also be used with smartphones equipped with an integrated IR transmitter (IR blaster), enabling direct control via mobile applications. Button commands from the remote or smartphone can be assigned in software to independently switch isolated outputs on or off, making the module suitable for wireless control, signal triggering, and remote activation applications.
Output switching is implemented using two LCA717 solid-state relays, providing electrically isolated control channels driven directly from Raspberry Pi Pico GPIO pins. Each channel can be independently toggled by specific remote-control buttons, enabling dual-channel remote switching without mechanical relay wear, contact bounce, or acoustic noise.
An additional transistor-driven indicator stage based on the BC846B provides optional visual feedback for received IR commands or output state indication. This can be configured in software as a pulse-detection indicator or as a status LED, improving usability during testing and operation.
The design has been verified against the schematics to ensure correct signal routing, reliable IR reception, proper GPIO control of the OptoMOS relays, and stable operation with common NEC-compatible remote controllers. Particular attention has been given to input conditioning, GPIO protection, and isolated output switching behavior.
MicroPython example programs are available for Raspberry Pi Pico/Pico2, allowing users to quickly implement remote button detection, NEC code decoding, relay toggling, and custom remote-command mapping. This makes the module suitable for prototyping, home automation, remote sensor triggering, industrial control interfaces, and embedded wireless switching applications.
Features
Applications
Technical Specifications
Additional Notes and Information
To run the provided MicroPython example for the IR 38 kHz Remote Relay Switch board, install and use the Thonny IDE with your Raspberry Pi or Pico2.
1. Install Thonny IDE on your computer.
2. Connect the Raspberry Pi Pico to the PC using a USB cable.
3. In Thonny, select MicroPython (Raspberry Pi Pico) as the interpreter.
4. Open the provided `main.py` example file.
5. Save the file to the Raspberry Pi Pico (File → Save As → Raspberry Pi Pico).
6. Press Run (F5) or restart the board.
After uploading, the `main.py` file will automatically execute on every board reset. The program initializes the 38 kHz infrared receiver, decodes commands from NEC-compatible remote controllers, and enables remote control of the two isolated outputs through the LCA717 channels.
For reliable operation, use a standard 38 kHz IR remote control and ensure the IR receiver (for example TSOP38238) has a clear line-of-sight to the transmitter. Remote button codes can be identified using the included MicroPython IR reader example and assigned in software to custom switching functions.
The example code supports independent relay toggling, receive-indicator signaling, and custom remote-button mapping. This allows immediate functional verification after startup and simplifies integration into automation, switching, and embedded control applications.
Downloads