formula allcode

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

Moderators: Benj, Mods

Bill Felker
Flowcode v5 User
Posts: 47
Joined: Tue Sep 24, 2013 7:21 pm
Has thanked: 18 times
Been thanked: 12 times
Contact:

formula allcode

Postby Bill Felker » Mon Feb 22, 2016 10:54 pm

I got my buggy today and now wonder where I can find out what is connected to what on the buggy. And when will the coarse online be available? Thanks, Bill

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: formula allcode

Postby Benj » Tue Feb 23, 2016 11:18 am

Hello Bill,

We should be publishing the course on the website later today.

Here are the chip connections.
FA_Connections.jpg
(179.96 KiB) Downloaded 18601 times

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: formula allcode

Postby Benj » Tue Feb 23, 2016 6:51 pm

Right we have a file we are now happy with and the examples have been checked and tested. We have one more pass to do tomorrow and a few tweaks to the FA web page and we will get all the content up there including the course, the documentation and the API examples.

For reference we currently have API examples for the following programming languages.
Android, AppInventor, C#, C++, Flowcode6, Labview, Matlab, Python, Scratch, VB
These users thanked the author Benj for the post (total 3):
Bill Felker (Tue Feb 23, 2016 6:53 pm) • kersing (Tue Feb 23, 2016 7:15 pm) • medelec35 (Tue Feb 23, 2016 7:37 pm)
Rating: 15.79%
 

Bill Felker
Flowcode v5 User
Posts: 47
Joined: Tue Sep 24, 2013 7:21 pm
Has thanked: 18 times
Been thanked: 12 times
Contact:

Re: formula allcode

Postby Bill Felker » Wed Feb 24, 2016 10:14 pm

OK , I've tried to load a program and I had no success . I am going out on a limb and thinking that the startup program you guys have in is an OS that I need to go into API mode to load a program? TIA :?: Bill

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: formula allcode

Postby Benj » Thu Feb 25, 2016 1:43 pm

Hi Bill,

Sorry for the delay.

I can confirm that the course and examples will be live today. I'll make an announcement on the forums as soon as it's up.

There are two modes of working with the Formula AllCode.

1) Using the inbuilt API firmware to control the robot remotely using Flowcode6, Android, Scratch, Python etc.

2) Using Flowcode or C to reprogram the firmware on the robot. The latest mLoader software that comes with Flowcode 6.1.3 should allow you to do this. Pressing the reset button on the Formula AllCode puts it into Bootloader mode which allows mLoader to detect the robot enabling you to set the Bluetooth name/key and change the firmware.

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: formula allcode

Postby Benj » Thu Feb 25, 2016 6:06 pm

Hello,

The course is now available to download from here.
http://www.matrixtsl.com/resources/getr ... php?id=950

We haven't managed to get the download page put together just yet but the files can be found here. Hopefully this might be fixed very soon.
http://www.matrixtsl.com/lc_index.php

Type FA_ into the Filter Text box to bring up just the example files.

FA_FC - Flowcode
FA_AI - App Inventor
FA_C# - C#
FA_CP - C++
FA_VB - VB
FA_LV - Labview
FA_ML - Matlab

Scratch and Python examples are still pending but should arrive soon.
These users thanked the author Benj for the post:
medelec35 (Thu Feb 25, 2016 6:34 pm)
Rating: 5.26%
 

Bill Felker
Flowcode v5 User
Posts: 47
Joined: Tue Sep 24, 2013 7:21 pm
Has thanked: 18 times
Been thanked: 12 times
Contact:

Re: formula allcode

Postby Bill Felker » Sun Mar 06, 2016 12:17 am

OK frustration is building. I have had problems loading a program threw flowcode into the robot threw bluetooth. Very rarely do I get it to preform as I want it to. In your lessons you really do not put enough effort into instructing how to use it . Most program I try to run will not see the com4 for the robot only com3 which is the input to the computer. Here is an example of what I've tried to do and in the simulation on the screen it works but will not upload to the buggy. :cry: Bill
Attachments
octigon.fcfx
(8.95 KiB) Downloaded 791 times

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: formula allcode

Postby Benj » Mon Mar 07, 2016 5:55 pm

Hello Bill,

If the COM4 port is open by another application, instance of Flowcode or has simply become locked then Formula AllCode will not show the port in the list.

To avoid locking the port my advise is to always close the port before switching off the robot. Stopping the Flowcode sim will automatically close the port for you.

This also goes for switching between Flowcode and the programming software mLoader.

