Go Down

Topic: Serial Monitor and broken or repeated text (Read 902 times) previous topic - next topic

chrishuff

I have two very simple projects.  Think 101-level.  First is a tilt switch and the serial monitor prints out the state of the switch, 1 or 0 using println.  Sometimes it doesn't insert the page break so instead of showing
0
0
0
it might show 
0
00
0

Also related to the serial monitor, in my other project, when I send a string to it, such as "What color do you what?" when it prints it out on the serial monitor, I see "WhWhat co lor do youw ant?"  The weird thing it I can enter a response and it changes my RGB LED to the correct color and re-prompts with the same question...and the text is messed up the same way.  I should note, I'm a full-time programmer by trade and have coded in C++, C#, and a bunch of others over 25 years so I can usually troubleshoot things successfully.  But, since I'm new to this type of integrated progamming, I'm kinda....stumped.  I looked into Serial.flush but that didn't seem related to my problem.

NOTE: I'm running it off my chromebook and using the web editor.  

I'm not sure if these are related or not.

sterretje

It will greatly help if you posted your code. Please post it between [code] and [/code], the so called code tags.

If it's more than 9000 characters, you can attach it to a reply.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

ballscrewbob

The serial monitor of the web IDE is not quite the best for that purpose.
It is Ok for short bursts but because of internet lag etc it will on occasion drop some packets.
You could try a slower baud rate but I am not too optimistic about that.
That is the nature of the beast that is the web IDE I am afraid.

You should look for an alternate serial monitor for chromebook or move to a PC where you have a lot more choice.

Your topic was Moved  to it's current location / section as it is more suitable.

Could you also take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.


It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google (who would have thunk it ! ) or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

Go Up