Page 1 of 1

Utilisation d'un Keypad

Posted: Thu Feb 09, 2017 3:08 pm
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

Re: Utilisation d'un Keypad

Posted: Fri Feb 10, 2017 12:46 pm
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?

Re: Utilisation d'un Keypad

Posted: Fri Feb 10, 2017 9:48 pm
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

Re: Utilisation d'un Keypad

Posted: Mon Feb 13, 2017 4:58 pm
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

Re: Utilisation d'un Keypad

Posted: Thu Feb 16, 2017 12:18 pm
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

Re: Utilisation d'un Keypad

Posted: Thu Feb 16, 2017 12:58 pm
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 367 times
What exactly do you want your program to do?

Re: Utilisation d'un Keypad

Posted: Thu Feb 16, 2017 1:04 pm
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

Re: Utilisation d'un Keypad

Posted: Thu Feb 16, 2017 1:06 pm
by Benj
I've had a look but wasn't sure exactly what it should be doing.

Re: Utilisation d'un Keypad

Posted: Thu Feb 16, 2017 1:21 pm
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 ?