Difference between revisions of "Testing and hacking the SCD 41"

From Hackteria Wiki
Jump to: navigation, search
(Comparing the different Sensors)
 
Line 5: Line 5:
 
===Comparing the different Sensors===
 
===Comparing the different Sensors===
  
https://gitlab.com/nanocastro/camara-respiracion-suelo/-/blob/Development/Version3%20-%20Biomaker/CO2%20sensor%20performance%20test.md
+
https://gitlab.com/nanocastro/camara-respiracion-suelo/-/blob/master/Docs/CO2%20sensor%20performance%20test.md
  
 
[[File:Nano_sensorTest.jpg|600px]]
 
[[File:Nano_sensorTest.jpg|600px]]

Latest revision as of 13:51, 24 June 2022

<< CO2 Soil Respiration Chamber#UROŠ new CO2 soil chambers

Sensirion webScreenshot.jpg

Comparing the different Sensors

https://gitlab.com/nanocastro/camara-respiracion-suelo/-/blob/master/Docs/CO2%20sensor%20performance%20test.md

Nano sensorTest.jpg

Nano sensorPerformace.jpgRewetted soil.png

Circuit Python and FeatherS2

ESP32 co2onOLED.jpg

RandePrototype SCD41 feathers2.jpg

See some first notes and experiments here: https://mega.hackteria.org/index.php/s/AzikGk77wAdPdqg

Mbe add even another VOC sensor?

With all the libraries and examples prepared by sensirion and Adafruit, it was easy to connect it all together using the FeatherS2 and CircuitPython. A first prototype is connected and working.

RandePrototype SCD41 indoorTest.jpg

First measurements look promising, very stable, relatively fast response times. The library is very easy to use, auto-calibration has to be turned off. During the start of the code you can adjust a temperature_offset to calibrate the temp sensor. Additionally you have to adjust the pressure or altitude to where you are doing the measurement, altitude offset (default hardware is 0m). First experiments show that this is pretty crucial, details will have to explored and discussed with the sensirion tech team.

Testing and hacking the SCD 41

Checking the PCB and the footprint to plan our own reflowing of PCB

Opening up the sensor

What is inside? As described on the sensirion product page, the new sensor works on the "photo-accoustic effect". So it's similar, but also a different method, than other NDIR sensors.

It's pretty easy to understand what's under the hood for the SCD41. There is a signal-processor, to read and control the sensor components and communicate to the outside via I2C, there is the "classic" SH40 temperature & humidity sensor, and now... There is an IR emmiter with a dedicted filter on it and a MEMS microphone. Everything is enclosed within a small metal case, with a hole to the outside world and a particle filter stuck onto it.

Photoacoustic effect is the generation of acoustic waves as a result of light absorption in a material. As an example, consider a laser beam that is passed through a gas sample, which is enclosed in a cell of a constant volume. The laser energy absorbed by the sample molecules leads to local heating of the gas, which causes a pressure increase. If the optical excitation of molecules is done periodically, by modulating the laser power or frequency, also the pressure change is periodic. This acoustic wave at the modulation frequency can be detected with a microphone. The microphone signal is directly proportional to the absorbed power, which makes it possible to determine the concentration of absorbing molecules in the sample. Taken from this source on laser spectroscopy

Designing UROŠ - CO2 brkout PCB

UROS CO2-brkout BackFront.png

PCB (printed circuit board) breakout board for CO2 sensor (SCD41), NEO-pixel (WS2812B) and I2C interface (JST-SH4)

Designed with open source software: Kicad, Inkscape and svg2shenzhen

The files "as ordered" are available on github: https://github.com/GenericLab/UROS-CO2_brkout

It arrived!!!

UROS pcb foto2.jpgUROS pcb foto1.jpg

UROŠ - CO2 brkout PCB reflow soldering

First reflowed UROS CO2-board.jpg

We managed to reflow a first working version of our own PCB!!!

Just un-flowed from the original Sensirion break-out board using our nice little reflow hotplate. Cos we didn't have proper reflow solder paste, we just tinned all the pads with normal solder, and wigged it off to create a very thin flat layer of solder on all the copper for the SCD41 sensor. Then mounted the sensor and back onto the hotplate, using 220 / 250 °C, and after it seemed to have settled down into the molten solder, we took the board off and cooled it down.

Then we soldered the remaining parts, some resistors for pull-up on the I2C channel, LED and a NeoPixel on the backside.

UROS CO2-board back.jpg

Wiring it up, connecting the I2C connection and the extra wire for the neo-pixel.... It works!!

First working CO2-board.jpg

Minting UROŠ - CO2 brkout as NFT on OpenSea

UROS-brkout NFT.jpg

Go to OpenSea NFT marketplace

Serial Plotter and how to get dedicated soil resp data

Started to use this tool tauno-serial-plotter to plot data and export .png or .csv for further analysis / storage.

Export blowTest2.png