Having issues with new Arduino/Adafruit Micro
Moderators: adafruit_support_bill, adafruit

Having issues with new Arduino/Adafruit Micro

by WarMachine on Thu Nov 15, 2012 8:24 pm

I chose to post this here because this doesn't seem to be a programming issue as much as a hardware issue...if I am incorrect on either of those, please move/advise.

Just opened the box on my new "micro" and ran into a problem. After downloading 1.0.2 ("micro" supported version), wiring up an LED, and uploading Blink....everything run fine. I disconnected the USB cable, connected my external power source (regulated 9vdc) to the correct pins, and waited for the boot. No blink. All on board LED's cycled as expected, but nothing on the external wired LED. I verified my wiring and tried again with the USB cable as the power source. Again, boot but no blink. I attached an alternate external power source (regulated 5vdc) to the micro USB and still nothing after the usual board boot.

After opening up 1.0.2 and re-applying Blink...the board reset and the external LED was blinking as expected.

After attempting several different sketches (with correctly attached components), it seems the only way I can get a sketch to run is to upload it and leave the board connected, as soon as it is disconnected, and power of any source re-applied....it boots, but does not run a sketch.

What am I over looking?
WarMachine
 
Posts: 4
Joined: Thu Nov 15, 2012 7:52 pm

Re: Having issues with new Arduino/Adafruit Micro

by adafruit on Thu Nov 15, 2012 8:36 pm

are you waiting for Serial with a while(!Serial)?
User avatar
adafruit
 
Posts: 11719
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: Having issues with new Arduino/Adafruit Micro

by WarMachine on Thu Nov 15, 2012 9:25 pm

adafruit wrote:are you waiting for Serial with a while(!Serial)?



Certainly am when attempting any Serial print(), println() or write() statements in setup. Sketches run fine as soon as reset completes after upload. But not after power has been removed.
WarMachine
 
Posts: 4
Joined: Thu Nov 15, 2012 7:52 pm

Re: Having issues with new Arduino/Adafruit Micro

by adafruit on Thu Nov 15, 2012 9:41 pm

you need to remove that line, its waiting for the USB to be connected
User avatar
adafruit
 
Posts: 11719
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: Having issues with new Arduino/Adafruit Micro

by WarMachine on Thu Nov 15, 2012 9:58 pm

adafruit wrote:you need to remove that line, its waiting for the USB to be connected


Adafruit starting guide points back to Arduino's Micro product page...which then points back to the Leonardo guide....calling for while (!Serial);. Is this an error?

I do not, however, see how the while (!Serial) would have any bearing on sketches that do call for it (in any application). Blink, for example.
I could see it applying to the sketch running on an Uno sitting next to my monitor...LCD displaying temp/humidity while logging to sd....but not to any of the basic sketches that I have uploaded thus far to the micro.


*edit: I do appreciate your time and attention to this by the way, I forgot my manners.*
WarMachine
 
Posts: 4
Joined: Thu Nov 15, 2012 7:52 pm

Re: Having issues with new Arduino/Adafruit Micro

by adafruit on Fri Nov 16, 2012 12:11 am

Hi, we're trying to help you with this problem. We did not write the Arduino.cc website or tutorials. Please try removing that line
User avatar
adafruit
 
Posts: 11719
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: Having issues with new Arduino/Adafruit Micro

by WarMachine on Sun Nov 18, 2012 12:02 am

Just a follow up.

The issue did appear to be a software issue afterall, just not what I was expecting it to be.

I ended up uninstalling 1.0.2, removing the drivers, and reinstalling a fresh copy of 1.0.2 and drivers. After the reinstall, the micro seems to work just as it should, no problems of any sort experienced yet. No problems with any of my Uno boards either.

I did remove the while(!Serial); from all sketches intended for the micro that would call for it if you follow the Leonardo guide that the web sites (Arduino and Adafruit) point to.

:D
WarMachine
 
Posts: 4
Joined: Thu Nov 15, 2012 7:52 pm