Hi, I just newbies for UDOO. I try to use Serial Monitor on internal Arduino IDE (UDOO Neo). this is my program. #include <Wire.h> #include <SparkFun_MS5803_I2C.h> MS5803 sensor(ADDRESS_HIGH); double pressure_abs; void setup() { Serial.begin(9600); sensor.reset(); sensor.begin(); } void loop() { pressure_abs = sensor.getPressure(ADC_4096); Serial.print("Pressure abs (mbar)= "); Serial.println(pressure_abs); delay(3000); } i have try it using arduino uno r3. and it works. but when i try using udoo neo, the serial monitor doesnt print anything. anyone can give me some solution? thank you.
It does not print anything at all? I see you use a special library. It is possible that it is not complient with the Neo. Did you try just some simple serial.print and println commands without the sensor data and library?
but i download it from arduino manager (include library -> manage library). and the library appeared at sketch -> include library -> SparkFun_MS5803_I2C.h. i've try some simple program and it works. but when i use the special library. the serial monitor doesnt print anything.
Not all libraries are ported to the Neo, see also http://www.udoo.org/forum/threads/arduino-libraries-on-udoo-neo-tell-us-what-to-port.3349/ So it is possible that this library needs some tweaks to run. We are waiting for some hints how to it ourselves. But I see that your sensor uses I2C to communicate with the Arduino To what pins did you connect the sensor? Like in the picture below? Because that will not work as the Neo has no I2C on Arduino side by default, and if made available on other pins. You have to remove the I2C-2 bus from the A9 side with the device tree editor and then you connect your sensor not to the A4/A5 pins but to the SCL/SDA pins on the Neo. And hopefully the library is flexible enough to get this running. Please let us know how things proceed!