Go Down

Topic: Getting weird characters from Arduino (Read 205 times) previous topic - next topic

SanthoshkumarSundararaj

My arduino is connected to ultrasonic sensor and I am trying to read the value from it. When I tried running "tail -f > /dev/ttyACM0" my arduino is sending some weird characters that I am not able to decode

AWOL

"Pete, it's a fool (who) looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

SanthoshkumarSundararaj

i dont know whats the issue here, is it due to arduino or have to do something from myside?

AWOL

"Pete, it's a fool (who) looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.


AWOL

"Pete, it's a fool (who) looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

groundFungus

The forum guidelines may have information that you can use to make a post with sufficient information so that we have a chance of helping you.

GolamMostafa

Quote
My arduino is connected to ultrasonic sensor and I am trying to read the value from it. When I tried running "tail -f > /dev/ttyACM0" my arduino is sending some weird characters that I am not able to decode
Should I place a full stop at the end of what you have said before I put my queries or do you have something more to add?

1.  Which Arduino are you talking about: NANO, UNO, MEGA, or DUE?

2.  You are trying to read data from the ultrasonic sensor after uploading a sketch -- is it this sketch:  "tail -f > /dev/ttyACM0"?

3.  The Arduino is sending characters to where -- Serial Monitor or LCD or to your Android Smart Phone?

SanthoshkumarSundararaj

Actually I am using an autonomous car from AUDI where I have four arduino controllers and five ultrasonic sensors are connected to that. the arduino's are already coded and now my task is just to establish the connection and get what the arduino is sending. So I have to create a client program to do that. When I tried just to print what is actually arduino sending I got this output.

AWOL

OK.

When you've got some solid details to share, please get back to us.
"Pete, it's a fool (who) looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

SanthoshkumarSundararaj

Even I have this information only. My task is to establish the communication and read the values send by arduino.

AWOL

You'll need to share the serial protocol.
"Pete, it's a fool (who) looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

neiklot

the arduino's are already coded and now my task is just to establish the connection and get what the arduino is sending.
So what in the Arduino sketch is doing that sending? Serial.print() perhaps?- if so, at what speed, parity and stop bits setting?






SanthoshkumarSundararaj

I am new to this project so i have the kit and just to find the solution on my own. The Arduino is send the values via ACM0-ACM3 ports. then I have tried ssty but no change. I am using the right baud rate.

SanthoshkumarSundararaj

I have attached my Arduino sketch.

Go Up