AKstudios / CCS811-library

This is a library for the CCS811 digital TVOC/eCO2 Sensor by CCMOSS/AMS
Apache License 2.0
24 stars 10 forks source link

Problem with CJMCU-811 #2

Closed GillesC closed 7 years ago

GillesC commented 7 years ago

Hello

First of all thank you for making this library! I'm unable to get your test file working.

Connection: Loenardo............................CJMCU-811 3.3V......................................VCC GND.....................................GND GND.....................................ADD PIN_2...................................SDA PIN-3...................................SCL PIN_4...................................WAK PIN-7...................................INT

I get the following error: Error: Incorrect Hardware ID detected. I've written out the hw_id which is 0xFF.

Kind regards, Gilles Callebaut

AKstudios commented 7 years ago

This happens when the timing sequence for initialization isn't correct. Try adding some more delay. Also, try power-cycling the chip.

GillesC commented 7 years ago

I'll give it a try. Thank you for your time! I'll close this issue when the problem is resolved.

AKstudios commented 7 years ago

The example code in the library should work. Try switching to a 0.1uF cap and power cycle the circuit with sufficient time between each cycle (so cap is discharged).

Note that this a relatively new sensor, so it's possible there are some earlier finicky versions around in the market. It's also a bit tricky to get it reflowed correctly the first time since the pads are so small.

arronstone commented 7 years ago

@GillesC has it worked for you ? Please share details if it worked, as i am also facing the same issue.

GillesC commented 7 years ago

Hey, I haven't got the time to resolve this issue. I tried to increase some delays but without success.

On Thu, 13 Apr 2017, 18:09 arronstone, notifications@github.com wrote:

@GillesC https://github.com/GillesC has it worked for you ? Please share details if it worked, as i am also facing the same issue.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/AKstudios/CCS811-library/issues/2#issuecomment-293942183, or mute the thread https://github.com/notifications/unsubscribe-auth/AIOhi2EW2WX2P-_puCR51VGUycxHI3mFks5rvkjDgaJpZM4MeANL .

AKstudios commented 7 years ago

The library has been updated; should allow more time before first communication.

a-andreyev commented 7 years ago

tried today with CJMCU-811, working for me

madhujiot commented 6 years ago

Today, I got from Aliexpress the CJMCU-811 module and am trying to configure and run the CCS811-library example given in this repository, but facing below issue. Please suggest what could be wrong and appreciate your help.

My connections for the Arduino to CJMCU-811 Arduino <-----> CJMCU-811 3.3V <-----> VCC GND <-----> GDN GND <-----> ADD A4 <-----> SDA A5 <-----> SCL PIN_4(PWM) <-----> WAK NA <-----> INT NA <-----> RST

*NA = unused

COM port output(9600baud) per below:

CCS811 test Error: Incorrect Hardware ID detected. Initialization failed. CO2 concentration : 30720 ppm TVOC concentration : -29344 ppb

CO2 concentration : 30720 ppm TVOC concentration : -29344 ppb

CO2 concentration : 30720 ppm TVOC concentration : -29344 ppb

Thank you, Madhu

coolchip commented 6 years ago

I²C Address should be 0x5A or 0x5B. Perhaps this helps.