Page 1 of 1

control robot using Mit app inventor

Posted: Tue Aug 02, 2016 2:45 pm
by Kjell Holen
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

Re: control robot using Mit app inventor

Posted: Tue Aug 02, 2016 3:01 pm
by dazz
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

Re: control robot using Mit app inventor

Posted: Tue Aug 02, 2016 5:24 pm
by Benj
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.

Re: control robot using Mit app inventor

Posted: Tue Aug 02, 2016 8:29 pm
by Kjell Holen
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

Re: control robot using Mit app inventor

Posted: Tue Aug 02, 2016 9:06 pm
by Kjell Holen
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?

Re: control robot using Mit app inventor

Posted: Wed Aug 03, 2016 10:00 am
by Benj
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.