-
Notifications
You must be signed in to change notification settings - Fork 493
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
Check nRF52 ADC VREF #13
Comments
Defaults updates via a9e0508 |
I don't know much about these analog stuffs, there is also a commit from sandeep repo for this matter sandeepmistry/arduino-nRF5@c98a190 and I made a merge update from original repo df80f2e Please revise to make sure I does not make any stupid mistakes :) |
I've already fixed this, but thanks for the reference to Sandeep's changed. I might change my own code to stay compatible with that. |
Don't worry about the helper for the VBAT either, I'll take care of that. |
Fixed this with c834c6b and also set the default to 1/6 and internal which is what we'll use as a default, but this keeps it mostly consistent with Sandeep's code as well. |
The nRF52 ADC can be configured to use an internal +/-0.6V ref or external VDD: http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fsaadc.html&cp=2_2_0_36_7&anchor=concept_kxz_4pp_qr
Make sure we can easily switch between references with the ADC code on the Arduino side, and check that the change actually works.
analogReadResolution(14)
)analogReference
)Also ... set the default ADC parameters to the following:
Current defaults aren't useful since the gain is hard coded to '1':
See also #14
The text was updated successfully, but these errors were encountered: