• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomepcDuinoAndroid for pcDuinoGPIO Control in Android on pcDuino
Previous Next

GPIO Control in Android on pcDuino

Posted by: admin , November 28, 2014

pcDuino supports both linux and Android. Under Android, we can also talk to the hardware interface pins. In this post, we  show how to control the GPIO pins by blinking a LED on pcDuino with the Linker LED module.

First, we need to launch terminal emulator by double clicking the terminal emulator icon below.

 

android-arduino-1-1024x544

 

android-arduino-2-1024x579

 

 

For the first time, run these commands from terminal APK to make the samples executable:

 

$su
# busybox mount/system -o rw,remount
# busybox chmod +x /home/android/sample/test/*

android-arduino-3

 

Now, let’s blink on a linker led module that is hooked up to GPIO 2 of pcDuino.

 

IMG_2938-1024x768

 

The command line looks as below:

 

android-arduino-4-1024x116

 

After we pressed ‘ENTER’, the LED will begin to blink:

 

IMG_2937-1024x768

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors