Skip to content

1010Technologies/mBlock-IRRemote

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mBlock-IRRemote

Based upon package by Ahmed Abdelhameed([email protected]) https://github.com/Ahmedfcis/mBlock_Arduino_Rover

Rover extension aims to enable building simple Rover Robot with Arduino and mBlock, following are block types that Rover extension will implement:

  • Infra-Red (IR) blocks, which will enable receive and decode IR remote signal. these blocks depend on ![Arduino-IRremote] (https://github.com/z3t0/Arduino-IRremote) version 0.1, which come with Arduino IDE.

Install

To install, open mBlock IDE,

  • From Extensions menu item
  • Open Manage Extensions (short-cut Ctrl+shift+T)
  • Click Available button and search for "HyperDuino"

The current version runs only in Arduino mode. In other words, you need to click Upload to Arduino button in Arduino mode to upload and run your program.

Build and Upload

Instructions on creating extensions and adding blocks: http://download.makeblock.com/mblock/mblock_extension_guide.pdf

Within the mBlock-IRRemote directory:

zip --exclude \*.git\* \*.vscode\* -r irremote.zip mblock_ext

To add the new extension to mBlock, visit http://www.mblock.cc/extensions

Infra-Red (IR) blocks

Infra-Red (IR) blocks provide the following blocks,

Block Description
Set Remote Receiver Pin ( pin_id ) Configure the library to run on pin pin_id, should be called after Arduion Program block and before forever block
Is Remote ( Key_id ) Key Pressed check the key with key_id is pressed, return boolean value (true/false), should be used within if ... then block in forever block scope
Is Remote ( Key_id ) Key Released check the key with key_id press released, return boolean value (true/false), should be used within if ... then block in forever block scope

Infra-Red (IR) Conflict

Infra-Red (IR) blocks functionaly depend on Arduino Timer2, which will conflict with the following block,

  • play tone pin ( pin_id ) on note ( note ) beat ( beat ), you should not use it with Infra-Red (IR) blocks
  • set pwm pin ( pin_id ) output as ( level ), don't call pwm on pin 3 or 11

About

Rover extension aims to enable building simple Rover Robot with Arduino and mBlock

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 73.1%
  • C 24.0%
  • JavaScript 2.8%
  • Shell 0.1%