Utilisation d'un Keypad

Forum de support pour les locuteurs de la langue française qui souhaitent écrire dans leur langue maternelle.

Moderator: Benj

Post Reply
romino537
Posts: 5
Joined: Thu Feb 09, 2017 2:54 pm
Contact:

Utilisation d'un Keypad

Post by romino537 »

Bonjour,
je suis actuellement en pleine construction d'une machine à diluer et je m'attaque à la programmation !

Le problème, c'est que j'ai énormément de mal à faire fonctionner le clavier ! :(
Un ami m'a parlé que les macros du clavier fournis par Flowcode ne permettent pas de faire fonctionner le clavier physique mais uniquement le simulé.

Ce que je souhaite faire, c'est acquérir trois données (la concentration de la solution mère, la concentration souhaitée pour la solution fille et le volume souhaité pour cette dernière), afin que la machine fasse les calculs nécessaires pour faire tourner les deux pompes péristaltiques à un certain rythme.

Pourriez vous m'indiquer comment pourrais-je faire ?

Pour infos :
La machine
- Une carte à PICMicros équipé d'un Microship 16F1937
- Un écran LCD
- Le fameux clavier (EB014-00-1)
- Une carte à relais pour commander les moteurs des pompes péristaltiques.
- Des débitmètres à impulsions connectés directement à la carte (on verra plus tard pour cela !)

J'utilise Flowcode v4 For PICMicros

N'hésitez surtout pas à me demander si vous voulez des infos supplémentaires !

Merci d'avance,
romino537.
Merci d'avance

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

Re: Utilisation d'un Keypad

Post by Benj »

Bonjour,

Je ne connais aucun problème avec le clavier en cours d'exécution sur le matériel. Pouvez-vous poster votre programme jusqu'à présent et dire quels problèmes spécifiques que vous rencontrez avec le clavier?



Hello,

I'm not aware of any problems with the keyboard running on hardware. Can you post your program so far and say what specific problems you are having with the keyboard?

romino537
Posts: 5
Joined: Thu Feb 09, 2017 2:54 pm
Contact:

Re: Utilisation d'un Keypad

Post by romino537 »

Benj wrote:Bonjour,

Je ne connais aucun problème avec le clavier en cours d'exécution sur le matériel. Pouvez-vous poster votre programme jusqu'à présent et dire quels problèmes spécifiques que vous rencontrez avec le clavier?



Hello,

I'm not aware of any problems with the keyboard running on hardware. Can you post your program so far and say what specific problems you are having with the keyboard?

Hello and thanks for your aswer,
The problem is that I'm not sure that my program which run on Flowcode can run on hardware and for me, my program looks to be verry heavy, just to acquire 3 or 4 characters ...

I'll post you the program tomorow (french hour GMT+1).

Thanks again
Have a nice evening,
romino537

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

Re: Utilisation d'un Keypad

Post by Benj »

Hello,

Ok post the file when you have it available and we will have a look for you.

This example on the Wiki may be useful for you as it uses a Keypad and a circular buffer to allow you to enter a multi digit code for an alarm / entry system.
http://www.matrixtsl.com/wikiv7/index.p ... try_System

romino537
Posts: 5
Joined: Thu Feb 09, 2017 2:54 pm
Contact:

Re: Utilisation d'un Keypad

Post by romino537 »

Benj wrote:Hello,

Ok post the file when you have it available and we will have a look for you.

This example on the Wiki may be useful for you as it uses a Keypad and a circular buffer to allow you to enter a multi digit code for an alarm / entry system.
http://www.matrixtsl.com/wikiv7/index.p ... try_System
Hello,
please follow this link to download my program ;)

https://share.orange.fr/#hOsNOls78i254daf4187

Tell me what do you think about this :)

Have a nice day,
romino537

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

Re: Utilisation d'un Keypad

Post by Benj »

Hello Romino,

You can attached Flowcode projects directly to the forum post by using the upload attachment tab when posting a reply. It is located below the reply text field.

Here is your file,
machine_a_diluer_version_alpha_16F1937.fcf
(27.68 KiB) Downloaded 302 times
What exactly do you want your program to do?

romino537
Posts: 5
Joined: Thu Feb 09, 2017 2:54 pm
Contact:

Re: Utilisation d'un Keypad

Post by romino537 »

Benj wrote:Hello Romino,

You can attached Flowcode projects directly to the forum post by using the upload attachment tab when posting a reply. It is located below the reply text field.

Here is your file,
machine_a_diluer_version_alpha_16F1937.fcf
Thanks for your help.

Have you read my program ?

Thanks you again,
romino537

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

Re: Utilisation d'un Keypad

Post by Benj »

I've had a look but wasn't sure exactly what it should be doing.

romino537
Posts: 5
Joined: Thu Feb 09, 2017 2:54 pm
Contact:

Re: Utilisation d'un Keypad

Post by romino537 »

Benj wrote:I've had a look but wasn't sure exactly what it should be doing.
That I want :
Collect 3 datas by the Keypad :
- The concentration of the initial product.
- The quantitiy which is wanted for the final products
- The concentration wanted for the final product

With these datas, I'll do some calculations to master my pumps' speed.

Do you see aproxymately what my machine should do ?

Post Reply