-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Add adc support for Beagleconnect Freedom #73724
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
Conversation
Ayush1325
commented
Jun 4, 2024
- Fixes adc_cc13xx_cc26xx fails to build for beagleconnect freedom #73468
|
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
|
Not sure about the CI fail |
- Waiting for zephyrproject-rtos/zephyr#73724 - Tested analog_input sample Signed-off-by: Ayush Singh <[email protected]>
What seems to have added a similar issue: What seems to have fixed it: Do you have that commit in your tree? |
jadonk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you:
- Add both AN_MB1 and AN_MB2 such that it is clear how to read each correctly?
- Verify https://github.com/zephyrproject-rtos/zephyr/blob/main/samples/drivers/adc/adc_dt/README.rst example builds and runs fine?
samples/drivers/adc/adc_dt/boards/beagleconnect_freedom.overlay
Outdated
Show resolved
Hide resolved
eabef0c to
f9ba273
Compare
- Waiting for zephyrproject-rtos/zephyr#73724 - Tested analog_input sample Signed-off-by: Ayush Singh <[email protected]>
- Waiting for zephyrproject-rtos/zephyr#73724 - Tested analog_input sample Signed-off-by: Ayush Singh <[email protected]>
- Waiting for zephyrproject-rtos/zephyr#73724 - Tested analog_input sample Signed-off-by: Ayush Singh <[email protected]>
jadonk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you share the output of running the sample? It would be nice if the sample clarified that it was sampling MB1 AN.
samples/drivers/adc/adc_dt/boards/beagleconnect_freedom.overlay
Outdated
Show resolved
Hide resolved
|
Here is the output. @jadonk do note that this sample is for driver developers and not users ( |
Well, there are different classes of developers. I believe developers don't want to dive into the schematic or soc details and want to jump directly to the features exposed on the board. I'm not looking to update the sample itself, as it reflects a certain perspective on usage I'd want to preserve. I just note that in one example output, "ADC_0" was presented and I think presenting "MB1_AN" would be nice. I'm not sure if this is possible. BTW, 3.6V seems a bit high. What are you connecting? Is the ADC value accurate? |
samples/drivers/adc/adc_dt/boards/beagleconnect_freedom.overlay
Outdated
Show resolved
Hide resolved
It is possible, but changes will be required to the sample itself. Thus it should not be done in this PR.
It's an LDR at 5v. Reads around 100 when exposed to direct light. It can be scaled using Potentiometer. |
- Fixes zephyrproject-rtos#73468 Signed-off-by: Ayush Singh <[email protected]>
- Add support for beagleconnect freedom Signed-off-by: Ayush Singh <[email protected]>
jadonk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
cfriedt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool :-)
- Waiting for zephyrproject-rtos/zephyr#73724 - Tested analog_input sample Signed-off-by: Ayush Singh <[email protected]>
- Waiting for zephyrproject-rtos/zephyr#73724 - Tested analog_input sample Signed-off-by: Ayush Singh <[email protected]>
