We have upgraded the community system as part of the upgrade a password reset is required for all users before login in.

newbie issue with gpioctl not seeing HIGH on Arduino Dock 2



  • I am using Omega 2+
    I am using Arduino Dock 2
    I am using pin 7 on what they call micro-controller header, pin 7 which is the pin set near the DC barrel jack
    https://docs.onion.io/omega2-docs/arduino-dock-2.html

    root@Omega-EFEB:/# gpioctl clear 7
    Using gpio pin 7.
    root@Omega-EFEB:/# gpioctl dirout 7
    Using gpio pin 7.
    root@Omega-EFEB:/# gpioctl dirout-high 7
    Using gpio pin 7.
    root@Omega-EFEB:/# gpioctl get 7
    Using gpio pin 7.
    Pin 7 is HIGH

    However, when I measure the voltage on pin 7 I get 0v and I was expecting 3.3v, what am I doing wrong?



  • @Allan-McCombs
    With these commands you can control the Omega's GPIO pins only.
    GPIO7 is not a lucky choice, try to use for example GPIO0
    gpioctl dirout 0
    gpioctl dirout-high 0
    gpioctl dirout-low 0
    gpioctl get 0

    You could measure the voltage of GPIO0 (I2S_SDI) on the expansion header.

    You should flash / upload an appropriate sketch into Arduino to control the ATmega MCU pins.


    The Arduino (the ATmega chip on the board) is "empty" by default.
    If you did nothing with it yet you can try the following commands:
    gpioctl dirout 15
    gpioctl dirout-high 15
    gpioctl dirout-low 15
    and watch the BLUE LED. 🙂

    You should - carefully! - measure almost 0V (low) and about 3.5V (high) on the pin 3 of the ICSP header (the middle pin , near the ICSP text).

    Good Luck!



  • @György-Farkas said in newbie issue with gpioctl not seeing HIGH on Arduino Dock 2:

    ATmega chip

    That worked, thank you.
    However I have an OLED on the expansion header so I would prefer to use the ATmega pins because that is why I bought the Arduino Dock 2 board.

    I think I found the direction to flash the ATmega pins, however I don't see a sketch to program it with, or documentation on what commands to use to control those pins.



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