Difference between revisions of "MDesigner: Live mode"
Line 5: | Line 5: | ||
{| class="wikitable" style="text-align: left;" | {| class="wikitable" style="text-align: left;" | ||
|- | |- | ||
− | ! scope="col"| | + | ! scope="col"| Capability |
! scope="col"| Live Mode | ! scope="col"| Live Mode | ||
! scope="col"| Arduino Mode | ! scope="col"| Arduino Mode | ||
Line 59: | Line 59: | ||
#Under '''Settings''' select '''Flash firmware''' and select '''mCookie'''. Uploading will start. | #Under '''Settings''' select '''Flash firmware''' and select '''mCookie'''. Uploading will start. | ||
#Once complete, select the port mBattery / mCenter+ is connected to again to begin using mDesigner with Microduino modules. | #Once complete, select the port mBattery / mCenter+ is connected to again to begin using mDesigner with Microduino modules. | ||
+ | |||
+ | ==Usage== | ||
=Arduino Mode= | =Arduino Mode= | ||
Line 65: | Line 67: | ||
Arduino Mode can be accessed by click on the '''Arduino Mode''' button. | Arduino Mode can be accessed by click on the '''Arduino Mode''' button. | ||
+ | |||
+ | ==Usage== |
Revision as of 21:28, 16 July 2018
The primary methods of using Microduino modules with mDesigner is with Live and Arduino mode. Each mode as it own pros and cons. Determining the right mode is up to the user per use case. Although, it is recommended to start with "Live" mode for testing then switching to "Arduino" mode later.
Live mode is regular Scratch, but with added blocks which are designed to interact with Microduino modules. This means the user has access to the stage and actor blocks. Projects need to be connected to the computer running mDesigner. mDesigner communicates with the project, namely the Core module, in "real time" over the USB connection by sending commands for the Core module to perform. This means that "Live" mode requires a constant connection with the computer running mDesigner.
Arduino mode acts as a "visual" drag and drop coding editor. The script (code) is converted to "Arduino" code and then compile and uploaded to the attached Core module. This means that code can run even when detached from the computer. The stage and actor are disabled in this mode since the code runs independent of mDesigner.
Capability | Live Mode | Arduino Mode |
---|---|---|
Drag & Drop programming | Yes | Yes |
Supports Microduino modules | Yes | Yes |
Stage and actor enabled | Yes | No |
Real time code testing | Yes | No |
Code compiled and uploaded | No | Yes |
Can run WITHOUT being connect to computer | No | Yes |
Contents
Live Mode
Live mode is the default mode when using mDesigner. It allows the user to use mDesigner as if it was Scratch, but with the ability to use Microduino modules. The user must upload a special firmware on the Core / Core+ module first in order to use this mode.
In this mode, to control the modules, the user will need to have their project connected to the computer sending commands in real time. If the project is disconnected from the computer running mDesigner, then the project will stop receving commands and this stop running.
Communication
- mDesigner running on a computer communicates with mBattery or mCenter+ over a USB connection.
- mBattery or mCenter+ acts as communication bridge between the computer and the Core module. (Core+ module is embedded inside an mCenter+).
- The Core module receives and performs the commands. The core module can also send data back.
Preparation
A firmware is a program that runs on core modules such as the Core and Core+. Live mode requires a special firmware to be uploaded prior to use.
Hardware Preparation
- Ensure drivers are properly installed by following the mDesigner getting started guides
- With a USB cable, connect to the computer -- either an:
- mBattery with a stacked Core / Core+ module.
- mCenter+
- Ensure that mBattery / mCenter+ is powered on.
Upload the Firmware
- Select the port mBattery / mCenter+ is connect to.
- Under Settings select Flash firmware and select mCookie. Uploading will start.
- Once complete, select the port mBattery / mCenter+ is connected to again to begin using mDesigner with Microduino modules.
Usage
Arduino Mode
Arduino is a special mode which can be enabled. It acts as a drag and drop editor for programming. The Stage and Actor is disabled and many Block Categories cannot be used.
The main advantage of using Arduino Mode is that code is geennerated, compile, and uploaded. This means that the user can disconnect the project from a computer and it can still work. Whereas, during Live Mode the user needs to have the project connected in order to receive commands from mDesigner.
Arduino Mode can be accessed by click on the Arduino Mode button.