Hi Alessandro, what are the default values for ADC_0 on the samr21-xpro board and which driver did you use?
Best Peter Am 11.10.2016 um 16:32 schrieb ALESSANDRO NICOLI: > Hi all, > I'm trying to use a Soil moisture sensor with a Samr21-xpro and RIOT os. > The sensor used is as follows : > > https://www.seeedstudio.com/Grove-Moisture-Sensor-p-955.html > > > I have *4 soil jars (with different moisture concentrations)* that i'm > gonna use for testing, i've already tried to get moisture values with > *Arduino > Uno* and they seem to be acceptable. > *For both, i used the built in ADC with 10 bits of resolution.* > > But when i try to use the samr21, it gets me always 330 as value (10 bits > ADC). > For the SAMR21* i used the default parameters for ADC_0*. > > There is a way to rectify the readings, or some kind of calibration to do? > > > Thanks a lot, > *best regards, * > *Alessandro* > > > > _______________________________________________ > devel mailing list > devel@riot-os.org > https://lists.riot-os.org/mailman/listinfo/devel > -- Peter Kietzmann Hamburg University of Applied Sciences Dept. Informatik, Internet Technologies Group Berliner Tor 7, 20099 Hamburg, Germany Fon: +49-40-42875-8426 Web: http://www.haw-hamburg.de/inet _______________________________________________ devel mailing list devel@riot-os.org https://lists.riot-os.org/mailman/listinfo/devel