Comments (3)
hi @y3nd
are you using main or develop? they diverged currently a lot. of course main should be stable to use, but I suggest develop for new projects as there are some breaking changes and you might run into trouble adopting afterwards... but honestly I can not guarantee develop is working currently.
I can not remember ever experiencing your issues... a dirty fix which came to my mind is to increase OSR
more likely it is an issue with _getValue - which data format are you using? as far as I remember this function changed as well between those branches... converting the raw value into signed 32bit dependent on the data_format and resolution and there are bitmasks which might explain your issue.
from arduino_mcp3x6x_library.
I forked the main branch in December, i'll try the develop branch next but I don't think it's a conversion issue from the lib, since printing the raw values from the SPI transfer are showing the same 00000 for LSB. I saw on the web issues with SAR, and AD has an article about "stuck codes" but it doesn't match with the "specific stuck codes" issue I have, and my board has practically no noise as the analog parts are quite decoupled with their own power-supply etc.. but it could be flawed somewhere.
It might be an issue related to impedance matching with our amplifier, or specific high frequency noise affecting the ADC I don't really understand.
I have contacted Microchip support too.
from arduino_mcp3x6x_library.
I circumvented the ADC spikes issue by using differential mode. No spikes or stuck codes now, but really high gain all the time, about x20 gain. Setting the gain just multiplies the always-present x20 gain (0.33x = 6.6x, 1x = 20x, 2x = 40x etc..) really weird. I've contacted Microchip and they have no idea of what's going on. It might be a counterfeit, but I bought it through JLCPCB...
from arduino_mcp3x6x_library.
Related Issues (11)
- Problems with SDO on MCP3464 HOT 3
- Some questions about the SPI HOT 4
- How do I add license in my source code ? HOT 2
- ESP32-S3-Mini and MCP3462R not working in Mux Mode HOT 24
- mcp 3462 with Arduino Zero definition-question not issue! HOT 6
- Not really an issue :) HOT 3
- Get stuck in mcp.analogRead loop HOT 7
- Function: _getValue(uint32_t raw) wrong return HOT 8
- How is the “_status.dr” logic changed? HOT 8
- Difficulty with compiling for RP2040 using earlephilhower core HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino_mcp3x6x_library.