Tutorial para instalar sensor HALL substituindo pot'

Forum dedicado a Joysticks, HOTAS, Track-Ir, Freetrack, contrôles e cockpit's tipo "faça você mesmo", etc.
User avatar
airwolf
Posts: 341
Joined: 22 Jul 2016 09:56

Re: Tutorial para instalar sensor HALL substituindo pot'

Post by airwolf »

Tenta usar o imã de modo diferente, ao invéz do metodo "Bic", coloca o imã, ou junta dois em no eixo em frente ao sensor:
Boa ideia. Você reparou que o Miles colocou um capacitor (acho é um capacitor) com o sensor hall?

Também estou pensando em colocar o magneto na ponta do parafuso do eixo, fazendo-o se movimentar em frente ao sensor.
Mas, agora só tenho um sensor. Ainda dá para fazer testes com ele.

Acho que vou adquirir a pcb tle5010 lá do Ali. Agora que eu já enfiei o pé no barro... o negócio é ir até o fim.
E, dar uma lapidada na mecânica no gimbal, fazer uns ajustes. Creio que vai valer a pena.

Quando eu consegui a calibragem com os sensores hall, até que funcionou bem. Acho que, com o tle5010, só tem a melhorar.

Segundo o Mega_mozg, as vantagens do TLE 50XX sobre o hall são as seguintes (http://simhq.com/forum/ubbthreads.php/topics/3899105/30):
it is common advantage digital vs analog:
much quality of raw signal - less noise.
no signal interference up to 1-2 meters wires.
much more raw axis points.
no need to setup magnet/sensor positions.
no need to solder something else to setup sensitivity.
Vc tem algum esquema de ligação das pcb's tle50XX (eixos X e Y) para o Arduino Pro Micro?
What remorseless emperor commands me
I no longer govern my soul
I am completely immersed in darkness
As I turn my body away from the sun

White whale!! Holy grail!!
21_Sokol1
Veterano
Veterano
Posts: 15493
Joined: 01 Aug 2003 21:00
Location: Uberaba-MG

Re: Tutorial para instalar sensor HALL substituindo pot'

Post by 21_Sokol1 »

Segundo o Miles colocou o capacitor porque o datasheet to HALL dele sugeria.
O Baur disse que capacitor torna a resposta do HALL mais lenta.

O esquema TLE x PRO Micro é este:

http://simhq.com/forum/files/usergals/2 ... emtico.jpg

TLE5010/5011 pins---->Controller ProMicro(AtMega32u4) pins
-1) 4Mhz clock---------->Pin B6 - Generator 4Mhz
-2) SPI-SCK-------------->Pin B1 - SPI-SCK
-3) SPI-CS--------------->Any free pin <<< A "entrada" dos eixos (até 6) é o unico pino não compartilhado, precisa um para cada eixo.
-4) SPI-Data------------->Pin B3 - SPI-MISO
-5) TST1----------------->To Ground
-6) VDD------------------>To Power (VCC)
-7) GND------------------>To Ground
-8)TST2------------------>To Ground
21_Sokol1
Veterano
Veterano
Posts: 15493
Joined: 01 Aug 2003 21:00
Location: Uberaba-MG

Re: Tutorial para instalar sensor HALL substituindo pot'

Post by 21_Sokol1 »

Isso ai é tradução GT de 2 gurus russos explicando para um cara que tentava usar imãs reaproveitados de HD, as minuncias da calibração, talvez ajude.
Servio:

Hall reacts to the magnetic field strength and polarity. Next to the contrary and one pole on the output voltage of the hall should be minimal, in front of another - the maximum.
In the center between the poles of the field and thus no output voltage should be equal to half the supply. Because the strength of the magnetic field decreases as the square of the distance from the magnet, the magnet form and the way of its movement relative to the hall can affect linearity "rotation angle - the output voltage".

Magnets like those in the pictures that I saw in the engine from the old drive.
They are magnetized so that the polarity of the magnet along the ring changed several times.
Elemental bipolar magnet segment can be derived from this ring magnet.
The size of the segment can be determined empirically by moving the magnet along the hall and analyzing the output.
It may be that the segment size is less than 30 degrees, then such a magnet will not work, instead of a smooth recovery will be a little "hump" of the output voltage of the hall.
to come back to the beginning

T -Milich:

