Trouble getting to work: IR Remote + Arduino Uno + mBlock Drag & drop


#1

I am trying to use an IR Remote with Ardunio Uno with Drag-and-drop programming in mBlock Software.

My question is - how to get input from the remote?

There are so many device extentions for IR Remote, I tried the one below but i did not work. Is there a different extension one would recommend?

image

Installing the extention above gave these two controls, but they dont work.
image


#2

I developed that extension! Why is it not working? It works fine for me…


#3

oh wow, thank you for responding @Best_codes.

Below is my error and code:

Full error:

Command failed: avr-toolchain\bin\avr-g++ -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Users\Public\Programs\mblock\resources\app\mlink-v1\external\arduino\avr-library\variants\standard" -I"avr-library/cores/arduino" -I"arduino-libraries/makeblock/src" -I"arduino-libraries/makeblock/src/utility/avr" -I"avr-library/libraries/Wire/src/utility" -I"avr-library/libraries/Wire/src/" -I"avr-library/libraries/EEPROM/src/" -I"avr-library/libraries/SPI/src/" -I"avr-library/libraries/SoftwareSerial/src/" -I"arduino-libraries/arduino/WiFi/src/" -I"arduino-libraries/arduino/SD/src/" -I"arduino-libraries/arduino/Bridge/src/" -I"arduino-libraries/arduino/Temboo/src/" -I"arduino-libraries/arduino/Servo/src/" -I"arduino-libraries/arduino/Ethernet/src/" -I"arduino-libraries/arduino/TFT/src/" -I"arduino-libraries/arduino/SpacebrewYun/src/" -I"arduino-libraries/arduino/LiquidCrystal/src/" -I"arduino-libraries/arduino/GSM/src/" -I"arduino-libraries/arduino/Adafruit_Circuit_Playground/" -I"arduino-libraries/arduino/Adafruit_Circuit_Playground/utility/" -I"arduino-libraries/arduino/Esplora/src/" -I"arduino-libraries/arduino/Firmata/" -I"arduino-libraries/arduino/Firmata/utility/" -I"arduino-libraries/arduino/Keyboard/src/" -I"arduino-libraries/arduino/Mouse/src/" -I"arduino-libraries/arduino/Robot_Control/src/" -I"arduino-libraries/arduino/Robot_Motor/src/" -I"arduino-libraries/arduino/RobotIRremote/src/" -I"arduino-libraries/arduino/Stepper/src/" “C:\Users\nilashis\mblock-avr\temp\build\code.cpp” -o “C:\Users\nilashis\mblock-avr\temp\build\code.o” C:\Users\nilashis\mblock-avr\temp\build\code.cpp: In function ‘int gettype()’: C:\Users\nilashis\mblock-avr\temp\build\code.cpp:26:8: error: ‘results_RC5’ was not declared in this scope if(results_RC5.decode_type>=1&&results_RC5.decode_type<=13){ ^~~~~~~~~~~ C:\Users\nilashis\mblock-avr\temp\build\code.cpp:29:12: error: cannot convert ‘String’ to ‘int’ in return return IR_type; ^~~~~~~ C:\Users\nilashis\mblock-avr\temp\build\code.cpp:31:28: error: a function-definition is not allowed here before ‘{’ token void _delay(float seconds) { ^ C:\Users\nilashis\mblock-avr\temp\build\code.cpp:36:14: error: a function-definition is not allowed here before ‘{’ token void setup() { ^ C:\Users\nilashis\mblock-avr\temp\build\code.cpp:62:14: error: a function-definition is not allowed here before ‘{’ token void _loop() { ^ C:\Users\nilashis\mblock-avr\temp\build\code.cpp:65:13: error: a function-definition is not allowed here before ‘{’ token void loop() { ^ C:\Users\nilashis\mblock-avr\temp\build\code.cpp:67:1: error: expected ‘}’ at end of input } ^

Failed to compile file code.cpp

arduino build failed.


#4

Are you using this device?
image

Here is an example:


I’m not sure if the signal received type block works, I’ll update the extension soon!


#5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.