beshaya / fdc1004 Goto Github PK
View Code? Open in Web Editor NEWArduino Library for FDC1004 Capacitance to Digital Sensor
Arduino Library for FDC1004 Capacitance to Digital Sensor
FEMTOFARADS_CAPDAC is set to 3028. I think there is two problems with that:
First, I guess you got that value by reading the data sheet: the max value of the capdac is 96.875. 5 bits = 32 steps so 1 bit is 96.875 / 32 = 3.02734375. Multiply by 1000 and you have 3027, not 3028. Right? Or is there a reason why you round up?
But I think you miss that the max value of CAPDAC is 31, not 32. The data sheet says Coffset = CAPDAC * 3.125. And it adds up: the max value of CAPDAC is 11111b = 31 so the max offset is 31 * 3.125 = 96.875.
So if I'm not mistaken FEMTOFARADS_CAPDAC should be 3125.
I tried several tims and I am unable to communicate with the FDC104EVm. I noticed even after removing the chip, the Arduino is still showing "0 pf". Can someone suggest an urgent solution? I am stuck with my project.
after loading FDC1004 code, it is showing error and -2,147,483,648. can you help?
Hi,
I am using your library, which works really well! Thanks for that.
However, I just spent half a day of debugging to find out that a missing "return 0" at the end of FDC1004::triggerSingleMeasurement can lead to the function returning something non-zero, and then the code stops working.
Maybe nice to fix that :)
Thank you,
René
Hello All,
I am new to Arduino (2 days old!). I started using the protocentral FDC1004EVM breakout trying to execute
https://www.hackster.io/team-protocentral/non-contact-capacitive-liquid-level-sensing-using-fdc1004-9333c7
and using codes
https://github.com/Protocentral/ProtoCentral_fdc1004_breakout
I am stuck with the the serial monitor showing 0.00pF always and shows no readings even if i bring my hand close to the chip.
I require urgent help. Kindly give in your valuable suggestions.
Hi how can i measure more than 100pf capacitance ? thanks
HI beshaya,
This code is very useful to start with FDC1004 as there is very little documentation available on net for FDC1004. The issue i am now facing is my device always return FFFF FFFF as a raw data. could you Please help me out in detecting where it is going wrong. I am using it with arduino Pro mini atmega328.
I have tried different chips of FDC1004. result is still same.
Thanks in advance.
Akshay Ghadage
In the function "FDC1004::read16()", there is a Wire.beginTransmission() before the Wire.requestFrom() and a Wire.endTransmission() after a Wire.requestFrom(). Those can be removed.
Explanation: Common-mistakes, number 2 and 3.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.