arduinotinkercad

Any reason why my Tinkercad's arduino serial plotter is not updating?


enter image description here

The arduino should be reading different values as the signal is a sine wave. Tried using different signal frequency as well as different delay(), still shows a constant value. Any help is highly appreciated! Thanks!!


Solution

  • You are not sending the actual reading of analog input. Your code should be something like

    void loop(){
      int adcRead = analogRead(A2);
      Serial.println(adcRead);  
      delay(2);
    }