Page 1 sur 7

Nouveau firmware en beta test - New firmware in beta test

Posté : lun. 13 févr. 2023 16:42
par Jacques
Bonjour à tous,
le code de l'arpschuino32 est en constante évolution. En ce moment je suis en train de revoir complétement la partie moteur pas à pas.
La library Arpstepper se base maintenant sur AccelStepper et prend le nom de ArpAccelStepper.
On bénéficie maintenant d'une accélération et décélération pour un mouvement beaucoup plus souple.
Çà permet aussi de tourner plus vite, au final, quand l'inertie est importante.
On peut régler l’accélération dans l'interface en RPM par seconde.
tout à l'air stable, mais j'ai besoin de vos retours et de vos suggestions etc...
COMMENT DEVENIR BETA TESTEUR ?
Rien de plus simple, il suffit de faire une mise à jour vers la version 1.1.4
http://arpschuino.fr/update-arpschuino32.php
Le code source est aussi disponible :
https://owncloud.arpschuino.fr/index.ph ... D4MwVXPXkS
Et laissez nous un message, une question, tous les avis comptent
A bientôt ;)

Re: Nouveau firmware en beta test - New firmware in beta test

Posté : lun. 13 févr. 2023 16:46
par Jacques
Hello everyone,
the arpschuino32 code is constantly evolving. Right now I'm completely rewriting the stepper motor part.
The Arpstepper library is now based on AccelStepper and takes the name of ArpAccelStepper.
We now benefit from acceleration and deceleration for a much smoother movement.
It also allows you to turn faster, in the end, when the inertia is high.
The acceleration can be set in the interface in RPM per second.
everything seems stable, but I need your feedback and suggestions etc...
HOW TO BECOME A BETA TESTER?
Nothing could be simpler, just update to version 1.1.4
http://arpschuino.fr/update-arpschuino32_e.php
The source code is also available:
https://owncloud.arpschuino.fr/index.ph ... D4MwVXPXkS
And leave us a message, a question, all feedback counts
See you soon ;)

Re: Nouveau firmware en beta test - New firmware in beta test

