Error to compile



  • Hi i'm trying to run the sketch code bellow in arduino IDE 1.8, but i'm receiving this error:

    Monitor serial : ash: telnet: not found

    https://docs.onion.io/omega2-arduino-dock-starter-kit/arduino-kit-reading-a-temp-sensor.html

    Any idea?
    exit status 1
    Error compilando para a placa Onion Arduino Dock
    O sketch usa 3626 bytes (11%) de espaço de armazenamento para programas. O máximo são 32256 bytes.
    Variáveis globais usam 228 bytes (11%) de memória dinâmica, deixando 1820 bytes para variáveis locais. O máximo são 2048 bytes.

    Flashing application '/tmp/sketch.hex' ...

    avrdude: AVR device initialized and ready to accept instructions

    Reading | ################################################## | 100% 0.01s

    avrdude: Device signature = 0x1e950f
    avrdude: erasing chip
    avrdude: reading input file "0x3f"
    avrdude: writing lock (1 bytes):

    Writing | ################################################## | 100% 0.00s

    avrdude: 1 bytes of lock written
    avrdude: verifying lock memory against 0x3f:
    avrdude: load data lock data from input file 0x3f:
    avrdude: input file 0x3f contains 1 bytes
    avrdude: reading on-chip lock data:

    Reading | ################################################## | 100% 0.00s

    avrdude: verifying ...
    avrdude: 1 bytes of lock verified
    avrdude: reading input file "0x05"
    avrdude: writing efuse (1 bytes):

    Writing | ################################################## | 100% 0.00s

    avrdude: 1 bytes of efuse written
    avrdude: verifying efuse memory against 0x05:
    avrdude: load data efuse data from input file 0x05:
    avrdude: input file 0x05 contains 1 bytes
    avrdude: reading on-chip efuse data:

    Reading | ################################################## | 100% 0.00s

    avrdude: verifying ...
    avrdude: 1 bytes of efuse verified
    avrdude: reading input file "0xDA"
    avrdude: writing hfuse (1 bytes):

    Writing | ################################################## | 100% 0.00s

    avrdude: 1 bytes of hfuse written
    avrdude: verifying hfuse memory against 0xDA:
    avrdude: load data hfuse data from input file 0xDA:
    avrdude: input file 0xDA contains 1 bytes
    avrdude: reading on-chip hfuse data:

    Reading | ################################################## | 100% 0.00s

    avrdude: verifying ...
    avrdude: 1 bytes of hfuse verified
    avrdude: reading input file "0xFF"
    avrdude: writing lfuse (1 bytes):

    Writing | ################################################## | 100% 0.00s

    avrdude: 1 bytes of lfuse written
    avrdude: verifying lfuse memory against 0xFF:
    avrdude: load data lfuse data from input file 0xFF:
    avrdude: input file 0xFF contains 1 bytes
    avrdude: reading on-chip lfuse data:

    Reading | ################################################## | 100% 0.00s

    avrdude: verifying ...
    avrdude: 1 bytes of lfuse verified

    avrdude done. Thank you.

    avrdude: AVR device initialized and ready to accept instructions

    Reading | ################################################## | 100% 0.01s

    avrdude: Device signature = 0x1e950f
    avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
    To disable this feature, specify the -D option.
    avrdude: erasing chip
    avrdude: reading input file "/tmp/sketch.hex"
    avrdude: input file /tmp/sketch.hex auto detected as Intel Hex
    avrdude: writing flash (32768 bytes):

    Writing | ################################################## | 100% 2.43s

    avrdude: 32768 bytes of flash written
    avrdude: verifying flash memory against /tmp/sketch.hex:
    avrdude: load data flash data from input file /tmp/sketch.hex:
    avrdude: input file /tmp/sketch.hex auto detected as Intel Hex
    avrdude: input file /tmp/sketch.hex contains 32768 bytes
    avrdude: reading on-chip flash data:

    Reading | #################################################> Done, flash successful

    Flash complete!

    | 100% 2.25s

    avrdude: verifying ...
    avrdude: 32768 bytes of flash verified
    avrdude: reading input file "0x0f"
    avrdude: writing lock (1 bytes):

    Writing | ################################################## | 100% 0.01s

    avrdude: 1 bytes of lock written
    avrdude: verifying lock memory against 0x0f:
    avrdude: load data lock data from input file 0x0f:
    avrdude: input file 0x0f contains 1 bytes
    avrdude: reading on-chip lock data:

    Reading | ################################################## | 100% 0.00s

    avrdude: verifying ...
    avrdude: 1 bytes of lock verified

    avrdude done. Thank you.



  • @leo-moura Congratulations! You've flashed / uploaded a sketch successfully. 🙂

    I think this error message brothers you:

    Monitor serial : ash: telnet: not found

    Onion's Arduino Dock 2 isn't able to communicate with Arduino IDE's Serial Monitor by default due to the HW concept.
    You should use Omega2's CLI instead. Connect to it with ssh and type - for example - this command:
    cat /dev/ttyS1



  • @György-Farkas worked in ssh terminal

    But i have a doubt about the data read :

    Seems wrong , why : 406.05 degrees C?

    406.05 degrees C

    762.90 degrees F

    4.57 volts

    407.03 degrees C

    764.66 degrees F



  • @leo-moura Probably the analog pin A0 is not connected - it's floating.
    Check the sensor. TMP36 should be connected - when facing the flat side of it (you can read the text):
    the left pin to 5V, the middle pin to the analog pin A0, and the right pin to GND.
    0_1521006961900_TMP36.jpeg

    Though I think it's OK - you could check the program (and Arduino) too - without TMP36.
    Connect the A0 pin to GND and you should see:
    0.00 volts
    -50.00 degrees C
    -58.00 degrees F

    Make a resistive voltage divider: 5V -- 200 Ω -- 200 Ω -- 100 Ω -- GND.
    Connect the A0 pin to the 100 Ω resistor and you should see (approximately):
    1.00 volts
    50.00 degrees C
    122.00 degrees F

    Good luck!


Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.