Trouble programming IR buttons in 3.2


#21

Hi I’m trying to test this program for robot arm and to find the block for"set keypressed to" and “key pressed” but I could not find them in mBlock v.3.4.6. Could you let me know how to find them?


What is the best way to control robot arm in the starter kit IR version?
#22

KEYPRESSED is a variable that is created in the Data & Blocks Palette.

The set [variable] to block will appear in that palette after you create the KEYPRESSED variable.

Note that you have to use the variable block from the Data & Blocks palette if you want to read the value. If you just type in KEYPRESSED instead it will treat KEYPRESSED as a literal string.


What is the best way to control robot arm in the starter kit IR version?
#23

I cannot find the “infrared receiver (Port 6) (Arduino Mode Only)” block. Can you please help me?
Thanks,


#24

Hi adriacliment,

Which mainboard do you have?
If it is the me Orion board, you need choose the board option as Starter/Ultimate (Orion) on mBlock software, then you can find the the “infrared receiver (Port 6) (Arduino Mode Only)” block under Robot.