Gps Ublox M8n su Revo problema I2C...
« on: October 04, 2018, 06:15:40 pm »
Buongiorno a tutti come da titolo ho montato il gps Ublox m8n con magnetometro sul mio drone con Revo...
Ho impostato tutto come spiegato su vari video, tipo impostare il magnetometro esterno su porta flexi ecc. Purtroppo però l'I2C mi è sempre rosso.... ho provato a invertire anche i due fili giallo e verde ma niente... non funziona mai e quindi non riesco mai ad armare i motori...
Non so più cosa fare, cosa mi consigliate? Puo essere che il magnetometro del m8n non funzioni di suo?
Grazie in anticipo a quanti potrebbero aiutarmi!

Re: Gps Ublox M8n su Revo problema I2C...
« Reply #1 on: October 04, 2018, 10:16:27 pm »
Tramite Google translate
--------------------------
A volte i produttori di cloni GPS lasciano fuori il chip del sensore magnetico. Si potrebbe guardare sulla scheda interna per un minuscolo chip quadrato con 16 pin o un luogo in cui manca uno.

Questo GPS di solito ha 6 fili. 2 cavi di alimentazione più 2 cavi GPS Tx e Rx collegati a MainPort. Immagino che tu possa vedere il LED GPS acceso e quindi ha una buona potenza? Revo vede il segnale GPS proveniente dal cavo? In caso contrario, potresti aver mescolato alcuni fili. :)

Solo 2 fili sono collegati a FlexiPort. Se non li connetti accidentalmente alle connessioni di alimentazione, ci sono solo due modi per collegarli e hai provato entrambi.

Red mag health può significare che semplicemente non è calibrato o che il cablaggio è cattivo. I2C salute penso che (non sicuro) mostrerà verde se i fili sono corretti e rosso se i fili sono sbagliati. Di che colore è la salute I2C per entrambi i modi di collegare i fili magnetici?

Infine, I2C è un bus con resistori pull up. A volte è necessario aggiungere resistori di pull-up più forti. Il modo migliore è aggiungere resistori 2.2k all'interno del GPS per passare da SDA a 3.3V al regolatore e anche da SCL a 3.3V al regolatore. Questa è una saldatura molto piccola e se non ti senti un buon solderer, non dovresti tentarlo. Potresti anche costruire un piccolo circuito nel mezzo del cavo magnetico che ora richiede i 2 cavi di alimentazione aggiuntivi (+5 e terra) del Revo. Il potere alimenterebbe un regolatore da 3,3 V appena aggiunto in questo circuito e useresti quel 3,3 V per tirare su SDA e SCL entrambi a 3,3 V mentre passi questi segnali alla rivista.

==================

Via Google translate
--------------------------
Sometimes the GPS clone makers leave out the mag sensor chip.  You could look on the internal board for tiny square chip with 16 pins I think or a place where one is missing.

This GPS usually has 6 wires.  2 power wires plus 2 GPS Tx and Rx wires connect to MainPort.  I guess that you can see GPS LED is on and so it has good power?  Does Revo see the GPS signal coming from the cable?  If not then you may have mixed up some wires.  :)

Only 2 wires are connected to FlexiPort.  If you are not accidentally connecting them to power connections, then there are only two ways to connect them and you have tried both.

Red mag health can mean that it is simply not calibrated or that wiring is bad.  I2C health I think (not sure) will show green if wires are correct and red if wires are wrong.  What color does I2C health show for both ways of connecting the mag wires?

Finally, I2C is a bus with pull up resistors.  Sometimes you need to add stronger pullup resistors.  Best way is to add 2.2k resistors inside the GPS to go from SDA to 3.3V at regulator and also from SCL to 3.3V at regulator.  This is very tiny soldering and if you don't feel you are a good solderer, you should not attempt it.  You could also build a small circuit in the middle of the mag cable which would now need the 2 extra power wires (+5 and ground) from the Revo.  Power would feed a 3.3V regulator newly added in this circuit and you would use that 3.3V to pull up the SDA and the SCL both to 3.3V as you pass these signals on to the mag.

Re: Gps Ublox M8n su Revo problema I2C...
« Reply #2 on: October 05, 2018, 11:04:31 am »
Si ho provato davvero tutto, a invertirli ma niente. Il gps funziona benissimo, prende 12-13 satelliti sempre e trova bene la posizione è solo l'I2C che da sempre problemi.
Proverò a saldare le due resistenze di pull-up come consigliato!
Thank you TheOtherCliff!