lancaster-university / codal-core

MIT License
10 stars 28 forks source link

AnalogSensor distortion #20

Open VictorDuma-zz opened 6 years ago

VictorDuma-zz commented 6 years ago

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 commented 6 years ago

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

jamesadevine commented 6 years ago

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

VictorDuma-zz commented 6 years ago

"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