serial monitor problem

Discussion in 'UDOO NEO' started by Gerry Arisandy, Mar 6, 2016.

  1. Gerry Arisandy

    Gerry Arisandy New Member

    Joined:
    Mar 6, 2016
    Messages:
    2
    Likes Received:
    0
    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.
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    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?
     
  3. Gerry Arisandy

    Gerry Arisandy New Member

    Joined:
    Mar 6, 2016
    Messages:
    2
    Likes Received:
    0
    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.
     
  4. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    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!
    [​IMG]
     
  5. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Did you manage to connect?
     

Share This Page