LP Alpha GPIO communication

userHead re_roy 2022-12-12 15:32:14 201 Views1 Replies

I want to use GPIO for servo motor or other modules with my Lattepanda Alpha (cpu: m3-8100Y)

 

I want to know How to communicate GPIO  at Ubuntu Terminal(or Android)

 

First of all 

When i test servo motor(MG90s) is needs 5V, GND, PWM

 

so i connect to arduino section 5V, GND, ~D6

 

But i don't know where to signal 

 

so i just try this commend for activate almost all gpio

 

for var in `seq 0 500`;

do 

echo $var > /sys/class/gpio/export;

done

 

but only 110 ~ 500 gpio activate

 

I just want to communication like this

 

echo 13 > /sys/class/gpio/export

echo 1 > /sys/class/gpio/gpio13/value

echo ou t > /sys/class/gpio/gpio13/direction

 

 

 

I already watch

[gpio info](http://docs.lattepanda.com/content/alpha_edition/io_playability)

 

 

22222222