-
Notifications
You must be signed in to change notification settings - Fork 7
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
FDC1004 evm with Arduino Uno showing problem #2
Comments
Thought I'd bump instead of repeating. I had this working fine and it suddenly stopped working about an hour ago with fdc.getCapacitance() returning -2,147,483,648 and "error" for each channel. I have not changed anything in either hardware or software. Any ideas what to do? |
-2,147,483,648 usually this indicates a loose wire or a power supply just
barely within spec (since it means the FDC1004 isn't sending any bits at
all). Check your voltages and wires, and make sure that you are using a
3.3V arduino (I've heard some people have intermittent success with a 5v
arduino, but they eventually run into problems like this).
…On Mon, Feb 13, 2017 at 2:55 AM, ShockDog ***@***.***> wrote:
Thought I'd bump instead of repeating. I had this working fine and it
suddenly stopped working about an hour ago with fdc.getCapacitance()
returning -2,147,483,648 and "error" for each channel. I have not changed
anything in either hardware or software. Any ideas what to do?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFmurfiAHKIzoQEqJ-aBjCXWsm_-9yD8ks5rcDamgaJpZM4IQ7nl>
.
|
I am using the central section of the FDC1004EVM kit as the "chip", and I have GND and 3.3V from an Uno connected to the chip, and the SDA and SCL lines connected through a level shifter (5V -> 3.3V) and I've checked connections and voltages with a multi-meter and all seems to be correct. I previously had it working consistently without the level shifter for the SDA and SCL lines, though I am now using another chip in case that damaged it somehow. I should add that both chips are working with the Sensing Solutions EVM GUI. I wrote a sketch that just uses the Wire library to set and read the registers as an experiment, and it looks like it is establishing the connection as I can read the POR values off the chip, including correct manufacturer and device IDs. The sketch is below:
The serial output is as follows:
It's like when I try to set the value of 0x0C (FDC_CONF) it resets the chip? I've tried various other values as well. I have duplicated the process with the same FDC1004 used in the sketch above, but plugging into the FDC1004EVM I2C converter and modifying the registers via the Registers tab in the Sensing Solutions EVM GUI, and it behaves as expected (e.g. once I set 0x0C to 0x01F0, I see activity on registers 0x00 -> 0x07). This is certainly a little out of my depth so I can't rule out making a rookie error somewhere. Can you spot anything that jumps out at you? |
Hi! Has anybody gotten an update on what can be causing this error rather than loose wires? Because I have checked all the connections in my set up, and the same error appears. Also, I supplied the sensor with exactly 3.3 V from a variable power source, by measuring the voltage at VDD and GND pins of the chip. I have also tried changing the pull-up resistors of the SDA and SCL cables from 10K ohmns to different values down to 0 ohms and I still get the same error. Thanks in advance! |
I had the same issue. I was able to sort it out using the following code segment. Note
|
after loading FDC1004 code, it is showing error and -2,147,483,648. can you help?
The text was updated successfully, but these errors were encountered: