|Buy from US||Buy from UK||Buy from DE||Buy from IT||Buy from FR||Buy from ES||ここでご購入を！|
Connect IR receiver module to OSOYOO PnP board P8 port with OSOYOO 3-pin PnP cable as below;
NOTES:If you received black color OSOYOO infrared remote control (as following figure),please use another tutorial to test .Please don’t use the OSOYOO IR BLACK category with OSOYOO IR category together .
The another tutorial link is https://osoyoo.com/?p=31936
NOTES:If you use the micro:V2 board for this kits ,please use another tutorial to test .
The another tutorial link is https://osoyoo.com/?p=40028
Step 0: Go to url: https://makecode.microbit.org, click New Project
Step 1. In the Editor controls, click on the Advanced button and then Extensions as following figure.
Step 2. In the Extensions page , enter project URL “https://github.com/osoyoo/OSOYOO_IR_V2.0” in the Search textbox and click on the Search button. The page will show you all the matching extensions based on your search string. Now, click on OSYOO IR to add it into your project .
Step 3. Click on the OSOYOO IR category under Advanced. Drag a connect ir receiver to block and place it inside the on start block.
Step 4. From OSOYOO_IR category, drag and drop an on button pressed block to blank area, set NUM1 from drop-down menu.
Step 5. In the Toolbox, click on the Basic category and Click and drag the show number block over and place it inside the ON BUTTON PRESSED block. Then changed the 0 to 5 .
Step 6. Click on the Basic category again,Drag and drop a pause (ms) block , and place it below show number 5 block (inside the ON BUTTON PRESSED block) , and choose 200 ms from the drop-down menu .
Step 7. make another show number block and pause(ms) 200 block same as Step 6 . place them below previous PAUSE 200 block .change the show number block value from 5 to 4 as following figure:
Step 8. Repeat Step 7 and make three additional show number blocks and another two pause (ms) blocks. Set their value and position as per following figure:
Step 9. Click on the Basic category again,Drag and drop a showed leds block , and place it inside the ON BUTTON PRESSED block , and draw a “crying face” by clicking the dots in the 5×5 matrix as following figure.
Step 10. Click on the OSOYOO IR category again.Drag and drop an on CH minus button pressed block to blank area.
Step 11. Click on the Basic category again,Drag and drop a showed leds block and place it inside the on CH minus button pressed block , and draw a “I” letter by clicking the dots in the 5×5 square as following figure.
Step 12. Click on the Basic category and drag a pause(ms) block and place it below Show “I” LED block . Then choose 1 second from the drop-down menu as following figure:
Step 13. Repeat Step 12 and make another show leds block and Pause (ms) block. use mouse to draw a “love heart” in the 5×5 square and set pause time to 1 second. Put these two blocks inside the on CH minus button pressed block(see following figure).
Step 14. Repeat Step 13 and make another show leds block and pause block. draw a “U” figure in the LED square block , put them inside the on CH minus button pressed block . see following figure:
Step 15.Click on the OSOYOO IR category again.Drag and drop another on CH button pressed block to blank area.
Step 16.Click on the Basic category and drag and drop the show leds block and place it inside the on CH button pressed block. Then click a coin on the squares as following figure.
Step 17. Right-click duplicated from the show leds block over . You will get a duplicated blocks ,and place it inside the on CH button pressed block .and click a small heart on the squares as following figure.
Step 18. Repeat step 17 and make some more show leds blocks as following picture, put them inside on CH button pressed block
Step 19.Click on the OSOYOO IR category again.Drag and drop an on NUM2 button pressed block.
Step 20.Click on the Basic category and drag and drop the show leds block and place it inside the on NUM2 button pressed block.
Step 21. Download this “.hex” file and save it to your MICROBIT disk Driver as following figure.
Below are the full Graphic programming code blocks we have done for you as reference:
|1||BBC micro:bit micro Mainboard||https://osoyoo.store/products/bbc-micro-bit-micro-controller-with-motion-detection-compass-led-display-and-bluetooth?variant=31021023002735|
|2||OSOYOO Expansion board for Micro:bit||https://osoyoo.store/products/pnp-board-for-micro-bit-stem-kitmodel-2018005900?variant=31698997444719|
|3||Green LED Module||https://osoyoo.store/products/green-led-module-for-osoyoo-stem-kit-for-micro-bit-model-2019011500?variant=31957968158831|
|4||Yellow LED Module||https://osoyoo.store/products/yellow-led-module-for-osoyoo-stem-kit-for-micro-bit-model-2019011500|
|5||Red LED Module||https://osoyoo.store/products/red-led-module-for-osoyoo-stem-kit-for-micro-bit-model-2019011500?variant=31957964882031|
|6||White LED Module||https://osoyoo.store/products/white-led-module-for-osoyoo-stem-kit-for-micro-bit-model-2019011500?variant=31816681128047|
|7||Humi & Temp Module||https://osoyoo.store/products/humi-temp-module-for-osoyoo-stem-kit-for-micro-bit-model-2019011500?variant=31957977563247|
|8||Passive buzzer Module||https://osoyoo.store/products/passive-buzzer-module-for-osoyoo-stem-kit-for-micro-bit-model-2019011500|
|9||Flame sensor Module||https://osoyoo.store/products/flame-sensor-module-for-osoyoo-stem-kit-for-micro-bit-model-2019011500|
|10||Red Button Module||https://osoyoo.store/products/red-button-module-for-osoyoo-stem-kit-for-micro-bit-model-2019011500?variant=31958006693999|
|11||Yellow Button Module||https://osoyoo.store/products/yellow-button-module-for-osoyoo-stem-kit-for-micro-bit-model-2019011500?variant=31958014328943|
|14||IR Receiver Module||https://osoyoo.store/products/ir-receiver-module-for-arduino-raspberry-pi-micro-bit-stem-model-2019011500?variant=31958077309039|
|15||Infrared Remote Controller||https://osoyoo.store/products/infrared-remote-controller-for-arduino-raspberry-pi-microbit-stemmodel-2019011500?variant=31958087532655|
|18||Fan Motor module||https://osoyoo.store/products/fan-motor-module-for-osoyoo-stem-kit-for-micro-bit-model-2019011500?variant=31957989359727|
|19||Micro Servo motor||https://osoyoo.store/products/micro-servo-sg90-blue-for-arduino-v2-0-robot-carmodel-lacc200610|
|20||Ultrasonic detector module||https://osoyoo.store/products/ultrasonic-detector-module-for-arduino-raspberry-pi-micro-bit-stemmodel-2019011500?variant=31958286729327|
|21||1602 I2C LED Screen||https://osoyoo.store/products/white-led-module-for-osoyoo-stem-kit-for-micro-bit-model-2019011501?variant=31817047048303|
|22||1 Channel Relay Module||https://osoyoo.store/products/1-channel-relay-module-for-osoyoo-stem-kit-for-micro-bit-model-2019011500?variant=31957950562415|
DownLoad Url osoyoo.com