pls. can you first confirm that
-a- if you load up to Arduino the Standard Firmata example
! without change one line
-b- load on processing the firmata example for analog read
that this combination works.
for me it looks that you know about firmata,
and you say you used the firmata arduino sketch
- and that includes the firmata protocol / also used by the processing firmata lib
import cc.arduino.*;
so you should use firmata as it is:
means NO
- Serial.println from arduino to processing
- digitalWrite and analogWrite to pins what are handled by firmata
( and add you in processing declared as inputs ?? )
so actually it looks like you NOT want to use firmata ( what is ok )
only if you not use the firmata lib cc.arduino and not use the firmata sketch
but if you use firmata ( as you have not to deal with serial coding… )
that part what you program in arduino is supposed to be in processing
-
- analog read ?potentiometer?
-
- calc some trig. function
-
- write to PWM outputs
With a unchanged firmata in arduino.
( i hope i got your situation correctly / sorry if i am OFF )