I have created a newer version of the API component here which has a refresh button allowing you to refresh the port list without having to close and re-open your project.

Simply copy the file into your "Flowcode 6/Components" directory to load the changes.

FormulaAllCodeAPI.fcpx
(72.76 KiB) Downloaded 877 times


I noticed that in your attached program you have two instances of both the FA and FA_API components. Maybe this is causing some of the headaches you mentioned? For some reason the components on the Dashboard panel seem to be invisible (at least on my machine) so I will look into why this is happening.

If the COM port does become locked then make sure nothing is holding the port open, switch the robot off and back on and try again. If this fails then sometimes waiting a minute or two or unplugging and replugging the Bluetooth dongle (if you have one) can help and other times restarting Windows fixes the problem. If you don't have a USB Bluetooth dongle then you can usually switch Bluetooth off and back on for the same effect as unplugging and replugging.
These users thanked the author Benj for the post:
Bill Felker (Wed Mar 09, 2016 12:54 am)
Rating: 5.26%
 

Bill Felker
Flowcode v5 User
Posts: 47
Joined: Tue Sep 24, 2013 7:21 pm
Has thanked: 18 times
Been thanked: 12 times
Contact:

Re: formula allcode

Postby Bill Felker » Tue Mar 08, 2016 11:37 pm

Thanks for the guidance Ben, it seems to be that you can only have the API open if you want to run the cart threw bluetooth. I redid my octagon program and other than not stopping at the start point it ran fine. Now onto more advance things. :D Bill
Attachments
octigon.fcfx
(4.74 KiB) Downloaded 806 times
These users thanked the author Bill Felker for the post:
Benj (Wed Mar 09, 2016 10:46 am)
Rating: 5.26%
 

Nitin
Posts: 1
Joined: Tue Mar 15, 2016 2:56 pm
Contact:

Re: formula allcode

Postby Nitin » Wed Mar 16, 2016 10:21 am

Hello,

I am working on formula all code, could you help me in programming the line follower or obstacle avoider using scratch.
because I didn't find the sensor blocks in Scratch for Formula ALL code.

Regards
Nitin

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: formula allcode

Postby Benj » Fri Mar 18, 2016 12:26 pm

Hello Nitin,

Are you using the Scratch examples from here?
http://www.matrixtsl.com/formula-allcode/downloads/

The sensors are automatically polled in scratch so you should simply be able to use the existing variable values.

I haven't been much involved with scratch but I can have a look into it for you if you are still struggling to make it work.

Bill Felker
Flowcode v5 User
Posts: 47
Joined: Tue Sep 24, 2013 7:21 pm
Has thanked: 18 times
Been thanked: 12 times
Contact:

Re: formula allcode

Postby Bill Felker » Sun Mar 20, 2016 7:29 pm

What is Formula AllCode Firmware V2 for ? Do we need to upgrade our buggies? :) :) Bill

Bill Felker
Flowcode v5 User
Posts: 47
Joined: Tue Sep 24, 2013 7:21 pm
Has thanked: 18 times
Been thanked: 12 times
Contact:

Re: formula allcode

Postby Bill Felker » Sun Mar 20, 2016 8:08 pm

OK I've tried the proximity program and could not get it to run on bluetooth. I wrote my own and to work like your program . Is there a way to get the buggy to speak the message? As it is now my laptop speaks message with the ir trigger (also works on light read) .I am thinking that maybe more people could load up their programs here so that others can learn from their progress. Anyway thanks for this toy it is fun when I get to play with it. :D :D Bill
Attachments
Read_ir2_give message.fcfx
(10.31 KiB) Downloaded 698 times

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: formula allcode

Postby Benj » Mon Mar 21, 2016 11:01 am

Hello Bill,

What is Formula AllCode Firmware V2 for ? Do we need to upgrade our buggies?


The v2 firmware covers a few minor bugs we found in the v1 API firmware and also has additional API functions for use with reading sensors in Scratch.

You can upgrade the firmware using mLoader using the USB or Bluetooth connection.

Is there a way to get the buggy to speak the message?


Yes this should be possible but using Phonemes rather than the RealSpeak functionality in the Flowcode sim. I will see if I can cobble together an example for this.

We would love for users to share their programs on this forum so if you write a program you are happy with then we would love to see it.
These users thanked the author Benj for the post:
Bill Felker (Mon Mar 21, 2016 5:21 pm)
Rating: 5.26%
 

DeepeshKH
Posts: 2
Joined: Thu Mar 31, 2016 7:42 am
Contact:

