Go Down

Topic: ¿My Arduino is broken? Help! (Read 340 times) previous topic - next topic

Lupax7

Everything worked fine yesterday, but today I notice reading "analogRead ()" throughout the pins A0, A1, etc ... display data in Serial.print () in a rare language.

For example, show letters "S°,sS,S0, ...."

I leave an Image

PLEASE HELP ME
Thanks.

Delta_G

Image?  How about the code.  That might be far more helpful in ferreting out what your issue is.

Are you sure you have the baud rate in the Serial monitor match the baud rate in the code?
|| | ||| | || | ||  ~Woodstock

Please do not PM with technical questions or comments.  Keep Arduino stuff out on the boards where it belongs.

Lupax7

the Code is very simple:

int p;
void setup() {
pinMode(A0,INPUT);
Serial.begin(9600);
}

void loop() {
p=analogRead(A0);
Serial.println(p);
}

I have no idea what happened

Delta_G

Are you sure you have the baud rate in the Serial monitor match the baud rate in the code?
|| | ||| | || | ||  ~Woodstock

Please do not PM with technical questions or comments.  Keep Arduino stuff out on the boards where it belongs.

Whandall

This is not the code from your picture.

In that code it seems you are using pin 1 as an output.
If you write to that pin on most Arduinos you will disturb the serial communication.

Does the posted code really produce the same output?
Ah, this is obviously some strange usage of the word 'safe' that I wasn't previously aware of. (D.Adams)

Go Up