Jump to content

Recommended Posts

I'm trying to get along with the GPIO connector.

I think the pin addressing will be different from the Tinkerboard version 1 (https://tinkerboarding.co.uk/wiki/images/d/d0/Gpio-pinout-expanded.png). This is probably due to a different processor.

Unfortunately, I can't find the address for Tinkerboard 2 anywhere.

I need the ability to control signals from a shell. Unfortunately, using the old addressing does not work. ex .:

echo 188 > /sys/class/gpio/export (pin 40 for Tinkerboard v1)
echo out > /sys/class/gpio/gpio188/direction
echo 1 > /sys/class/gpio/gpio188/value

Share this post


Link to post
Share on other sites

Hi doggedly:

Please reference the following table for Tinkerboard 2. If you have any problem, please let us know! 

 

GPIO number Function2 Function1 GPIO Pin#   Pin# GPIO Function1 Function2 GPIO number
    VCC3.3V_IO   1   2   VCC5V_SYS    
73   I2C6_SDA GPIO2_B1 3   4   VCC5V_SYS    
74   I2C6_SCL GPIO2_B2 5   6   GND    
8   TEST_CLKOUT2 GPIO0_B0 7   8 GPIO2_C1 UART0_TXD   81
    GND   9   10 GPIO2_C0 UART0_RXD   80
83   UART0_RTSN GPIO2_C3 11   12 GPIO3_D0 I2S0_SCLK   120
85   SPI5_TX GPIO2_C5 13   14   GND    
84   SPI5_RX GPIO2_C4 15   16 GPIO2_C6 SPI5_CLK   86
    VCC3.3V_IO   17   18 GPIO2_C7 SPI5_CSN   87
40 UART4_TXD SPI1_TXD GPIO1_B0 19   20   GND    
39 UART4_RXD SPI1_RXD GPIO1_A7 21   22 GPIO3_D4 I2S0_SDO3   124
41   SPI1_CLK GPIO1_B1 23   24 GPIO1_B2 SPI1_CSN   42
    GND   25   26 GPIO0_A6 PWM3A_IR   6
71   I2C7_SDA GPIO2_A7 27   28 GPIO2_B0 I2C7_SCL   72
126   I2S0_SDO1 GPIO3_D6 29   30   GND    
125   I2S0_SDO2 GPIO3_D5 31   32 GPIO4_C2 PWM0   146
150   PWM1 GPIO4_C6 33   34   GND    
121   I2S0_FS GPIO3_D1 35   36 GPIO2_C2 UART0_CTSN   82
149   SPDIF_TX GPIO4_C5 37   38 GPIO3_D3 I2S0_SDI0   123
    GND   39   40 GPIO3_D7 I2S0_SDO0   127

Share this post


Link to post
Share on other sites

thnx ?

hmmmm... but

i try pin 40 address 127, like at Tinkerboard 1/1S 

echo 127 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio127/direction
echo 1 > /sys/class/gpio/gpio127/value

and no change value to "1"

no errors...

why?

 

i have simple script to init fan on Tinkerboard 1. This script work on 300 pcs.
Modify address and not work:

gpio_pin=127
direction=out
fan_on=1
fan_off=0
sleep_start=5

#inicjalizacja pin w GPIO 
echo $gpio_pin > /sys/class/gpio/export 
echo $direction > /sys/class/gpio/gpio127/direction

#Test wentylatora po uruchomieniu systemu - wentylator powinen właczyc się na 5 sekund i wylaczyc
echo $fan_on > /sys/class/gpio/gpio127/value
sleep $sleep_start
echo $fan_off > /sys/class/gpio/gpio127/value
sleep $sleep_start
sh /system/fantb2loop.sh
exit

Screenshot_11.jpg

Share this post


Link to post
Share on other sites

Hi doggedly:

    The following red parts pin are for I2S so that you can't control the pins by gpio ways because the hdmi audio card need the pins.

Thank a lot!

 

126   I2S0_SDO1 GPIO3_D6 29   30   GND    
125   I2S0_SDO2 GPIO3_D5 31   32 GPIO4_C2 PWM0   146
150   PWM1 GPIO4_C6 33   34   GND    
121   I2S0_FS GPIO3_D1 35   36 GPIO2_C2 UART0_CTSN   82
149   SPDIF_TX GPIO4_C5 37   38 GPIO3_D3 I2S0_SDI0   123
    GND   39   40 GPIO3_D7 I2S0_SDO0   127
  • Like 1

Share this post


Link to post
Share on other sites

i have some queries related this? ?

https://tinker-board.asus.com/forum/index.php?/topic/15256-no-display/
Can some one please help 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...