No data is being read from my arduino potentiometer

edited November 2014 in Arduino

I've been following a tutorial to get the input data from my arduino. If I check the serial monitor in arduino, everything's there. So I know it's not a hardware issue.

This is my code:

http://codepaste.net/d5pdtb

--> what's the exact problem? Read(my inputdata) is always 0.. no matter what I do..

Any help is appreciated..

Answers

  • Answer ✓

    Your Arduino is running the Firmata firmware, right?

    Try adding this line after size():

      println(Arduino.list());
    

    See if your Arduino is really at position zero in that list. (Mine's at 7.)

    You may have to unplug the Arduino, run that code to see what the list looks like, then replug the Arduino to see what changes.

    HTH

Sign In or Register to comment.