Code Monkey home page Code Monkey logo

cjmcu-8118_influxdb's People

Contributors

bfaliszek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

prakit340

cjmcu-8118_influxdb's Issues

Recommendations to be able to get correct sensor values

Hi bfaliszek

First of all thank you very much for sharing such a valuable project with community.
I have fully reproduced your project with the same hardware set and also InfluxDB and Grafana and I have found some bugs because I was not able to get the correct sensor values using the code. Let me share how I tuned the Arduino code.

In ClosedCube_HDC1080.cpp::begin function Wire.begin(); line needs to be enabled. Otherwise none of the below code gives the correct data

  Serial.print("Manufacturer ID=0x");
  Serial.println(hdc1080.readManufacturerId(), HEX); // 0x5449 ID of Texas Instruments
  Serial.print("Device ID=0x");
  Serial.println(hdc1080.readDeviceId(), HEX); // 0x1050 ID of the device

  printSerialNumber();

I have restored the function Wire.begin(); line again and disabled SoftwareReset option,

void ClosedCube_HDC1080::begin(uint8_t address) {
	_address = address;
	Wire.begin();
	
	// https://github.com/closedcube/ClosedCube_HDC1080_Arduino/pull/8/commits/724a233c76da13d4e559262eb6eeaa5037d33f09
	// HDC1080_Registers reg;
	// reg.SoftwareReset = 1;
	// writeRegister(reg);
	// delay(100);

	setResolution(HDC1080_RESOLUTION_14BIT, HDC1080_RESOLUTION_14BIT);
}
  1. Based on TI HDC1080 reference code HDC1080 Arduino Example Code v1.0 in page http://www.ti.com/product/HDC1080
    I added some typecasts and the most important diff I have seen regarding to receive the wrong temperature value 125.0 is that what was fixing this value is to change the delay(9) to delay(20) as written in sample TI code. I am sharing the final ClosedCube_HDC1080.cpp code I have used.

ClosedCube_HDC1080.zip

Here is the the wiring
20190802_185708

Kind Regards
Arda

Library Dependencies?

I'm attempting to install this library as a ZIP file, but the Arduino 2.0.3 IDE throws:
Error: 13 INTERNAL: Library install failed: library not valid
This library's description notes that it was based on three other libraries; I've installed each of them. Are there any other dependencies I might have failed to install that would cause this error to pop up?

set_envdata210 from HDC1080 data format wrong

// Pass environmental data from ENS210 to CCS811
ccs811.set_envdata210(float(hdc1080.readTemperature()), float(hdc1080.readHumidity()));

Need to refer CCS811 env data datasheet U16 format.

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.