Coder Social home page Coder Social logo

Comments (6)

bill-orange avatar bill-orange commented on July 23, 2024

OOPS. This is from the AMS web site (bold face my edit):

CCS811 Firmware - Revision History

Version Changes

2-0-1 Firmware build including all 2-0-0 features accept management of the burn in period

2-0-0 MOX sensor need a burn-in period of several days of operation from first power on before
eCO2 and TVOC readings stabilize. The burn-in period is now managed so that stable
readings are available after only 60 minutes of operation after first power on
Extend eCO2 maximum output value to 64000 ppm
Extend TVOC maximum output value to 64000 ppm
Removed NTC functionality. Pin 8 not measured and left undriven
Added "Internal_State" variable to the command register map
Improved the algorithm which computes eTVOC and eCO2

1-1-0 Initial Version

Additionally, there is a new firmware version available for use on used chips 2.0.1.
@maarten-pennings can you add it to this git page?

from ccs811.

maarten-pennings avatar maarten-pennings commented on July 23, 2024

Hi @bill-orange,
I checked the zipfile https://ams.com/documents/20143/36005/CCS811_SW000246_2-00.zip
(click on 'CCS811 Application firmware version 2.0.0' at https://ams.com/ccs811#tab/tools).

The Revision_History.txt inside says

2-0-1 Firmware build including all 2-0-0 features accept management of the burn in period

The readme.txt inside says

The version of firmware to use depends on the usage status of the device.
New fresh sensors use firmware 2-0-0
Sensors run for a number of days use firmware 2-0-1

I interpret this as follows.

  • the two firmware images (2-0-0 and 2-0-1) are identical
  • the one exception: 2-0-1 skips the burn-in correction period

This means that if you use 2-0-0 on a used sensor, the first ~5 days its reported values are suboptimal because burn-in correction is applied. But after the 5 days, both firmware are the same again.

So, to keep things simple, I propose we stick to the 2-0-0.
It is tested, and 2-0-1 would be incorrect for fresh sensors...

If you really want to switch to 2-0-1, download and unzip the zip file mentioned above, run hex.py on CCS811_FW_App_v2-0-1.bin to generate the h-file, and use the generated h file instead of CCS811_SW000246_1-00.h (see https://github.com/maarten-pennings/CCS811/blob/master/examples/ccs811flash/README.md#process)

By the way, I have added the "removed NTC" note to the example sketch.

from ccs811.

bill-orange avatar bill-orange commented on July 23, 2024

Makes sense to me. I was going to run hex.py but I ran into problems. I am using Eclipse and get this error.

File "C:\Users\William\workspace\hex conversion\hex.py", line 32
if( n%16==0 ): print( " ", end="" )
^
SyntaxError: invalid syntax

If I delete that line (and similar) for testings, I find that the byte.hex() conversion to hex fails with the .hex function missing.

What environment python environment are you using? It sure must be different than mine!

Suggestions?

from ccs811.

maarten-pennings avatar maarten-pennings commented on July 23, 2024

Interesting ...
The parenthesis used in the 'if' are not needed (unlike in C or javascript).
But parenthesis (usually) thet don't harm: 2+3 is the same as (2+3).

I just tried this

C:\Users\maarten>python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> if( 2==2 ) : print("test")
...
test

So, I'm guessing here, that you still run python 2.x, and I'm on 3.x.

You could try doing the spaces inside-out
from

if( n%16==0 ):

to

if (n%16==0) :

or simply delete

if n%16==0 :

from ccs811.

bill-orange avatar bill-orange commented on July 23, 2024

You are correct I am on 2.0.. There are many other errors to get past so, I will try running it on one of my PIs. they have both 2.x and 3.x

from ccs811.

bill-orange avatar bill-orange commented on July 23, 2024

mission accomplished .
CCS811_FW_App_v2-0-1.zip

from ccs811.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.