Processing to read Arduino

Hello,

If you are using Arduino Firmata these are the Processing examples:

image

I have not used Firmata in ages so can’t comment further on this or help with Firmata issues.

Update:

I tried a scaled down version of your Processing code:

import processing.serial.*;
import cc.arduino.*;

Arduino arduino; //creates arduino object

int sensor= 0;
int read;

void setup() {
  size(1000,500,P2D);
  //fullScreen();
  println(Arduino.list());
  arduino = new Arduino(this, Arduino.list()[4], 57600); //sets up arduino
  arduino.pinMode(sensor, Arduino.INPUT);//setup pins to be input (A0 =0?)  
  }
    
void draw() 
  {
  background(0);
  read=arduino.analogRead(sensor);

  int analogValue =  arduino.analogRead(sensor);
  read = arduino.analogRead(sensor);
  
  println (read);
  }

On the Arduino side I used the StandardFirmata sketch which is in the Arduino examples and it worked:

I have 3.3V (not measured) on A0.

That seems about right referencing the data sheet:

:)