0

Metro Mini upload code reliably only without external power
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Metro Mini upload code reliably only without external power

by Systembolaget on Mon May 10, 2021 6:16 am

Hej,

I have a bunch of Metro Minis and a one year old MacBook Pro (Catalina). When I supply 6V from a 3A PSU through Vin to any of my Metro Minis, uploading code almost always fails. I can upload code when I disconnect the PSU and only run the Metro Mini via USB. Plugging the PSU plug in and disconnecting the breadboard's DC-jack all the time for each code upload is tedious.

When I boot the MacBook Pro into Windows 10 via bootcamp, I have no such problems when powering via Vin.

Any ideas?

Thanks!

Systembolaget
 
Posts: 280
Joined: Wed Mar 08, 2017 1:01 pm

Re: Metro Mini upload code reliably only without external po

by adafruit_support_mike on Tue May 11, 2021 1:03 am

It sounds like your 6V supply might be noisy. That could cause enough interference to mess up the USB signals during an upload.

Output smoothing is one of the places where power supply manufacturers can cut corners. Good filters tend to be large and expensive, or small and really expensive, and the only way to see the output quality is by connecting it to an oscilloscope.

Try adding a large capacitor (100uF to 1000uF) between the Vin and GND pins. That should smooth the power enough to make the USB connection happy.

adafruit_support_mike
 
Posts: 63053
Joined: Thu Feb 11, 2010 2:51 pm

Re: Metro Mini upload code reliably only without external po

by Systembolaget on Tue May 11, 2021 2:09 am

Thanks, however, I have a capacitor in place and it happens with other PSUs as well, on any Metro Mini. It also happens with Metro and Feather Huzzah 8266. On all four USB-C ports of the Mac. It never happens when using the Mac in Windows 10 mode via bootcamp.

Systembolaget
 
Posts: 280
Joined: Wed Mar 08, 2017 1:01 pm

Re: Metro Mini upload code reliably only without external po

by adafruit_support_mike on Tue May 11, 2021 10:05 pm

In that case I have no idea what could be happening. The supply voltage should have no effect on the USB connection.

adafruit_support_mike
 
Posts: 63053
Joined: Thu Feb 11, 2010 2:51 pm

Re: Metro Mini upload code reliably only without external po

by Systembolaget on Wed May 12, 2021 1:03 am

Ok, thanks; it certainly must be a macOS Catalina thing. I saw many other posts on the Internet with similar issues when using macOS.

Systembolaget
 
Posts: 280
Joined: Wed Mar 08, 2017 1:01 pm

Please be positive and constructive with your questions and comments.