The two poles on one face of a horseshoe magnet from the hard drive.
When you move the sensor from the center of one pole to the center of another voltage on the sensor output describes the half sine wave.
So you can find quite a linear plot turn.
The distance from the sensor to the magnet is usually chosen so that the opposite poles of the hall was a member of the saturation. In practice it are true.
First, you need to put the sensor directly opposite the center pole.
On the notoriously large distance from the magnet mount the sensor in front of the pole and looking position with a maximum deviation from the hardware to "0".
Then, look for the point of saturation.
Slowly approaching the magnet to the pole until until the reading on the output of the sensor does not stop changing.
the PS regarding magnetically materials.
On the back of the magnet is not critical presence of iron.
You can even stick a magnet to the crown.
If there are magnetic materials and the external field at the sensor - readings can be distorted.
Magnetic shielding is required.
This property has a magnetic system hard drive, if you take it as a whole.
Together with metal horseshoes.
21_Sokol1
Veterano
Veterano
Posts: 15493
Joined: 01 Aug 2003 21:00
Location: Uberaba-MG

Re: Tutorial para instalar sensor HALL substituindo pot'

Post by 21_Sokol1 »

No link abaixo o Catfish testou num Cougar TQS - como alternativa analógica ao sensor HALL - um "sensor magnético de ângulo" KMA210, usado pela indústria automotiva e que vem pronto para uso até ângulo de 90 graus, não requerendo o amplificador de sinal, resistores do KMZ41.

4.91$ na Digikey.

http://forum.il2sturmovik.ru/topic/5156 ... ntry475061

A montagem do sensor no lugar do pot com um suporte DIY foi relativamente simples, bem como o posicionamento do imã magnetizado diametricamente.

- Com o controlador USB original do Cougar ficou com muito ruído na resposta, acha que devido ao comprimento de fios entre o TQS e o Cougar, já que o controlador fica na base do joy.
Adicionar o capacitor sugerido pelo fabricante como filtro passivo não alterou.

- Com o velho MJoy16, o resultado foi similar ao uso de um HALL, com algum ruído esporádico, porém enquanto com o controlador do Cougar a leitura (Joytester) variava 2/3 dígidos, variou 1. O uso do capacitor como filtro não fez diferença.

- Com o MMjoy2 basicamente a mesma coisa do Mjoy16.

- Com o MMjoy2 e filtro X4 no MMjoy2Setup, sinal estável.
User avatar
airwolf
Posts: 341
Joined: 22 Jul 2016 09:56

Re: Tutorial para instalar sensor HALL substituindo pot'

Post by airwolf »

Acho que esse vai ser uma alternativa excelente.
Olhando por cima no datasheet, parece que ele é realmente linear, e não senoidal.
What remorseless emperor commands me
I no longer govern my soul
I am completely immersed in darkness
As I turn my body away from the sun

White whale!! Holy grail!!
21_Sokol1
Veterano
Veterano
Posts: 15493
Joined: 01 Aug 2003 21:00
Location: Uberaba-MG

Re: Tutorial para instalar sensor HALL substituindo pot'

Post by 21_Sokol1 »

Tem pacote de 5 no "Uncle Ali" - individual fica pelo dobro.

https://www.aliexpress.com/item/NEW-KMA ... 80932b979e

Mas seria alternativa - mesmo com o ruído, por ser mais fácil de calibrar que HALL, para o controlador original (só entrada analógica), já que se for usar o MMjoy2, use TLE50x, além de digital é mais barato. :)
User avatar
airwolf
Posts: 341
Joined: 22 Jul 2016 09:56

Re: Tutorial para instalar sensor HALL substituindo pot'

Post by airwolf »

Ah Sokol, nem te conto... já encomendei aquelas plaquinhas do TLE5010 do Ali...

Apressado come cru... :P

Vou esperar para ver como vai ser com o TLE.

Se não funcionar... o bom é que tem essa nova alternativa.

Ops, agora que eu vi o preço... Tomara que funcione com o TLE... :rofl:
What remorseless emperor commands me
I no longer govern my soul
I am completely immersed in darkness
As I turn my body away from the sun

White whale!! Holy grail!!
21_Sokol1
Veterano
Veterano
Posts: 15493
Joined: 01 Aug 2003 21:00
Location: Uberaba-MG

Re: Tutorial para instalar sensor HALL substituindo pot'

Post by 21_Sokol1 »

Mas não tem como o TLE501x Chines não funcionar, o máximo que poderá ter que fazer é adicionar o capacitor. :)
21_Sokol1
Veterano
Veterano
Posts: 15493
Joined: 01 Aug 2003 21:00
Location: Uberaba-MG

Re: Tutorial para instalar sensor HALL substituindo pot'

Post by 21_Sokol1 »

Airwolf,

Para te "animar". :lol:

O Espanhol não contou que resultado deu o TLE5010 Chinês... e o Russo ai esta apanhando. :P

