Omega 2 and Arduino dock.



  • @frederic-raducki
    sometime I found my problem related to wifi, and yes, once I put it down it works but when I put it down again it won't work, I have tried not to touch it once it made connection, still works.. I am about 3 metres from the router which is a good distance.



  • @David-Wickenden said in Omega 2 and Arduino dock.:

    @frederic-raducki
    sometime I found my problem related to wifi, and yes, once I put it down it works but when I put it down again it won't work, I have tried not to touch it once it made connection, still works.. I am about 3 metres from the router which is a good distance.

    sure, thank for the suggestion but as you can see in screenshots higher: even a manual procedure with avr-dude fails 😞



  • Sketch uses 5042 bytes (15%) of program storage space. Maximum is 32256 bytes.
    Global variables use 199 bytes (9%) of dynamic memory, leaving 1849 bytes for local variables. Maximum is 2048 bytes.

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

    ERROR, flash NOT successful
    Flash complete!
    avrdude: AVR device not responding
    avrdude: initialization failed, rc=-1
    Double check connections and try again, or use -F to override
    this check.

    avrdude done. Thank you.

    No luck 😞



  • @rutayan-patro said in Omega 2 and Arduino dock.:

    Sketch uses 5042 bytes (15%) of program storage space. Maximum is 32256 bytes.
    Global variables use 199 bytes (9%) of dynamic memory, leaving 1849 bytes for local variables. Maximum is 2048 bytes.

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

    ERROR, flash NOT successful
    Flash complete!
    avrdude: AVR device not responding
    avrdude: initialization failed, rc=-1
    Double check connections and try again, or use -F to override
    this check.

    avrdude done. Thank you.

    No luck 😞

    you have the same error as me right ?
    i ordered another omega2 on indieGogo .. i hope that wen i receive it i will be able to compare if my 2nd still has the same issue ...
    for now i just dont use the Omega and i purchased a RaspberryPi3 to learn meanwhile i have a fix for Avrdude



  • @frederic-raducki I think buying another Omega 2 is a bad idea. I've got a support ticket open over a month ago and have yet to receive a response. It's been "Being Processed" for 31 days now. Giving these guys more money seems like a bad idea until they prove they can sort this stuff out.



  • @frederic-raducki @rutayan-patro have you ever managed to get around this problem?

    I am using arduino-dock (version 1) on Omega2+ and whenever I try to flash the bootloader I get AVR device not responding

    I'm using avrdude: Version 6.1, compiled on Feb 3 2017 at 01:12:05

    root@Omega:~# sh /usr/bin/arduino-dock flash bootloader
    > Flashing bootloader...
    
    avrdude: AVR device not responding
    avrdude: initialization failed, rc=-1
             Double check connections and try again, or use -F to override
             this check.
    
    
    avrdude done.  Thank you.
    
    
    avrdude: AVR device not responding
    avrdude: initialization failed, rc=-1
             Double check connections and try again, or use -F to override
             this check.
    
    
    avrdude done.  Thank you.
    
    > Done
    


  • @Venet said in Omega 2 and Arduino dock.:

    I am using arduino-dock (version 1) on Omega2+ and whenever I try to flash the bootloader I get AVR device not responding
    ...

    root@Omega:~# sh /usr/bin/arduino-dock flash bootloader
    > Flashing bootloader...
    
    avrdude: AVR device not responding
    avrdude: initialization failed, rc=-1
             Double check connections and try again, ...
    

    Yes, because those connections are really missing on the first version of Arduino Dock.
    Arduino Dock 2 has got an ICSP / ISP programming interface.
    So you should build something similar circuit to burn a bootloader into the ATmega of a version 1 Dock with Omega2.



  • Thanks @György-Farkas

    I'm new to arduino, so does this mean that I cannot use the arduino-dock (v.1) with Omega2+?

    Is there any way to access GPIO pins of Omega2+ through arduino-dock?



  • @Venet
    Unfortunately I have never seen - in reality - the version 1 Arduino Dock yet.
    The Onion's schematic seems to be correct, except the representation of the reset button (SW2 RESET BTN).

    So - according to that schematic - if you want to use Arduino Dock v1 with Omega2 you should

    • isolate pin_2 of Omega2 labeled 11 (ie. GPIO_11 / BOOTSTRAP_4) from its socket's pin
    • connect pin_2 of Omega's socket labeled VDD25 (ie. 2.5 V supply) to 3.3 V

    (The "barbaric" solution: cut PCB trace(s) of socket's pin_2 and tie all VDD25 labeled points to 3.3 V with wires.)

    I think this is the minimal mandatory modification.
    Is this resolvable? Can you do this?


    On version 1 dock Omega and the ATmega MCU can communicate via a serial connection and / or via I2C only.
    So Arduino can not access Omega's GPIO pins directly.



  • Task 2
    connect pin_2 of Omega's socket labeled VDD25 (ie. 2.5 V supply) to 3.3 V

    is unnecessary. Omega2's own Net_Power pin (2.5V) pin internally is open-circuit.

    This pin's original purpose is to supply DC bias for Ethernet magnetics (transformer) center tap.
    For MT7688, it's not needed.

    ccs_hello



  • @ccs-hello
    You are talking about Omega's pin 25 (NET_POW) on the right hand side.
    I am talking about Omega's pin 2 (VDD25) on the left hand side.
    In my previous post I only tried to write the very first steps about "How to use the first version of Arduino Dock with Omega2".
    See also this schematic please. 😉



  • re: Arduino Dock v1 with Omega2

    Sorry for that Net_Power confusion. My bad.

    Omega2's left-side pin 2 is its GPIO11 (I/O),
    so the Omega1 dock's pin 2 (which is expecting to receive the 2.5V output from Omega1) will have to be re-routed.

    Omega2 module does not supply 2.5V output.

    ccs_hello



  • @Venet
    I hope I'm not too late. For now, do nothing.
    First of all let's talk about the necessary and possible modifications.
    This v1 Dock with Omega2 project is a lot of work... :thinking: it may not be worth it.
    Electronic circuits DIY and soldering practice are needed.


    You have a version 1 Arduino Dock. Please let me know:

    • What is the SMD marking code of the power supply IC?
    • The MCU is an ATMEGA328P AU isn't it?


  • @Kostiantyn-Tarasenko said in Omega 2 and Arduino dock.:

    Even better, Blynk server runs smooth on Omega2 with socat - blynk widgets on the phone could access adruino pins.

    Hi, how to install socat - blynk widgets on omega2+?

    thanks



  • Hi,
    I've been struggling for more than a week to get my Arduino Dock 2 working. I followed all the instructions and other tips but have no luck. The Arduino IDE connects to the Omega 2, but gives an error when the loading of the hex is supposed to start. I get the same error when loading with terminal.

    Sketch uses 5092 bytes (15%) of program storage space. Maximum is 32256 bytes.
    Global variables use 199 bytes (9%) of dynamic memory, leaving 1849 bytes for local variables. Maximum is 2048 bytes.

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

    ERROR, flash NOT successful
    Flash complete!
    avrdude: AVR device not responding
    avrdude: initialization failed, rc=-1
    Double check connections and try again, or use -F to override
    this check.

    The Omega 2+ has Ω-ware: 0.1.10 b160 and using avrdude_6.1-1
    Staring to wonder if it's not easier to use a 3.3v Pic18 or Arduino on a separate board, but the Uno and Omega on the same board seems like a really neat and compact solution. Is it some versioning issue maybe? Please help me! Like I said it has been over a week. I'm not new to microcontrollers or linux.



  • @Wer-Ner
    Omega2+ 0.1.10-b160 with Arduino Dock 2

    Onion Omega2 Documentation Flashing the Arduino Dock

    We did all of our testing using Version 1.8.0

    So I downloaded arduino-1.8.0-linux32.tar.xz and installed onto my Ubuntu 16.10 (32-bit) box and followed the above docu.

    I'm not an Arduino expert but it seems it is working well.



  • @György-Farkas
    Thank you. I have just removed Arduino 1.8.1 and installed 1.8.0 (and did the other steps), and I am still getting the same error. Did you load any bootloader to your Arduino Dock 2? I tried with both methods using the Expansion Dock, which also failed, but I read afterwards that it is not necessary with the Dock 2.

    avrdude: AVR device not responding
    avrdude: initialization failed, rc=-1
    Double check connections and try again, or use -F to override
    this check.



  • Please help me. I still cannot get the Arduino Dock 2 to flash a sketch. Have tried everything I could read and think of and still getting the same error:

    avrdude: AVR device not responding
    avrdude: initialization failed, rc=-1
    Double check connections and try again, or use -F to override
    this check.



  • @Wer-Ner
    Sorry, I did not try to flash any bootloaders to that Dock.
    I try to support my friend's [O2+ with Arduino Dock 2] project. Unfortunately I can "play" with that Dock on the weekends only. I uploaded several sketches from the 'Examples' directory of the Arduino IDE v1.8.0 - as I wrote - without any problems.

    Which bootloader do you want to use? I'd like to try to load it with O2+ on the next Sunday.



  • are you positive that you followed the instruction that concern the arduino ide.? did you ssh into omega to opkg install arduino-dock-2? did you modify boards.txt? did you add ,
    uno.upload.via_ssh=true, to board.txt? did you select “Arduino/Guinuino Uno” for the Board, and your Omega-ABCD hostname as the Port: ? did you flash the sketch using,
    sh /usr/bin/arduino-dock flash <hex file>? those are the steps i took. did you flash any bootloaders?



52 out of 85

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