Hi,
I bought a flora kit a while back and have just started having a play. I've got the arduino IDE 2.0.4 running on my mac. I started with a simple neopixel test, I can get lights to flash fine.
I've started trying to play with the 34725 colour sensor, trying to use the sample code here: https://learn.adafruit.com/chameleon-scarf?view=all#.
When I upload the sketch with the 34725 connected, the light on that module stays on and nothing much happens. I tried disconnecting the 34725 to trigger the:
'Serial.println("No TCS34725 found ... check your connections");'
message, but I'm not seeing anything on the serial monitor tab in the IDE. Any ideas what's going on here?
Thanks!
bld
Basic Flora question - not getting serial messages
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- bldintheplacetobe
- Posts: 3
- Joined: Sat Apr 01, 2023 8:56 pm
- barshatriplee
- Posts: 200
- Joined: Wed Mar 22, 2023 10:11 am
Re: Basic Flora question - not getting serial messages
Start troubleshooting. How are you connecting the sensor to flora? With conductive thread or crocodile clips? Please test the continuities of all the connections that you have made.
- bldintheplacetobe
- Posts: 3
- Joined: Sat Apr 01, 2023 8:56 pm
Re: Basic Flora question - not getting serial messages
Yeah, I replaced the alligator leads and things sprang to life. I guess my question stands: if the connections weren't right, and it wasn't detecting the module, why didn't I get a serial message over USB?
Thanks
Thanks
- adafruit_support_mike
- Posts: 67485
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Basic Flora question - not getting serial messages
With boards that handle USB communication interally (like the Flora), there's a chance that your code will start running before the computer can establish a USB Serial connection.
Commands under the Serial class fail silently when there's no Serial object, so 'no Serial output' is a common symptom of a board that hasn't had time to set up a Serial connection.
You'll often find something like:
to make sure the Serial connection exists before you try to use it.
Commands under the Serial class fail silently when there's no Serial object, so 'no Serial output' is a common symptom of a board that hasn't had time to set up a Serial connection.
You'll often find something like:
Code: Select all
while ( ! Serial ) { delay( 10 ); }
Serial.begin( 115200 );
- bldintheplacetobe
- Posts: 3
- Joined: Sat Apr 01, 2023 8:56 pm
Re: Basic Flora question - not getting serial messages
A-cha! The quirks of embedded systems!
Please be positive and constructive with your questions and comments.