Posté : lun. 6 mars 2023 00:54
par Micropuller
Hi Jacques,
I just uploaded version 1.1.4, but I'm under the impression I did something wrong.
I downloaded the source code from the site and used Visual Studio Code to upload it to the Arpschuino (as I still can't get the automatic update function to work).
When I let PlatformIO perform an "Upload and Monitor", after the upload ends and the board is reset, It reads "Version 1.1.4 in progress", so it seems like the update was succesfull, but the interface still looks the same (I can't set the acelleration for instance) and on the "tools" tab, it still says I'm on version 1.0.

Re: Nouveau firmware en beta test - New firmware in beta test

Posté : lun. 6 mars 2023 17:43
par RitoonL
i think Jacques replied by e-mail. You need to upload filesystem image in platfomIO

in VSCODE, select platformIO tab (ant icon), then click upload filsystem image (usb>serial must be connected to the arpschuino). Press boot when prompted.

We talked with jacques this afternoon, it seems we need to do a tutorial for this, added in todo list.

Regards,

Eric

Re: Nouveau firmware en beta test - New firmware in beta test

Posté : lun. 6 mars 2023 22:02
par Micropuller
Thanks! I got it working.

If I'm not mistaken, the homing function hasn't been added to this version of the firmware yet?

I tried to add the same code that worked for me in 1.0.1, but it threw two errors:
- too few arguments in function call (referring to: "m_stepper.refresh(255, 50);")
- expected a member name (referring to: "m_stepper.continuous();")

So I've tried to figure ot what I had to change.
I now have this:

Code : Tout sélectionner

    Serial.println("Homing ...");

    uint8_t zeroSwitch[4]{Arp8,Arp9,Arp10,Arp11};

    for (int i=0; i < 4; ++i) 
    {           
	pinMode(zeroSwitch[i], INPUT_PULLUP);
        m_stepper[i].refresh(255, 50, 0);//we define a direction of rotation (255, to go in the other direction : 0), and a speed (here 30 for a slow speed) 
        if (m_stp_active[i]==true && m_action[i]==0) //m_action[i]==0 mean perform mode
        {            
            while (digitalRead (zeroSwitch[i]))//as long as the limit switch is not pressed ((! zeroSwitch) reverses the behavior) 
            {
                m_stepper[i].run();//turn !  
                delayMicroseconds(5);              
            } 
        }  
    }    
    Serial.println("end of homing!");
    
Where I changed "m_stepper.refresh(255, 50);" to "m_stepper.refresh(255, 50, 0);" and "m_stepper.continuous();" to m_stepper.run();"
Is this correct?

Re: Nouveau firmware en beta test - New firmware in beta test

Posté : mar. 7 mars 2023 00:26
par Jacques
It seem to be OK, well done ;)
Maybe you'll have to add this just after the while loop :

Code : Tout sélectionner

m_stepper[i].stop();
    /// Sets a new target position that causes the stepper
    /// to stop as quickly as possible, using the current speed and acceleration parameters.

Re: Nouveau firmware en beta test - New firmware in beta test

Posté : mar. 7 mars 2023 11:09
par RitoonL
Hello,

No, endstop have not been added in this version Yet, this is the next step on what Jacques is working right now. Next release will have endstops and homing. We might also release a Beta version soon for this, if you want to test.

Regards,

Eric

Re: Nouveau firmware en beta test - New firmware in beta test

Posté : mer. 8 mars 2023 20:49
par Micropuller
Really looking forward to that!

Re: Nouveau firmware en beta test - New firmware in beta test

Posté : mar. 14 mars 2023 16:19
par maximeS
Hello,

Après avoir pas mal galérer à mettre à jour le firmware (la MàJ dans l'onglet tools ne fonctionnait pas, j'ai du passer par Visual Studio Code), j'ai pu commencer à faire des tests du firmware 1.1.4.2. pour contrôler des moteur DC dont un avec des fin de courses.

Sur le port A ou B aucun souci pour contrôler un moteur avec les circuits DMX 1 et 2 (pour A) ou 9 et 10 (pour B). Il faut que je test avec les deux moteurs sur le même port.

En revanche, dans l'interface de configuration du port A je n'arrive pas a activer ou désactiver un moteur DC, chaque fois que je reboot l'arpschuino32 les 4 moteurs DC s'affichent comme inactif. En vérifiant la configuration via le port serial, il m'indique 4 moteur DC et prend en compte les valeurs de threshold.
Je ne peux passer les zero switch et end switch en "enable". Quand je clique, je vois juste brièvement une case blanche apparaitre avec écrit "select an input".

J'ai vu que le fichier Custom_port.cpp est configurer pour contrôler un moteur DC avec deux fin de course. J'ai donc mis le port B en mode custom, mais je n'ai pas réussi à faire tourner le moteur.

Je n'ai malheureusement pas les connaissances en programmation pour me lancer dans des modifications du fichier Custom_port.cpp... Mais je suis prêt à faire tout les essais qui vous semblerait utile pour développer la beta.

Re: Nouveau firmware en beta test - New firmware in beta test

Posté : mar. 14 mars 2023 20:26
par Jacques
C'est embêtant que tu n'arrive pas à mettre à jour depuis l'interface, d'autant que tu n'es pas le premier...
Je ne comprend pas trop pourquoi, tu étais connecté à une box ou a un téléphone ? Est-ce qu'il n'y aurait pas un pare feu (de la box) ou quelque chose comme ça qui bloque ?
Il faut bien mettre 1.1.4.2 sans point à la fin.
Ce que tu peut faire pour m'aider à comprendre : clique droit sur la page et "inspecter", puis onglet "console" et dit moi ce qui s'affiche.

Sur VScode, il faut bien uploader 2 choses : le code proprement dit ET le "filesystem image".
Est ce que tu as bien fait les deux ?

Je regarde ce soir la version 1.1.4.2 pour voir mais la 1.1.4.3 arrive demain ou jeudi si tout va bien.