Jump to content


Photo

How to get Processing to directly communicate with input/output ports on pcDuino 3B?


  • Please log in to reply
4 replies to this topic

#1 cryan

cryan

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 22 January 2016 - 06:51 AM

Hello. Novice electronics hacker here, working on an interactive art project.

 

I have successfully installed Processing 2.2 on a pcDuino 3B, and gotten Processing to read / write to ports on a separate Arduino board (a SparkFun Digital Sandbox, which is based on the Arduino Fio) connected to the pcDuino via the USB port. The Processing code imports the serial and the Arduino (Firmata) libraries, and the Standard Firmata sketch is running on the Digital Sandbox. With this setup, the Processing code can read inputs from the Digital Sandbox and draw graphics based on the data -- it works beautifully.

 

I'd like to do this directly off the pcDuino 3B board, though, without the separate Arduino board. But the Standard Firmata sketch is not listed in the example code in the Arduino IDE  on the pcDuino when "pcDuino" is selected as the board (it does appear when "Arduino Fio" is selected as the board). And if I try to upload the Standard Firmata sketch to the pcDuino, I get the following error:

 

 

Arduino: 1.5.3_beta_pcDuino (Linux), Board: "pcDuino (ARM Cortex-A8)"
standard_firmata.ino:32:19: fatal error: Servo.h: No such file or directory
compilation terminated.
 
Is there another approach that would work for this, or is there a way to get the Standard Firmata sketch to run on the pcDuino?
 
Thank you much!


#2 youkee

youkee

    Advanced Member

  • Administrators
  • 237 posts

Posted 22 January 2016 - 12:45 PM

The Arduino 1.5.3 on pcDuino3 is not compatible with any Arduino board project.

Please try to port the Servo.h library to Arduino IDE.



#3 justalone

justalone

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 21 March 2017 - 08:34 AM

Hello,

 

could tell how did you make processing read/write ports (GPIO I suppose).

 

I'm trying to use processing 3.3 to access GPIO unsuccessfully.

 

I have this problem :

 

GPIO%20permission%20denied.jpg

 

thanks.



#4 justalone

justalone

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 21 March 2017 - 06:16 PM

Solved "Permission denied" by using the following command :

 

sudo chgrp -R ubuntu /sys/class/gpio
sudo chmod -R g+rw /sys/class/gpio

 

But now I've this :

 

GPIO_not_available_on_your_platform.jpg



#5 justalone

justalone

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 24 March 2017 - 12:28 PM

Path for GPIO configuration file is not good :

GPIO path for raspberry is :/sys/class/gpio/export

GPIO path for pcDuino is :/sys/devices/virtual/misc/gpio/export

 

How to modify path in Processing?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users