Circuitpython OLED & sensor on featherwing

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Eurekacode
 
Posts: 9
Joined: Tue Mar 23, 2021 12:56 pm

Circuitpython OLED & sensor on featherwing

Post by Eurekacode »

Hi all

Adafruit has a demonstration on Youtube called Adafruit Sensirion SCD-30 - NDIR CO2 Temperature and Humidity Sensor - STEMMA QT / Qwiic showing the readings on an OLED feather plugged into the featherboard.

CircuitPython example code is available for attaching either the sensor OR the OLED, a comprehensive search has not resulted in finding CircuitPython code combining the two - i.e. the data from the sensor appearing on the OLED. Would anyone be able to - including Adafruit to make such code available?
Attachments
example.png
example.png (151.1 KiB) Viewed 174 times

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Circuitpython OLED & sensor on featherwing

Post by mikeysklar »

Unfortunately, we didn't publish the demo code for that OLED + SCD30.

We do have a three example scripts for working with the SCD30 so you can immediately see the output on the REPL.

https://github.com/adafruit/Adafruit_Ci ... n/examples
https://learn.adafruit.com/adafruit-scd30/overview

Fortunatley, the 128x64 OLED FeatherWing is pretty easy to use. Guide here:

https://learn.adafruit.com/adafruit-128 ... cuitpython

User avatar
Eurekacode
 
Posts: 9
Joined: Tue Mar 23, 2021 12:56 pm

Re: Circuitpython OLED & sensor on featherwing

Post by Eurekacode »

Thanks for the reply. I have already tested the code for the SH1107 and the SCD-30 - NDIR CO2 Temperature and Humidity Sensor. Using MU, the sensor data can be seen in the REPL. After spending considerable time on the Adafruit website, there appears to be no single example code of sensor data being output to an Oled. This appears to be a shortcoming and can be compared to Youtube videos that show capability but nothing more. If one is to be stuck with the REPL, then to my mind, a better solution is to obtain the industrial solution produced by Sensirion.

I fully understand that while the emphasis is on teaching coding skills, sometimes one does not have the time or knowledge to undertake a new project - or fully engaged with numerous other projects. It really would have been beneficial if the example shown had a practical solution.

Surely Adafruit should be able to find the original code as used in the demo? Under the circumstances, the video is a bit misleading as one assumes that as a minimum appropriate example code will be included. Hopefully, Adafruit can sort this matter out.

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Circuitpython OLED & sensor on featherwing

Post by mikeysklar »

Eurekacode,

I'll request the demo code from engineering to see if they kept it around.

While I agree with you that it should be provided it is also not a big deal to load up the OLED 128x64 example and start adjusting it to output your sensor data.

User avatar
adafruit2
 
Posts: 22111
Joined: Fri Mar 11, 2005 7:36 pm

Re: Circuitpython OLED & sensor on featherwing

Post by adafruit2 »

theres an example here in the arduino library
https://github.com/adafruit/Adafruit_SC ... r/examples

User avatar
Eurekacode
 
Posts: 9
Joined: Tue Mar 23, 2021 12:56 pm

Re: Circuitpython OLED & sensor on featherwing

Post by Eurekacode »

Same problem, different customers. Refer to the post "CO2 Monitor Question - SCD-30."

The answer above is not the solution.

User avatar
adafruit2
 
Posts: 22111
Joined: Fri Mar 11, 2005 7:36 pm

Re: Circuitpython OLED & sensor on featherwing

Post by adafruit2 »

that code is the demo you requested. it sounds like you want *something* else that needs to be in circuitpython. we dont have the example ported. we have a lot of guides on displayio
https://learn.adafruit.com/circuitpytho ... -displayio

and here is a project with an oled
https://learn.adafruit.com/i-vote-d-pin/code

and a guide on a larger matrix display, you could start with it and change to the oled, then much around with fonts
https://learn.adafruit.com/matrix-porta ... o2-monitor

User avatar
Eurekacode
 
Posts: 9
Joined: Tue Mar 23, 2021 12:56 pm

Re: Circuitpython OLED & sensor on featherwing

Post by Eurekacode »

Code use in the original video demonstration is different as it does not use the OLED SH1107. The point I have been trying to make is that there is not one single example that I have been able to find that combines a featherboard with the featherwing display and sensor. Furthermore - while Adafruit has encouraged the adoption of Circuitpython and within the demonstration text it provides the guidance to boot into a Circuitpython environment, one then finds that no code exists to software couple the three components together.

My argument is that the project using the components from Adafruit cost £100 - not cheap - and while Adafruit demonstrates such functionality - no such functionality for the 3 readings have been achieved.

The link to the display info is useful - appreciated - but is not directly part of the issue raised.

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

Return to “Adafruit CircuitPython”