Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

voltage #2

Open
abattya opened this issue Jun 27, 2022 · 3 comments
Open

voltage #2

abattya opened this issue Jun 27, 2022 · 3 comments

Comments

@abattya
Copy link

abattya commented Jun 27, 2022

Hi, Your code is working for me, it shows around 8.79 PPM, I dont know why, after a time it starts increasing :
21:07:15.528 -> PPM = 8.76
21:07:20.551 -> PPM = 8.88
21:07:24.535 -> PPM = 8.97
21:07:26.546 -> PPM = 9.02
21:07:30.559 -> PPM = 9.11
21:07:37.558 -> PPM = 9.22
21:07:40.545 -> PPM = 9.25
21:07:41.525 -> PPM = 9.27
ETC.
I'm not really in the electronics, but I read that this sensor neeeds 1.4V to measure and 5V to heat, and I've been watching really complicated projects with voltage regulators and other devices to manage the voltage, because if you dont use it right, the sensor will be damaged etc.. Im wondering how this very simple connection with just 3 wires(not even the digital output of the sensor) would work fine. Thanks for your answer! (and sorry for my mistakes:D)

@fjebaker
Copy link
Owner

fjebaker commented Sep 1, 2022

Hello! I am not entirely familiar with voltage regulation for this sensor -- the one I had when programming this library had a little board that it was attached to, that seemed to take care of regulation for me.

The reason for it increasing is more likely due to the calibration. In the technical document is described how the sensor should be left on to calibrate for 48 hours, to permit sufficient heat-up and adjustment to the ambient environment, though in practice I found 5 minutes to be more than sufficient. You can either get your script to wait some time during setup, else do it once and hardcode the R0 value as described in the README of this repository, with the assumption that the operating conditions of your sensor wont change much over the lifetime of its use (a hand-wavy assumption at best).

Note that calibration, whether during setup or when hardcoded, needs to be in clean air (~10ppm).

@abattya
Copy link
Author

abattya commented Sep 8, 2022

Thank you! Another question, the data sheet says, that it needed to heat up the sensor first, for 60 seconds, and just after this can do the measure for 90 seconds on low voltage, as you can see in the datasheet(pic). If you do the measure every second its not showing uncorrect results. Im doing this project for my university thesis, thats why im so curious :D
image

@fjebaker
Copy link
Owner

fjebaker commented Sep 8, 2022

I'm afraid this is a little beyond my understanding of this component. The model I had, with the circuit board, seemed to operate fine and consistently over long periods even when measuring rapidly. I don't know if the circuit kept the device constantly at high or low heating voltage.

It would seem the device should be kept on a heating cycle:

Screenshot 2022-09-08 at 10 41 41

My naive understanding of electronics and trends suggest keeping the device at low voltage heating saturates the signal to its "true" value, and unfortunately the datasheet does not expliticly clarify the need for the high voltage.

If you do come up with an answer to this, please drop it in this thread, both so I can learn, and incase others have the same question.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants