
Page 18
Copyright © 2017 Matrix Technology Solutions Limited
www.matrixtsl.com
Controlling the MIAC
Using App Inventor
MIAC AllCode
Instructional Guide
Currently AppInventor only supports the Bluetooth form of communications.
Your first program
Each time you want to start a new project, follow these steps:
1. Load the template file by clicking ‘My Projects’ from the App
Inventor menu and selecting the ‘MIACMacros’ project.
2. Save this template as a new file by selecting ‘Save project
as…’ from the ‘Projects’ menu and then entering an
appropriate name for your project.
3. Click ‘Screen1’ from the ‘Components’ pane and set
the ‘AppName’ and ‘Title’ in the ‘Properties’ pane to
something suitable.
4. Drag a button from the User Interface panel onto the
Viewer screen and alter its text to read “Relay 1 On”.
Also rename the button so it reads “R1On”. Do the
same again to create another button called “Relay 1
Off” with the name “R1Off”. Repeat for the other
relays.
5. Switch to ‘Blocks’ mode and click on the ‘R1On’
object - a list of icons will appear.
Drag the “when R1On.Click” icon onto your
program. Do the same again but this time click on
the ‘R1Off’ object. Repeat for the other switches.
Summary of Contents for MI3932 MIAC AllCode
Page 1: ......