LibrePilot Forum

Users => Vehicles - MultiRotors => Topic started by: anthropo on August 03, 2016, 02:18:08 pm

Title: ESc do not initialize with Next release on Revo FC
Post by: anthropo on August 03, 2016, 02:18:08 pm
Hello

With the Next release 20160724 when I plug the battery only One ESC beeps, Then after somme seconds, another one, and so on. Sometimes I hear a beep. When I arm the esc, only One or two motors run

I tried again with the 15.09, and everything is OK. When i plug the battery all esc beeeps, and all motors run after arming

Running PPM, GPS + mag (i2c) Revo FC on eachine racer 250

Thank you
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: TheOtherCliff on August 04, 2016, 09:48:13 am
This sounds familiar.  I recall there is a conflict between the ESC firmware and the FC firmware.

If I guess I think it is recent BLHeli and using OneShot.  You might Google for that sort of thing.
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: anthropo on August 05, 2016, 09:27:55 am
Thank you

In fact it's Simonk firmware on ESC. I searched the web for this, but didn't found anything...
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: f5soh on August 05, 2016, 09:49:28 am
Did you start from a clean config ?

I mean do a "Upgrade&Erase" first, followed with a Wizard.
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: anthropo on August 05, 2016, 12:46:11 pm
Yes, upgrade and erase followed by vehicule and transmitter wizard

With the commit before i had no problem.
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: f5soh on August 05, 2016, 01:17:34 pm
Strange.. at least Next is not broken.
Just tested with almost same setup using Revo / ppm / Simonk.

Some Red alarm in SystemHealth ?
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: anthropo on August 05, 2016, 01:51:21 pm
It happens when i save and restart controller (unplug usb and battery), before transmitter setting. None alarm except input and GPS (it hasn't found satellites yet)
till i restart controller (before saving), when i plug unplug battery the esc are beeping normally.

Tried and tried so many times...
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: f5soh on August 05, 2016, 02:12:05 pm
Following the Wizard you do not need to disconnect or restart, the reboot is automatic.

I do not understand what do you mean with "(before saving)" in second sentence...
What do you save exactly ?

Post your config file that do the issue.
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: anthropo on August 05, 2016, 03:09:51 pm
i meant that until i save, if i unplug then plug the battery esc are beeping.

i "save" when the configuration wizard  ends.
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: anthropo on August 05, 2016, 03:12:19 pm
The config file

thank you
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: f5soh on August 05, 2016, 03:36:18 pm
The only Wizard steps where you need the battery are calibration and next le neutral value for every motor.
You should not disconnect or unpower the board during the whole wizard time.

If you disconnect the board from usb while on wizard, the board return to erased state and no output set so Esc do not receive signal.

I see nothing wrong with your config file...
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: anthropo on August 05, 2016, 05:17:59 pm
Hourra


I have found what is the cause : If i omit 'GPS + Mag' in the wizard, everything is OK.

If i set it, ESC don't beep.

There must be a problem there ...

Does it change anything if i set it in hardware after the wizard ?
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: f5soh on August 05, 2016, 05:24:56 pm
What do you mean ?
If you choose GPS+I2c, the Esc do not beep while calibrating ?

In all cases, before you reach the "Level page" first time the outputs are disabled, because no config loaded on board.
This mean no signal and Esc do beeps if you connect a battery.

While reaching the Level page, settings you choose (Quad, hexa or whatever) are loaded and outputs enabled to minimal level. (1000µs)
At this point Esc stop beeping because receive a signal.

You should only connect the battery at calibration step and neutral settings.
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: anthropo on August 05, 2016, 05:47:38 pm
Perhaps in french for me this could be easier to explain...

I mean that the only difference when it works and when it doesn't depend on the fact that i set or not 'gps + mag' in  the vehicle wizard. Tested four times.
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: f5soh on August 05, 2016, 06:05:09 pm
Va pour le français, détaille bien que je puisse reproduire ici.
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: anthropo on August 05, 2016, 06:18:52 pm
Voici : Quand je suis à la lettre le vehicule wizard, si je dis que j'ai un GPS avec magnétomètre, les esc ne s'initialisent pas correctement après l'enregistrement (ils ne bippent pas, et par la suite un, deux ou trois d'entre eux finissent par bipper aléatoirement. Si je tente d'armer, aucun, ou bien un ou deux se mettent à tourner.

Par contre si je ne dis pas que j'ai un gps + mag, tout se passe correctement. Par la suite je peux entendre les esc s'initialiser après branchement de la batterie, et si j'arme tout tourne parfaitement.

J'ai contourné le problème en retournant dans Hardware pour y renseigner GPS i2c et PPM+telemetry

Je comprends maintenant pourquoi la 15.09 fonctionne, il y a GPS + mag...

J'ai un AP GPS avec le gps sur le main port et le i2c sur le flexi.

Merci d'avance de la part du fils d'un radioamateur de Mourenx F5RM...
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: f5soh on August 05, 2016, 06:47:41 pm
Ah... le monde est petit :)
L'indicatif me dit qque chose, il me semble qu'il y avait du matériel par là-bas.
ça fait bien longtemps que j'ai pas pris le micro...
Je suis à coté de Navarrenx.

Bon.. si je comprends bien lorsque tu as configuré le GPS+i2c via le Wizard, au final la config est pas bonne. Et les Escs ne s'initialisent pas correctement.

Si tu ignores la config GPS+I2c dans le wizard et qu'ensuite tu ajoutes à la main c'est bon ?

Dans les deux cas après avoir redémarré la carte ?

