On the Arduino dock 2, GPIO 19 of Omega2 is connected to the MCU_RESET circuit for software resetting the ATmega. Therefore, the 19 on the Expansion Header is grounded and should not be used for anything but ground. In addition, GPIO 19 on the Omega2 should be kept LOW or it will keep on resetting the MCU.
Michael Xie48
@Michael Xie48
Best posts made by Michael Xie48
-
RE: Omega 2 and Arduino dock.
Latest posts made by Michael Xie48
-
RE: Omega 2 and Arduino dock.
@Phillip-Walters
Hi Phillip, have you tried the following guide:
https://docs.onion.io/omega2-docs/flash-arduino-dock-wirelessly.html -
RE: [SOLVED] Arduino Dock 2: Onion Library still required for Omega2(+) ?
Another method from the Omega side is to install python and use the I2C python module:
https://wiki.onion.io/Documentation/Libraries/I2C-Python-Module
-
RE: [SOLVED] Arduino Dock 2: Onion Library still required for Omega2(+) ?
Hi @canochordo,
You don't need to use the Onion Library for the Omega2 and Arduino Dock2.
The most simple way to communicate through I2C:
- On the Omega2 side use the i2cget or i2cset command for I2C port 0 and ATmega address 0x08. For example,
i2cget -y 0 0x08 (reading from ATmega)
i2cset -y 0 0x08 0x01 (sending 0x01 to ATmega)
- On the Atmega side, flash the chip wirelessly using the following guide and use the wire library:
https://docs.onion.io/omega2-docs/flash-arduino-dock-wirelessly.html -
RE: Onion 2 powered, but no AP?
@Jens-Brynildsen Thanks for pointing out the issue. We apologize for the manufacturing defect and will address the issue with the manufacturer.
-
RE: Omega 2 and Arduino dock.
On the Arduino dock 2, GPIO 19 of Omega2 is connected to the MCU_RESET circuit for software resetting the ATmega. Therefore, the 19 on the Expansion Header is grounded and should not be used for anything but ground. In addition, GPIO 19 on the Omega2 should be kept LOW or it will keep on resetting the MCU.
-
RE: Omega 2 and Arduino dock.
Hi all,
There will be an official guide for using the Arduino Dock 2 coming soon.
For now, flashing the Arduino Dock 2 can done simply by installing the arduino-dock-2 package on the Omega2:
opkg update
opkg install arduino-dock-2Now you can flash the ATmega on the Arduino Dock 2 with the Omega and Arduino IDE similar to an UNO (You DON'T need to flash any bootloader or include any Onion library):
- Have the Omega2 plugged into the Dock
- Install the Arduino IDE: https://www.arduino.cc/en/main/software
- On the Arduino IDE: set Tools > Boards: Arduino/Genuino Uno
Tools > Port: "Omega-XXXX at 192.168.3.1 (Arduino/Genuino Uno)" - Upload your program
If you don't see your Omega2 on the port try:
-
Restarting the avahi-daemon on your Omega2
/etc/init.d/avahi-daemon restart
-
Restart the Arduino IDE
- You can use communicate between the Omega2 and ATmega through UART1 /dev/ttyS1
The Omega2 can be used as the Serial Monitor by:
cat < /dev/ttyS1
-
RE: Onion 2 powered, but no AP?
Hi Jens,
Could you please post a photo of your set up with the Omega LED ON?
Thanks