Olá,
Recentemente meu Arduino parou de ser reconhecido pelo computador. Realizei diversos testes:
– Troquei o Atmega328
– Regravei a bootloader
– Testei o controlador fora da placa
– Medi com o multimetro as conexões básicas para ver se fechava o circuito
Nada disso solucionou o problema e então decidi tentar programar o atmega8u2 que é responsável por controlar a conexão com a USB. Encontrei dois artigos principais os quais usei como base:
Atualizando o Atmega8U2 no Uno ou no Mega2560 usando DFU (Ingles) e também Como atualizar o firmware do atmega8u2 Updating the Atmega8U2 on an Uno or Mega2560 using DFU
Ambos utilizavam de soluções que era necessário soldar um resistor na placa, o que eu não queria fazer, então verifiquei que próximo ao atmega8u2 existem pinos de ICSP e imaginei que os mesmos servem para programar o atmega8u2. Decidi tentar, por garantia removi meu Atmega328 da placa. E conectei meu USB Asp seguindo os pinos da imagem, lembrando que o pino 1 possui uma marcação próxima no meu Arduino UNO uma pequena bolinha.
Após a conexão acessei o diretório que continha os hex do atmega8u2 do arduino Uno (/arduino/hardware/arduino/firmware/) e usei o comando:
sudo avrdude -c usbasp -p m8 -u -U flash:w:UNO-dfu_and_usbserial_combined.hex
O mesmo não aceitou dizendo que o identificador de ambos eram diferentes:
avrdude: Yikes! Invalid device signature.
voltei a pesquisar e descobri que o at90usb162 é compativel, então decidi arriscar e forçar a escrita com a opção
sudo avrdude -c usbasp -p usb162 -u -U flash:w:UNO-dfu_and_usbserial_combined.hex -F
Esperei gravar, desliguei o arduino, conectei meu atmega328 e a conexão USB voltou a aparecer no computador, tornando assim possivel eu utilizar meu Arduino pela USB novamente.
Matheus
PS: Logo após regravar a bootloader meu atmega328 não sincronizava com a USB, então escrevi a bootloader do atmega328 pro arduino uno novamente e tudo funcionou perfeitamente.
Referencias:
http://8515.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=688637
http://image.pinout.net/pinout_10_pin_files/connector_pinout.php?image=avr_icsp.png&pinout=%20This%20a%20pinout%20of%20the%20AVR%20ICSP%20header.%20(6-pin%20&%2010-pin)

If I were to recommend a starting point for the topic this site would be near the top of my list, and a stop at directionsetsvelocity reinforced that recommendation status, the small list of starting point recommendations I keep for friends asking about topics is short and this site is now firmly on it.
888 stars [url=https://888starz-uzb3.com/]888 stars[/url]
Rasmiy sayt ravon o’zbek tili va intuitiv boshqaruv bilan foydalanishga qulay.
888Games to’plami darhol natija beradigan Crash va Plinko kabi formatlarni jamlaydi.
888starz o’ttiz beshdan ziyod sport turiga tikishni, jumladan Dota 2 va CS:GO kibersportini taklif etadi.
888starz doimiy aksiyalar, keshbek va slot musobaqalari bilan o’yinchilarni rag’batlantiradi.
888starz sutkalik jonli yordamni hamda Android APK va iOS ilovalarini taqdim etadi.
Hello there, You’ve done an incredible job. I?ll certainly digg it and personally recommend to my friends. I’m confident they’ll be benefited from this site.
Reading this in a moment of low energy still kept my attention, and a stop at signalcreatesalignment continued that engagement under suboptimal conditions, content that survives the reader being tired is content with extra reserves of pull and this site has the kind of writing that holds up even when I am not at my reading best.
Thanks for a post that does not try to be funny when it is not the moment for it, and a stop at compassbulb maintained the same appropriate seriousness, knowing when humour helps and when it just signals desperation for engagement is a sign of editorial maturity that many blogs have not developed yet.