Si tu as deux fichiers de config, un qui marche et l'autre non... ça peut m'aider à trouver la cause.
Fichier > Exporter Paramètres UAV
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: anthropo on August 05, 2016, 06:59:28 pm
Oui apres avoir ignoré c'est bon, je configure à la main dans Hardware. Dans les deux cas après avoir redémarré la carte.
Merci
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: f5soh on August 05, 2016, 07:03:33 pm
Désolé j'ai édité le post précédent...
Les deux fichiers de config ça serait bien pour gagner du temps et voir ce qui cloche.
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: anthropo on August 05, 2016, 07:33:43 pm
Le "Marche.Uav" est plus complet. J'ai avancé dans la config (GPS + attitude). Désolé.

Si vraiment il le faut je peut enregistrer mon uav puis recommencer la config qui marche en m'arrêtant juste après le wizard, enregistrer un nouveau "Marche Pas.uav".
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: f5soh on August 05, 2016, 08:56:34 pm
ça devrait être suffisant, je regarde.

Merci
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: f5soh on August 05, 2016, 11:00:49 pm
Bon... je ne vois pas de différence entre les fichiers en ce qui concerne les sorties.
J'ai essayé de charger l'un et l'autre avec le même résultat, à chaque fois j'ai une sortie correcte à l'oscilloscope.

Idem avec le wizard, partant à chaque fois d’une carte effacée les sorties sont actives à partir de la page de mise à niveau.
Pas de différence due à la sélection du Gps/I2c...

Title: Re: ESc do not initialize with Next release on Revo FC
Post by: anthropo on August 06, 2016, 02:02:30 pm
Je crois avoir isolé le problème car j'ai eu une fausse joie : même après avoir paramétré le GPS + mag après dans Vehicule, aujourd'hui ça ne fonctionne plus. Du coup je suis allé dans vehicule désactiver le i2c de flexi port, et là ça refonctionne à tous les coups....

Le problème semble donc dans la gestion du mag avec i2c ?
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: f5soh on August 06, 2016, 11:27:16 pm
Bizarre, j'ai un quad avec le GPS+Mag I2c et j'ai jamais eu de souci.
A tester à nouveau pour confirmer, demain si j'ai le temps.
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: f5soh on August 07, 2016, 11:46:42 am
Peux-tu essayer de voir si le phénomène est dû à l’initialisation de l'I2C et voir si tu a une différence entre les deux cas:

1 - Alimentation par batterie puis connexion de l'Usb
2 - Connexion de l'Usb puis après le boot (20s), brancher la batterie.
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: anthropo on August 07, 2016, 05:24:31 pm
Franchement j'ai fait les tests, et y'a rien de flagrant :

USB branché puis batterie, les esc s'initialisent pas ou peu (aucun, un ou les uns après les autres après de nombreuses secondes).

Batterie branchée sans l'USb c'est pareil. au bout d'un moment parfois  ils finissent par bipper mais souvent il manque le dernier !

Le premier bip est toujours très long à arriver après la fin du clignotement rapide bleu-jaune du début (mini trente secondes)
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: f5soh on August 07, 2016, 08:21:39 pm
Essaye de passer les sorties en PWM-490Hz
Si besoin descendre la fréquence de rafraichissement
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: anthropo on August 08, 2016, 08:34:15 am
super ça fonctionne. quel rapport avec i2c ?
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: f5soh on August 08, 2016, 09:55:18 am
J'aimerais bien le savoir :)

Donc PWM-490Hz ça marche ?
Si tu pouvais tester si c'est une question de fréquence, toujours en restant en PWM.

Dans l'onglet Système > UAVOBrowser tu cherches BankUpdateFreq et tu changes les deux premières banques en mettant des valeurs 500, 510, etc...
En vérifiant si ça fonctionne toujours à chaque fois.
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: anthropo on August 08, 2016, 01:14:23 pm
je suis monté à 600 ça fonctionne toujours. Je dois essayer jusqu'où ?

Question subsidiaire pour voler je dois mettre combien ?

Merci
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: f5soh on August 08, 2016, 02:20:14 pm
Pour voler tu laisses 490Hz.

Merci pour les tests, il y en aura certainement d'autres.

Title: Re: ESc do not initialize with Next release on Revo FC
Post by: anthropo on August 10, 2016, 02:30:43 pm
J'ai trouvé ca post 296 meme probleme

https://forum.librepilot.org/index.php?topic=1110.285
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: f5soh on August 10, 2016, 02:56:15 pm
Peux-tu essayer de flasher le firmware attaché, pas besoin de refaire la config.

- Sauvetage
- Connecter la carte
- Ouvrir et charger le firmware attaché
- Programmer
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: anthropo on August 10, 2016, 09:31:55 pm
Bon, j'ai chargé le firmware, remis pwmSync et c'est pas mieux, toujours le meme comportement aléatoire
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: f5soh on August 10, 2016, 09:45:46 pm
Bon... Pour être certain que ce n'est pas à cause d'erreurs I2C tu peux essayer d'ajouter des résistances de 10k par dessus  R3/R4 pour diminuer les résistances des Pullups.
Possible aussi de la faire coté mag sur SDA/SCL en prenant soin de se repiquer sur du 3.3V... plus facile aussi.

Title: Re: ESc do not initialize with Next release on Revo FC
Post by: anthropo on August 16, 2016, 02:04:07 pm
Bon, ça me genait un peu d'intervenir sur la revo alors j'ai refait la manip avec un revo mini et une carte Gy-273 (HMC5883L) que j'ai rajouté. Même problème.
Maintenant je peux rajouter les resistances sur ma carte. Pour être sur, voici le schema. Les R3 R4 font 4.7K. Je met des 10K par dessus ?
Title: Re: ESc do not initialize with Next release on Revo FC
Post by: f5soh on August 16, 2016, 02:18:58 pm
Tu peux essayer, ça va diminuer la résistance totale.

Pas certain que ça fasse quelque chose, les pullup devraient être déjà suffisants dans ton cas.