# OCTOPUS Infrared Receiver Sensor(EF04009) ## Introduction This is a simple infrared receiver sensor,and mainly receives infrared signal through HS0038 infrared diode. HS0038 is particularly sensitive to the infrared signal, and it can receive the infrared signal very swiftly. ![](./images/04009_01.png) ## Products Link [ELECFREAKS Octopus Infrared Receiver Sensor](https://shop.elecfreaks.com/products/elecfreaks-octopus-infrared-receiver-sensor?_pos=1&_sid=2af060c82&_ss=r) ## Characteristics Standard 3-pin GVS port is easy to plug. ## Specification Item | Parameter :-: | :-: SKU|EF04009 Pins Definition|S-Sigal V-VCC G-GND Working Voltage|3V Size|38.9 x 23.5 mm Size: ## Outlook and Dimension ![](./images/04009_02.png) ## Quick to Start ### Materials required and connections diagram Connect to P1 port as the picture shows. ***Take sensor:bit for examples*** ![](./images/04009_03.png) ## Programming ### Step 1 Click "Advanced" in the drawer of the MakeCode to see more choices. ![](./images/04009_04.png) We need to add a package for programming, click "Extensions" on the bottom of the drawer and search with "ir-receiver“ in the dialogue box to download it. ![](./images/04009_05.png) Note: If you met a tip indicating codebase will be deleted due to incompatibility, you may continue as the tips tell or build a new project. ### Step 2 ### Programming as the picture shows ![](./images/04009_06.png) ### Reference Link:[https://makecode.microbit.org/_FUzeJvaord75](https://makecode.microbit.org/_FUzeJvaord75) You can also download it directly:
### Result If pushing the switch button on the controller, the micro:bit shows a "smile" face; if pushing the four direction keys, the micro:bit shows it accordingly. ## Relevant Cases ## Technical Files