[En-Fr] Needs help for my project !

[En]
-Hello, I am in terminal and I work on a project in which I use the card T-rex controller by dagu/gotronic link: https://www.gotronic.fr/pj-1119.pdf
The problem is that I do not understand the code of this card knowing that I do not use all the option, if someone could help me by explaining the code.

[Fr]
-Bonjour, je suis en terminal et je travail sur un projet dans lequel j’utilise la carte T-rex controller de dagu/gotronic lien: https://www.gotronic.fr/pj-1119.pdf- .Le problème c’est que je ne comprend pas le code de cette carte en sachant que je n’utilise pas toutes les option, si quelqu’un pourrait m’aider en m’expliquant le code.
Merci.

TREX_controller.ino (13.7 KB)

Shutdown.ino (584 Bytes)

Servos.ino (1011 Bytes)

RCmode.ino (1.1 KB)

Motors.ino (2.87 KB)

I2Cstatus.ino (2.68 KB)

I2Ccommand.ino (6.16 KB)

I2C_data_packet_contents.ino (1.17 KB)

Encoders.ino (831 Bytes)

DiagnosticMode.ino (2.92 KB)

Bluetooth.ino (5.5 KB)

Accelerometer.ino (1.42 KB)

IOpins.h (2.25 KB)

The ".ino" files are sample Arduino sketches that show you how to use each particular feature. For each feature you want to use, run and study the source code for the example. Then you can start putting parts of examples together.

[En]
For the project I have to do the part on the mobility of the machine:
I receive the information of the color of a cube (R, G, B),
according to the color of the cube, the machine takes a predefined path,

How do I predict a trajectory? (3 in this case)

[Fr]
Pour le projet je dois faire la partie sur la mobilité de l'engin :
-je reçois l'information de la couleur d'un cube (R;G;B),
-selon la couleur du cube, l'engin prend un trajet predéfinie,

Comment je fais pour predefinir une trajectoire ? (3 dans ce cas là)

How do I predict a trajectory? (3 in this case)

Three what? What information do you have to base this prediction on? What are you trying to predict?

[Fr]
On travail a plusieurs sur le projet et mon ami s'occupe de "scanner" avec une camera la couleur d'un cube qui sera devant le robot et il me transmet l'information, donc le cube peut etre soit rouge soit vert sois bleu (R;G:B).
Selon la couleur, je dois faire en sorte que le robot prenne une trajectoire en particulier associer a une des couleurs du cube.
Donc il faut que je prédéfinisse 3 trajet potentiel associer a chaque couleur. ^^

[En]
We work on the project several times and my friend takes care of "scanning" with a camera the color of a cube that will be in front of the robot and he transmits the information to me, so the cube can be either red or green be blue (R; G: B).
Depending on the color, I have to make sure that the robot takes a particular path associated with one of the colors of the cube.
So I need to predefine 3 potential path associated with each color. ^^

Is it the case that you have all of your project working except for a little small piece that depends on you figuring out how to use this card? If so I would expect you to be able to describe the part you need help with much more precisely.

Or is it the case that you are new to programming and have not yet figured out how to do any of the project and have started by enquiring about the most complicated part? (Like crossing La Manche as your introduction to swimming :slight_smile: )

It is much easier to give useful help when we understand the context of your questions and the extent of your own experience.

...R

[Fr]
-Je suis en terminal et je travail sur un projet dans lequel j'utilise la carte T-rex controller. On est 3 dans ce projet (un s'occupe de la confection d'un bras robotique), un autres s'occupe de reconnaitre la couleur d'un cube que l'on doit deplacer et de me transmetre l'information de la couleur.
-Pour ma part je dois m'occuper de la partie mobiliter du drone et donc definir un trajet pour chaque couleur(R;G;B) (par exemple: un en face=>R; un a droite=>G; un a gauche=>B) et donc selon la couleur du cube que me transmet mon ami, le robot doit prendre le trajet qui correspond a la couleur reçus.

-Pour la mise en forme je pense a un algorithme basique mais ca je me debrouillerais, le probleme et dans la confection des 3 trajet, je ne sas pas par quoi commencer. ^^

Pour mes compétences sur la programmation arduino je dirais moyenne mais il n'y a qu'a apprendre si vous voulez bien m'aidez ! ^^

[En]
-I am in terminal and I work on a project in which I use the card T-rex controller. We are 3 in this project (one is responsible for making a robotic arm), another is responsible for recognizing the color of a cube that we must move and send me the color information .
-For my part I have to take care of the mobility part of the drone and thus define a path for each color (R; G; B) (for example: a face => R; a right => G; a left => B) and so depending on the color of the cube that my friend sends me, the robot must take the path that corresponds to the color received.
-For the formatting I think a basic algorithm but that I would fool myself, the problem and in the making of the 3 course, I do not know where to start. ^^

For my skills on arduino programming I would say average but there is only to learn if you want to help me! ^^

the robot must take the path that corresponds to the color received.

Let's concentrate on one color. Describe what you envision the robot arm/robot/drone doing when the color is green. Keep in mind that a robot arm, robot, and drone will do three different things, and you have used all three terms to describe what it is you are building.

I like the approach suggested by @PaulS in Reply #7

...R

[Fr]
Par bras robotique je parle juste d'une pince mais je ne m'en occupe pas du tous.
Et par robot et par drone j'entend la meme chose enfaite c'est une espece de petite voiture avec 4 roues commander par 4 mcc et une carcasse.
Moi je dois m'occuper de le faire "bouger", et oui je pense d'abord me concentré sur une seul couleur,le probleme c'est que je ne sais pas par quoi commencer.

[En]
By robot arm I speak just a clamp but I do not take care of all.
And by robot and drone I hear the same thing, it's a kind of small car with 4 wheels to control by 4 mcc and a carcass.
Me I have to take care of the "move", and yes I think first focused on one color, the problem is that I do not know where to start.

the problem is that I do not know where to start.

Well, let's pretend that the robot is a bit bigger, and you're going to hire someone to drive it.

What should the driver do when someone says "Blue"?

Is the robot supposed to follow something that changes color? Does the blue face of the cube mean turn left, while the read face means turn right and the pink face means keep going and the orange face means stop?

Pretend that we are not familiar with your project, and have no idea what you are trying to do. Because we aren't and don't.

[Fr]
Merci de m'aider, j'y reflechi, j'essaye d'avancer et je reviendrais vers vous la semaine prochaine ^^

[En]
Thank you for helping me, I'm thinking about it, I'm trying to move forward and I'll come back to you next week ^^

PaulS:
Pretend that we are not familiar with your project, and have no idea what you are trying to do. Because we aren’t and don’t.

+1

…R