control robot using Mit app inventor

For Formula AllCode users to discuss projects, programs, and any other issues related to the Formula AllCode robotics platform.

Moderators: Benj, Mods

Kjell Holen
Posts: 7
Joined: Sun Apr 24, 2016 2:32 am
Been thanked: 2 times
Contact:

control robot using Mit app inventor

Postby Kjell Holen » Tue Aug 02, 2016 2:45 pm

hi
I am trying to learn MIT App inventor.
Are reading page 27. Have got the FormulaAllcodeMacros.
ON the button of this page are 4 prog.
I do not understang how you got the first "item"with when condtion "when" and with that chape
Could you plase explain that.

Wen I got the robot a few month ago I upgraded to v2. went fine then. when I follow procedure it do not work now.
I can not do it again. USe usb , following procedute I can not click
on send button. It is not bould. Switch to bluetoth I can click on send , but the prog hang.
Any ideawhat may be wrong.
rgds

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 514 times
Been thanked: 467 times
Contact:

Re: control robot using Mit app inventor

Postby dazz » Tue Aug 02, 2016 3:01 pm

Hi
Firstly welcome to the forums, can you expand further ie what book are you reading and can you attach your flowchart to the forum as without it , we will struggle to help

Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

User avatar
Benj
Matrix Staff
Posts: 14574
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4602 times
Been thanked: 4241 times
Contact:

Re: control robot using Mit app inventor

Postby Benj » Tue Aug 02, 2016 5:24 pm

Hello,

I think the book is the Formula AllCode course available here: http://www.matrixtsl.com/resources/file ... Course.pdf

Page 27 of the course is showing "Scratch" not "App Inventor" They both use the Blockly programming style so easy to get the mixed up. App inventor is pages 19 to 21.

We have some App Inventor examples here if this helps: http://www.matrixtsl.com/formula-allcode/downloads/


When you power on the robot do you get anything? If not then what about when you press the reset button while powered on?

The LED near the USB connector should flash and the mLoader software should then detect the robot and be able to re-program it.
These users thanked the author Benj for the post:
dazz (Wed Aug 03, 2016 10:47 am)
Rating: 5.26%
 

Kjell Holen
Posts: 7
Joined: Sun Apr 24, 2016 2:32 am
Been thanked: 2 times
Contact:

Re: control robot using Mit app inventor

Postby Kjell Holen » Tue Aug 02, 2016 8:29 pm

Thanks for reply.
This is link to the document: http://www.matrixtsl.com/resources/file ... Course.pdf
Just a copy from the first lines:

FORMULA II ALLCODE
Robotics Course
Instructional Guide
Page 2
Copyright © 2016 Matrix Technology Solutions Limited
http://www.matrixtsl.com
Contents Introduction
Getting started
Take the Tour - Check out my body parts Language Neutral - Application Program Interface
Pseudo-code - A simple programming aid
Hardware setup
Windows PC Android Tablet / Phone
Raspberry Pi and Li

To me it is very nice doc. Have spent many hours last week, I hope to get so fare that I can use " MIT app inventor" as a "tool" to control the robot,
It is very dif to what I am used to. Have read many tutorial.

Back to my main question. The heading of this page is:

Controlling the robot Using App Invent Robotics Course Instructional Guide
Controlling the robot Using Scratch page 27
On the button off p 27 is 4 program.
I do not understand where the orange one is copid from. and how it have got that shape.
When understand that , i think I may be abel to make some smat prog for the robot

rgds
These users thanked the author Kjell Holen for the post:
dazz (Wed Aug 03, 2016 10:47 am)
Rating: 5.26%
 

Kjell Holen
Posts: 7
Joined: Sun Apr 24, 2016 2:32 am
Been thanked: 2 times
Contact:

Re: control robot using Mit app inventor

Postby Kjell Holen » Tue Aug 02, 2016 9:06 pm

Thank Benj for reply. I mixed those 2, sorry for that.
When I press switch near usb it start flashing. when finish the led is turnd on with a menu.
one more test. started mLoader did first part. ready to send. prest reset and send is bould .
the lead is stil blinking after 20 min. Should I click on send buttos while it is flashing?
These users thanked the author Kjell Holen for the post:
Benj (Wed Aug 03, 2016 9:56 am)
Rating: 5.26%
 

User avatar
Benj
Matrix Staff
Posts: 14574
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4602 times
Been thanked: 4241 times
Contact:

Re: control robot using Mit app inventor

Postby Benj » Wed Aug 03, 2016 10:00 am

Hello,

The flashing is your indicator that the robot is in programming mode. When connected to the PC using a USB cable and the mLoader software is running the LED will flash forever until you send a new program, click the execute button or close the mLoader software.

When programming via Bluetooth I think mLoader should be able to auto reset the robot into programming mode as long as it is switched on. However it's been a while since I last played with these robots so I'm a little foggy on this. You might have to manually reset to confirm you wish to re-program.