Skip to content
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

Capacitance Sensor Failing: Use Interrupts instead of Polling #154

Open
jmdelahanty opened this issue Mar 26, 2023 · 0 comments
Open

Capacitance Sensor Failing: Use Interrupts instead of Polling #154

jmdelahanty opened this issue Mar 26, 2023 · 0 comments

Comments

@jmdelahanty
Copy link
Contributor

jmdelahanty commented Mar 26, 2023

Suddenly during the last two recordings today, the capacitance sensor is behaving quite erratically. Restarting the Arduino, reconnecting pins and the MPR121 itself, and upping the sampling rate of the DAQ to make sure nothing is being missed appears to not have solved the problem. There's maybe a loose connection somewhere, but I searched for around 30 minutes and couldn't find it. Using a capacitance sensor test script isn't showing anything clearly messed up as it's registering touches okay...

There's some trials where it's capturing touches well, but many times it appears to be failing pretty severely. I'm also noticing that during the anticipatory licking it's more reliable but after the sucrose is delivered it seems to be missing licks quite a bit. I'm wondering if there's something in the Arduino code that has it being stuck and incapable of detecting/sending lick contacts that I've somehow never noticed before. After one last restart it appears that it's doing okay, but it's very concerning it's so damn unreliable so suddenly...

I think the overall implementation of this repository, from the hardware side to the software side, should be generally considered as a failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant