Answer the question
In order to leave comments, you need to log in
What to do if arduino gives out some kind of krakozyabry?
here is the code
void setup()
{
pinMode(A4, INPUT);
Serial.begin(9600);
}
void loop()
{
Serial.println(analogRead(A4));
}
Answer the question
In order to leave comments, you need to log in
The port speed specified in the line Serial.begin(9600); must be the same as selected in the arduino IDE terminal
First, fill in the standard example from the manual, it should work for sure.
https://www.arduino.cc/en/Tutorial/AnalogReadSerial
Perhaps the wrong quartz is worth
The problem is clearly in the wrong port speed. Try installing termite (or any other terminal software with baud rate settings) and set the baud rate to 4800, 5760, 720, 1200. One of them should work. For the test, it is better to output the string ala "test123"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question