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

AnalogSensor distortion #20

Open
VictorDuma-zz opened this issue Feb 16, 2018 · 3 comments
Open

AnalogSensor distortion #20

VictorDuma-zz opened this issue Feb 16, 2018 · 3 comments

Comments

@VictorDuma-zz
Copy link

There are temperature and light sensors on the BrainPad using AnalogSensor class. It is good values when I use only temperature(I mean, LightSensor doesn't init). But, when both are inited, temperature value changes on the light.
https://github.com/VictorDuma/codal-brainpad-1/blob/sensors/samples/main.cpp

I checked this case in other environments and it works well.

@VictorDuma-zz
Copy link
Author

So, I guess, light and temperature sensors use one ADC and something wrong with switching between them.

@jamesadevine
Copy link
Contributor

@VictorDuma What version of mbed did you compile? It seems like mbedos has some considerable changes compared to mbed-classic:

@VictorDuma-zz
Copy link
Author

"libraries":[
{
"name":"codal-core",
"url":"https://github.com/lancaster-university/codal-core",
"branch":"master",
"type":"git"
},
{
"name": "codal-mbedos",
"url": "https://github.com/lancaster-university/codal-mbedos",
"branch": "master",
"type": "git"
}
default settings for BRAINPAD

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

2 participants