Hy guys, I'm trying to use my Grove Shield (v 1.2) with Udoo. Looking at this tutorial it should be really simple: http://www.udoo.org/starter-kit-grove-p ... sy-making/ but i'm unable to read analog sensor values from, for example, a termistore: Code: int a; int del=2000; // duration between temperature readings float ctemperature; int B=3975; float resistance; void setup() { Serial.begin(9600); Serial.println("Temperature"); } void loop() { a=analogRead(0); resistance=(float)(1023-a)*10000/a; ctemperature=1/(log(resistance/10000)/B+1/298.15)-273.15; Serial.print(ctemperature); Serial.println(" C"); delay(del); } The termistore is connected to Grove shield analog port 0 (A0). Looking at the serial Monitor I can find only "Temperature", then the sketch hangs on. Someone can help me? Thank you, bye!!
There's been some known issues with analog input, caused by the compiler. The Udoo guys are working on it. that MIGHT be the issue here.
Ok thanks for the advice! I'll try the workaround by Lifeboat_Jim suggested here: http://udoo.org/forum/use-serial-printl ... -t493.html asap and let you know the results! Thanks, bye!
Well, I preferred a more 'stable' solution than the Lifeboat_Jim workaround. The problem is with the Udoo Arduino Ide itself, so I've followed the guide here: http://www.udoo.org/ProjectsAndTutorials/get-the-arduino-ide-ready-to-program-udoo/?portfolioID=1394 and Grove shield now works like a charm! Thanks for your help!