2017 REVIEW | 'IoT & Embedded MAKER SPACE - MKE' Group
Arduino UNO With Dead USB Port
| Gene's Inner Lab, Quick Ref
HOW TO PROGRAM AN ARDUINO UNO WITH BAD USB PORT
2018 JAN 2 | by Gene Casanova
Senior Computer Systems Engineer
Arduino IDE Stopped Reporting A Connected Arduino UNO
A diode on the Arduino Uno circuitboard (systemboard) is probably broken. With the diode broken, the USB port cannot work. The diode is atiny surface-mount component; extremely difficult to replace. Economically, replacing the diode is not a repairable task.
The practical option is to use the other communication interfaces on the Arduino UNO.
Programs ("sketches") can be uploaded through the onboard ISP serial communications interface.
Program Ardunio UNO With USB-to-TTL Converter
An Arduino with a broken bad USP Port, can be programmed using a USB-to-Serial converter.
- The Bad USB Port On A Arduino UNO; Arduino Uno R3; Arduino Pro mini; Arduino Nano.
- CGI Computer Wares' Tested Certified Working USB to Serial converter(USB to TTL) Module
- Recommend buying the FT232RL 3.3V-5V TTL USB SERIAL PORT ADAPTER, with auto reset and support for all Windows versions for Windows users.
- Female-Female Pin-Header Connector Terminated Jumper Wires (4 or more)
1) Connect 4 wires to the 5V, GND, RX, and TX of the USB to TTL converter.
Use the 3V3 line for 3.3V boards.
Do Not Use The 5V for 3V3 boards; because it will probably fry the board. Using 3V3 for 5V boards is no problem but it might not work as it should. When connecting both 5V and 3V3 to a 5V board, the highest source voltage is used(5V).
2) Connect 5V wire to 5v
3) Connect Ground wire to ground.
4) Connect RX to TX
5) Connect TX to RX
6) Plug the converter into the PC computer running the Arduino IDE.
PC USB port <---> USB to TTL
3V3 --- 3V3 on Arduino(only when using 3V3 boards)
TXD --> RX on Arduino
RXD <--- TX on Arduino
GND --- GND on Arduino
5V --- 5V on Arduino
Open the Arduino IDE.
Select the Arduino board to upload a sketch to.
Beter USB converters have a reset connection to auto reset the board so it enters programming mode.
Make sure the power LED on the Arduino board is on and the Arduino is recognized by the IDE and Select the right COM port. When the USB interface adapter is not recognized, go to the last step.
Check the sketch and press the upload button.
A USB-to-TTL converter with 'auto reset' function, will put the reset line on the board into the 'LOW' state, before starting to upload. The reset line on the Arduino needs to be LOW for the bootloader to be activated enabling uploading a sketch.
USB to TTL Adapter Without A Reset
When you have a USB-to-TTL converter without a reset line, you have to manually put the Arduino into "programming" mode before uploading a sketch.
To upload a sketch, press the upload button, press and hold the reset button on the Arduino board and wait for the program to start uploading, onces it starts uploading, release the reset button and the sketch should upload.
To make it easier to see when to release the reset button, enable 'advanced output' during compiling and uploading in the Arduino IDE application.
Steps to enable 'advanced output' during compiling and uploading in the Arduino IDE application:
1) Go to main menu "file" > "preferences".
2) Select the checkboxes for Advances Output During Compiling and Uploading.
3) Restart the Arduino IDE application.
Press the 'reset' button when a lot of white text is seen in the Arduino IDE debug screen and when the text turns orange and displays a message something like "overriding baudrate", release the button..... if ok, the process will output something like this:
'UPLOADING...............' followed by 'READING / VERIFYING...................... done. sketch uses 1.234 bytes (27%)'.
If something like 'failed to upload' or 'programmer not responding', this means you pressed the button to late or did not release in time. Keep practicing till you succeed.
If you get the message 'Board at COM3 not available' you probably connected RX to RX and TX to TX or selected the wrong COM port, if not continue to the next step.
Use The Technology Wisely & Keep It Simple
Need More? Need Help? ........Software, Network, System & Data Center Builder & Developer | Development Services Available - Freelance Small Jobs; To Outsourced Long Term Service Provider Contract Labor Available.
CGI Computer Wares | EST 1979