filmov
tv
Solved: ESP8266 Can't Upload Sketch Over Mini-B USB Cable (Also NodeMCU & ESP32)
Показать описание
If this solves your ESP32 or ESP8266 connectivity issues leave a LIKE!
Are you unable to upload a Sketch from the Arduino IDE to your ESP32 or ESP8266 via a USB cable? In this video I explain that not all mini-B USB cables are the same. Your IoT project might not get off the ground simply because you're unknowingly using the wrong type of cable. Check your COM port in the Arduino IDE too (more on that later).
There are 3 types of cable you might find in your junk cables drawer:
1. Broken cables. When you connect the ESP8266, ESP32 or NodeMCU microcontroller to your computer using one of these, nothing will happen.
2. Power ONLY cables: This type of cable will cause a blue light to flash on the microcontroller. However the cable is unable to fully connect the PC to the microcontroller. This is because the cable is intended just for charging devices, and not for carrying data. You will probably have a lot of these because they are commonly supplied with USB powered peripherals such as lights, fans and other gadgets.
3. Decent USB cables: these allow power AND data to flow between the PC and microcontroller. You'll know if you have a good cable because the computer's familiar "new device" sound will go off as soon as you insert the USB cable into one of the PC's USB ports. After this just make sure your Arduino IDE is set to the right port (COM1 to COM10 depending on how many USB ports your PC has). Incidentally the PlayStation 4 controller USB cables work very well, and they're nice and long too.
Incidentally Arduino Uno boards usually come supplied with a cable. If you want a longer one then use an old USB printer cable. They seem to work without any issues.
I hope that solves your microcontroller connectivity issues. Good luck with your IoT projects :)
Are you unable to upload a Sketch from the Arduino IDE to your ESP32 or ESP8266 via a USB cable? In this video I explain that not all mini-B USB cables are the same. Your IoT project might not get off the ground simply because you're unknowingly using the wrong type of cable. Check your COM port in the Arduino IDE too (more on that later).
There are 3 types of cable you might find in your junk cables drawer:
1. Broken cables. When you connect the ESP8266, ESP32 or NodeMCU microcontroller to your computer using one of these, nothing will happen.
2. Power ONLY cables: This type of cable will cause a blue light to flash on the microcontroller. However the cable is unable to fully connect the PC to the microcontroller. This is because the cable is intended just for charging devices, and not for carrying data. You will probably have a lot of these because they are commonly supplied with USB powered peripherals such as lights, fans and other gadgets.
3. Decent USB cables: these allow power AND data to flow between the PC and microcontroller. You'll know if you have a good cable because the computer's familiar "new device" sound will go off as soon as you insert the USB cable into one of the PC's USB ports. After this just make sure your Arduino IDE is set to the right port (COM1 to COM10 depending on how many USB ports your PC has). Incidentally the PlayStation 4 controller USB cables work very well, and they're nice and long too.
Incidentally Arduino Uno boards usually come supplied with a cable. If you want a longer one then use an old USB printer cable. They seem to work without any issues.
I hope that solves your microcontroller connectivity issues. Good luck with your IoT projects :)
Комментарии