Re: formula allcode

Postby DeepeshKH » Thu Mar 31, 2016 7:49 am

Hello Everyone!

I have a issue with Formula AllCode buggy or robot.
It's not working without the charging cable. The buggy does not switches on without the charging cable. It shows me it's charged 90% only when I plug in.
Need urgent help.

Thanks and regards
Deepesh

User avatar
LeighM
Matrix Staff
Posts: 1962
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 474 times
Been thanked: 674 times
Contact:

Re: formula allcode

Postby LeighM » Fri Apr 01, 2016 9:20 am

Is the battery connected?
It is the black and red cable with two pin connector.
It should be plugged into the two pin socket on the main board.
(The buggy is shipped with this disconnected)

DeepeshKH
Posts: 2
Joined: Thu Mar 31, 2016 7:42 am
Contact:

Re: formula allcode

Postby DeepeshKH » Sun Apr 03, 2016 12:20 pm

Hello Everyone,

Thank you for the support. The previous issue was with the battery connector wire. Now It's solved! :-)
As I'm new with Formula AllCode, I was working with the examples available on the site.
I would like request support for Android Eclipse example. I'm using Samsung Galaxy Tab A (Android 5.0.2). The .apk is installed properly and the application is running fine.
But after connecting the Formula Allcode robot there's no moment on the robot. I have tried connecting from both secured and insecure connections.

Need Help!

Thank you

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: formula allcode

Postby Benj » Mon Apr 04, 2016 5:23 pm

Hello,

I cobbled together the Android Eclipse example from another application so could be I didn't do it properly. I'll have a play and see if I can make it work correctly for you.

I didn't re-build the APK file after making changes so this could be the issue if you've not compiled the code.

I'll have a look and re-build the APK so it's good to go.

Karl
Posts: 1
Joined: Fri May 27, 2016 8:41 am
Contact:

Re: formula allcode

Postby Karl » Fri May 27, 2016 8:51 am

Hello,

I am the owner of a Formula Allcode Robot Buggy. Until now, I could not manage, to let the robot run with a scatch program :(
Is the somewhere who can tell me step by step what I have to do and how I connect the robot with my PC - Windows 8.

Thank you :)

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

Re: formula allcode

Postby Kjell Holen » Tue Dec 27, 2016 8:45 am

what program can I use to read .fcpx
rgds

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 381 times
Been thanked: 716 times
Contact:

Re: formula allcode

Postby JohnCrow » Tue Dec 27, 2016 12:06 pm

Hi Kjell

The fcpx files are the compiled components used in flowcode and cannot be read in the same was as for example a "C" source code file.

You can look at the code using an editor such as UltraEdit (my choice), but all you will see us blocks of hex numbers.
Changing the file will almost certainly result in it failing to work.
1 in 10 people understand binary, the other one doesn't !

sundgau
Posts: 65
Joined: Mon Sep 26, 2011 4:18 pm
Has thanked: 5 times
Been thanked: 10 times
Contact:

Re: formula allcode

Postby sundgau » Mon Apr 16, 2018 4:49 pm

Hello,

Some errors on the direction of repositionable pins

Bruno

FA_Expansion2 (modif).jpg
FA_Expansion2 (modif).jpg (83.5 KiB) Viewed 4896 times


Benj wrote:Hello Bill,

We should be publishing the course on the website later today.

Here are the chip connections.
FA_Connections.jpg
These users thanked the author sundgau for the post:
Benj (Tue Apr 17, 2018 4:55 pm)
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: formula allcode

Postby Benj » Tue Apr 17, 2018 4:55 pm

Hi Bruno,

Many thanks for letting us know.

sundgau
Posts: 65
Joined: Mon Sep 26, 2011 4:18 pm
Has thanked: 5 times
Been thanked: 10 times
Contact:

Re: formula allcode

Postby sundgau » Wed May 16, 2018 10:04 am

Hello,
another error that can be problematic if we use the connector A7 servo motor to communicate with another system; it's not A7/AN23/RPI22 but A7/AN23/RPI23
Screen Shot 05-16-18 at 10.44 AM.PNG
Screen Shot 05-16-18 at 10.44 AM.PNG (176.6 KiB) Viewed 4622 times

Bruno

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: formula allcode

Postby Benj » Wed May 16, 2018 11:07 am

Hi Bruno,

Many thanks for letting us know. I have now made these changes to the image and curriculum, I'll get it changed on the website ASAP.

Thanks again.