Replies

  • Perhaps you should do the tutorials at arduino.cc to get a feel for the 
    basic system then learn the extra capabilities and pinouts of the 
    AP/APM boards.

    But here you go. The (second) simplest program to read data:
    --------------------------------------------------------

    int analogPin = 3; // input signal connected to analog pin 3
    int val = 0; // variable to store the value read

    void setup()
    {
    Serial.begin(9600); // setup serial. This isn't required
                                            // unless you want to send the data 
                                            // you read out the serial port
    }

    void loop()
    {
    val = analogRead(analogPin); // read the input pin
    Serial.println(val); // send debug value to the serial
                                             // port for a PC to process/display
    }

This reply was deleted.

Activity

Jose Araujo liked Jose Araujo's profile
Aug 29
spencer harvey liked spencer harvey's profile
Jul 9
More…