SCD30 working with UNO, not Basic Proto

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
bn86
 
Posts: 10
Joined: Sun Apr 10, 2016 3:39 pm

SCD30 working with UNO, not Basic Proto

Post by bn86 »

Hello,

I have a Feather 32u4 Basic Proto and a Sensirion SCD30 (the basic module, not the Adafruit version)

The SCD30 works perfectly connected via I2C to an UNO, but the data does not arrive when connected to the Basic Proto. I've tried the example code in all available SCD30 libraries.

Am I missing something fundamental?

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

Re: SCD30 working with UNO, not Basic Proto

Post by dastels »

The UNO runs with 5v logic, the Feather with 3.3v. Are you powering the sensor with 3.3v?

Dave

User avatar
bn86
 
Posts: 10
Joined: Sun Apr 10, 2016 3:39 pm

Re: SCD30 working with UNO, not Basic Proto

Post by bn86 »

Thanks Dave,

Yes, I'm powering with 3.3v from the Feather. The same setup works with an OLED display via I2C, so that bit is working.

Could the libraries be written for UNO and not compatible with the Feather?

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

Re: SCD30 working with UNO, not Basic Proto

Post by dastels »

You say you're using the bare module? If so, do you have pullups on SCL and SDA?

Dave

User avatar
bn86
 
Posts: 10
Joined: Sun Apr 10, 2016 3:39 pm

Re: SCD30 working with UNO, not Basic Proto

Post by bn86 »

Ah, no I don't. Thanks - I've added them (although it worked on the UNO without them)

Just noticed the light on the sensor does not pulse like it does with the UNO. Not getting enough power?

Edit: the sensor only works with the UNO on 5v, even though the specs state 3.3V - 5.5V.

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

Re: SCD30 working with UNO, not Basic Proto

Post by dastels »

I'm looking at the datasheet and it already has pullups to 3v.

No idea about the LED, but power should be ok.

You changed the board selection and recompiled for the Feather?

Have you tried adding some instrumentation (using Serial.println() or a logging library) to have a look at what the code is doing?

Dave

User avatar
bn86
 
Posts: 10
Joined: Sun Apr 10, 2016 3:39 pm

Re: SCD30 working with UNO, not Basic Proto

Post by bn86 »

Hmm, I got it working by supplying the SCD30 with 5v from the Feather's USB pin.

However, I plan to use this with a LiPo battery (the whole point of using the Feather) so I'm not sure if this is a solution.

Can I get 5v when hooked up to the battery?

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

Re: SCD30 working with UNO, not Basic Proto

Post by dastels »

You could use a boost like https://www.adafruit.com/product/4654. But it should work when powered by 3.3v.

Dave

User avatar
bn86
 
Posts: 10
Joined: Sun Apr 10, 2016 3:39 pm

Re: SCD30 working with UNO, not Basic Proto

Post by bn86 »

Thank you

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

Return to “Arduino Shields from Adafruit”