QT Py works by usb only while port is open in IDE

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
jadle
 
Posts: 3
Joined: Tue Jun 11, 2013 5:33 pm

QT Py works by usb only while port is open in IDE

Post by jadle »

QT Py M0 works well while connected to computer usb and the port is connected in arduino IDE. Without IDE open and also with USB battery it does not turn on, but power goes to sensors and out on the 5v pin. Thank you

User avatar
dastels
 
Posts: 15667
Joined: Tue Oct 20, 2015 3:22 pm

Re: QT Py works by usb only while port is open in IDE

Post by dastels »

How do you know it doesn't turn on? Have you tried running the blink sketch? https://learn.adafruit.com/adafruit-qt- ... ixel-blink

My guess is that it's waiting for a serial handshake. Are you setting up Serial in setup() and doing the while (!Serial) wait?

Dave

jadle
 
Posts: 3
Joined: Tue Jun 11, 2013 5:33 pm

Re: QT Py works by usb only while port is open in IDE

Post by jadle »

Solved! You are my hero. I am ashamed to admit I had not tried the blink until now.

Yes it was the (!Serial). I commented out the lines below in the adafruit AHT20 temperature sensor example code to use it as a simple relay controller for greenhouse automation.

Serial.begin(115200);
//while (!Serial)
//delay(10); // will pause Zero, Leonardo, etc until serial console opens
//Serial.println("Adafruit AHT10/AHT20 test!");

Thank you so much for saving the project!

User avatar
dastels
 
Posts: 15667
Joined: Tue Oct 20, 2015 3:22 pm

Re: QT Py works by usb only while port is open in IDE

Post by dastels »

You're welcome.

I see that "problem" quite often.

Dave

Locked
Please be positive and constructive with your questions and comments.

Return to “Itsy Bitsy Boards”