top of page

P-18 : Encontrando os problemas !

  • Foto do escritor: DickonBR
    DickonBR
  • 4 de ago. de 2019
  • 4 min de leitura

Com a ajuda de um amigo , o Adriano, que entende muito de programação e eletrônica, começamos a fazer todo o debug do drive.


E encontramos o erro, justamente onde eu não acreditava e jurava que não haveria problemas : nas conexões e componentes eletrônicos do controle remoto.


Como eu havia montado o controle remoto bem antes do drive estar pronto para testes, o deixei meio de lado, acreditando que estava totalmente ok, pois ao liga-lo, tudo parecia perfeito no LCD.


Encontramos 2 problemas : os thumbsticks modelo psp, estavam fornecendo leituras e valores errados, deixando os motores totalmente "doidos".


E havia soldas frias e conexões partidas, principalmente no GND, o que fazia o controle sair do modo SETUP sem conseguirmos salvar os valores lidos na EPROM do feather.


Eu não tinha thumbsticks sobressalentes, então resolvi desmontar um velho controle do primeiro xbox e retirar os seus núcleos dos analógicos. Funcionaram perfeitamente porem isso me causaria um problema de encaixe , caso eu fosse usar o design do controle original, também feito pelo Joe.


Arrumamos toda a fiação e agora o drive estava funcionando !


Nos dias que se decorreram, me propus a melhorar a fiação e disposição da eletrônica do drive, porem ainda tinha um problema a resolver : eu não conseguia fazer o Arduíno Mega reconhecer a placa de som.


Usei um código teste da Adafruit, em um Arduíno Uno e a placa de som estava funcionando, então o problema era conexões e soldas.


Mais uma vez, revisei tudo e nada de funcionar.


Na versão do meu drive anterior, eu usei um shield MP3 da Sparkfun que funcionou muito bem, no Arduíno Uno, então depois de muitas tentativas frustradas, resolvi descartar a placa de som da Adafruit e colocar esse MP3 shield no lugar. O problema que isso requer entender melhor o código fonte do mega e fazer isso funcionar no Uno.


É onde estou parado no momento, aguardando ajuda de um outro amigo, o Fernando, do Rio de Janeiro, afinal, foi ele que escreveu o código do meu drive anterior e ele entende muito bem como o shield MP3 funciona.


Enquanto aguardo o código dele...sigo imprimindo os 6 painéis e rings, para montagem do body. Ainda vou precisar de muito tempo para fazer os paineis se encaixarem perfeitamente nos rings e ficarem com um bom acabamento, antes da pintura final, ou seja , muitas horas de polimento e lixas. Sem contar que ainda faltam imprimir 2 paineis e 2 rings, mas como meu filamento PETG acabou, vou ter que esperar alguns dias até chegarem.




_______________


E-18: Finding the Problems!


With the help of a friend and colleague at work, Adriano, who knows a lot about programming and electronics, we started debugging the drive.


And we found the problem, just where I did not believe and swore that there would be no problems: in the connections and electronics of the remote control.


Since I had built the remote control long before the drive was ready for testing, I set it aside, believing it was totally ok, because when I turned it on, everything looked perfect on the LCD.


We found 2 problems: the thumbsticks psp were giving wrong readings and values, making the engines totally "crazy".


And there were cold welds and broken connections, especially in GND, which made the control exit SETUP mode without being able to save the values ​​read in the feather EPROM.


I didn't have spare thumbsticks, so I decided to take apart an old control of the first xbox and remove its cores from the analog ones. They worked perfectly but it would cause me a snag if I were to use the original control design, also made by Joe.


As I would print a new case for the remote control, I found a new design that pleased me a lot, but I still need to redraw the bottom part of the box.


We fixed all the wiring and now the drive was working!


Over the next few days, I set out to improve the drive's wiring and electronics, but I still had a problem to solve: I couldn't make the Arduino Mega recognize the sound card.


I used an Adafruit test code on an Arduino Uno and the sound card was working, so the problem was connections and soldering.


Once again, I reviewed everything and nothing worked.


In the version of my previous drive, I used a Sparkfun MP3 shield that worked very well on Arduino Uno, so after many failed attempts I decided to discard the Adafruit sound card and put this MP3 shield in place. The problem with this requires better understanding the mega source code and making it work in Uno.


That's where I'm standing right now, waiting for help from another friend, Fernando from Rio de Janeiro, after all, he wrote the code from my previous drive and he understands how well the MP3 shield works.


While waiting for his code ... I continue printing the 6 panels and rings for mounting the body. I will still need a long time to make the panels fit perfectly into the rings and finish well before final painting, and many hours of polishing and sanding. Not to mention that 2 panels and 2 rings are still missing, but as my PETG filament is over, I will have to wait a few days until they arrive.


Pictures above.

Comentários


Sobre...

Desde criança, aficcionado por Star Wars , robôs, eletrônica e sempre adepto do DO IT YOURSELF. Isso justifica minha formação em engenharia e meu espírito Maker.

Onde...

Se inscreva:

Envie seu email e ficará atualizado sobre os novos posts

© 2017 by DickonBR.

bottom of page