https://forum.il2sturmovik.ru/topic/466 ... ntry479932
User avatar
airwolf
Posts: 341
Joined: 22 Jul 2016 09:56

Re: Tutorial para instalar sensor HALL substituindo pot'

Post by airwolf »

Não entendi nada, tá em russo, :D

O bom é que até os meus chegarem esse cara já vai ter achado uma solução, :D

Assim espero... :tmi:
What remorseless emperor commands me
I no longer govern my soul
I am completely immersed in darkness
As I turn my body away from the sun

White whale!! Holy grail!!
21_Sokol1
Veterano
Veterano
Posts: 15493
Joined: 01 Aug 2003 21:00
Location: Uberaba-MG

Re: Tutorial para instalar sensor HALL substituindo pot'

Post by 21_Sokol1 »

Perguntei se não era a falta do capacitor de 0.1nF, uns disseram que usam do jeito que veio só com os 2 resitores de 1k e funciona.
21_Sokol1
Veterano
Veterano
Posts: 15493
Joined: 01 Aug 2003 21:00
Location: Uberaba-MG

Re: Tutorial para instalar sensor HALL substituindo pot'

Post by 21_Sokol1 »

Traduzir isso ai esta mais difícil do que Sumério, mas parece qeu o cara acabou fazendo "fogo" (ОГОНЬ!) com o controlador testando o TLE ChinLing. :rofl:

"Всем доброго вечера. Завелись все таки ТЛЕшки. Перепаял резисторы подтяжки, впаял 5.1 кОм. Так же пришлось пропаять ножки само сенсора, так как одна ТЛЕшка сразу не завелась. Контроллер ОГОНЬ! Спасибо всем, кто откликнулся. Мега мозгу, поклон и удачи!"
User avatar
airwolf
Posts: 341
Joined: 22 Jul 2016 09:56

Re: Tutorial para instalar sensor HALL substituindo pot'

Post by airwolf »

KKK, fica até mais difícil de entender quando traduz... :D

Vc acha que ele conseguiu?
What remorseless emperor commands me
I no longer govern my soul
I am completely immersed in darkness
As I turn my body away from the sun

White whale!! Holy grail!!
21_Sokol1
Veterano
Veterano
Posts: 15493
Joined: 01 Aug 2003 21:00
Location: Uberaba-MG

Re: Tutorial para instalar sensor HALL substituindo pot'

Post by 21_Sokol1 »

Não da para entender, o Mega_Mozg disse que o fato dos resistores serem de 1k ao invéz de 1.5k só faria diferença mesmo usando vários TLE, o cara esta estando um.

O pior é que quem postou no tópico falou um monte de abobrinhas - só um que foi útil confimando que usou o mesmo sensor da China por vários meses sem capacitor, enquanto esperava a encomenda destes do Uncle Ali chegar - ou mudam de assunto, ex. o Mega_Mozg postou uma foto da pré-história do Mjoy, o primeiro ATMEGA8 gramado controlando um joy Logitech, em 2004... Isso é típico em forum Russo, tem muita "Bonfire of Vanities". :P
User avatar
airwolf
Posts: 341
Joined: 22 Jul 2016 09:56

Re: Tutorial para instalar sensor HALL substituindo pot'

Post by airwolf »

Segundo o Miles colocou o capacitor porque o datasheet to HALL dele sugeria.
O Baur disse que capacitor torna a resposta do HALL mais lenta.

O esquema TLE x PRO Micro é este:

http://simhq.com/forum/files/usergals/2 ... emtico.jpg

TLE5010/5011 pins---->Controller ProMicro(AtMega32u4) pins
-1) 4Mhz clock---------->Pin B6 - Generator 4Mhz
-2) SPI-SCK-------------->Pin B1 - SPI-SCK
-3) SPI-CS--------------->Any free pin <<< A "entrada" dos eixos (até 6) é o unico pino não compartilhado, precisa um para cada eixo.
-4) SPI-Data------------->Pin B3 - SPI-MISO
-5) TST1----------------->To Ground
-6) VDD------------------>To Power (VCC)
-7) GND------------------>To Ground
-8)TST2------------------>To Ground
Sokol, recebi hoje as plaquinhas com o TLE 5010.

Dúvida: Pela sua descrição, o pino '4' do TLE é MISO e liga no B3. Pelo esquema (http://simhq.com/forum/files/usergals/2 ... emtico.jpg), o '4' é MISO.

Mas, pelo desenho abaixo, B3 é MOSI:
Image


E aí, qual o certo?
What remorseless emperor commands me
I no longer govern my soul
I am completely immersed in darkness
As I turn my body away from the sun

White whale!! Holy grail!!
Post Reply