# GPIO 18 is not responding

**URL:** <https://forums.balena.io/t/gpio-18-is-not-responding/5572>\
**Category:** balenaFin\
**Created:** [March 8, 2019, 4:57pm UTC](https://forums.balena.io/t/gpio-18-is-not-responding/5572 "2019-03-08T16:57:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrrobot](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mrrobot/32/5768_2.png) [@mrrobot](https://forums.balena.io/u/mrrobot)\
**Post date:** [March 8, 2019, 4:57pm UTC](https://forums.balena.io/t/gpio-18-is-not-responding/5572/1 "2019-03-08T16:57:33Z")

</div>

Hello, I have installed the provided version of Raspbian for the Balena fin, but cannot figure out how to make to GPIO works.  
For example if we want to turn the GPIO to 1, one can do:

```auto
gpio mode 18 out
gpio write 18 1

```

I have also tried with 12 as GPIO 18 is on pin 12, but nothing seems to make it works.  
Should something be installed, in order for the GPIO to work ?

---

<div class="post-metadata">

**Author:** ![chrisys](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/chrisys/32/1731_2.png) [@chrisys](https://forums.balena.io/u/chrisys)\
**Post date:** [March 8, 2019, 9:40pm UTC](https://forums.balena.io/t/gpio-18-is-not-responding/5572/4 "2019-03-08T21:40:46Z")

</div>

Hi @mrrobot

You can access the GPIOs via sysfs - example below.

```
sudo echo 18 > /sys/class/gpio/export
sudo echo out > /sys/class/gpio/gpio18/direction 
sudo echo 1 > /sys/class/gpio/gpio18/value

```

Let me know if this works for you!
