Access Artik020 GPIO from Raspbian

gpio
#1

Good morning,
how to access the GPIO on Artik020 on Raspbian Balenafin 1.1?

I need to set two pins as analog-in to read some sensors.

Thanx,
Stefano

0 Likes

#14

Hi @LoStevo,

I would recommend that you consider the Firmata implementation we’ve put together for communicating with the coprocessor (https://github.com/balena-io-playground/balena-fin-firmata-flash). This allows your to control the coprocessor via a serial interface and provides reporting of pin status via the Firmata protocol (https://github.com/firmata/protocol). It will let you configure pins for the ADC and report back their value.

With the Firmata firmware flashed onto the coprocessor, you’ll be able to use any client library (Python, NodeJS, etc.) to control it from the balenaFin.

Currently this repo supports v1.0 but I’m working on updating it to v1.1 and I will message back here once I’ve pushed support for v1.1.

Thanks!

Alex

0 Likes

#15

Perfect Thanx!

0 Likes