Stray 302 Arduino, How to Fix It?

Arduino Stray 302 In Program

How to fix Stray 302 in program On Arduino – This time I want to share about an error that I do not usually experience. When I’m making a program in the arduino IDE.

Then the program I created, I compile to get the results, but there is an error. The error shown here is unusual, I’ve never had an error like this.

The error message is stray 302 in program. Look at the picture below.

Stray 302 Arduino, How to Fix It?

After searching from various references, the error stray 302 in this program occurred because we copied and pasted the text from another data processor into our Arduino IDE.

Sure enough, I took the text from google translate and then I pasted it into the Arduino IDE. The reason is, when I paste, the ASCII code goes into the arduino IDE.

Some of the code that causes errors is usually spaces & quotes (” “).

Steps to fix

If Error by Spacing

Remove the spaces at the beginning and end of the error line, then in the Arduino IDE, select the Tools > Auto Format. Here my problem is solved.

If there are still errors that appear, check again that the spaces that may be in the middle of the sentence have not been removed.

If Error by Quotes

Replace the quotes from the copy and paste from a website like “ ” to ” “.


If you want to replace the entire error text, you can use the “Find and Replace” feature by pressing CTRL + F on the Arduino IDE, then enter the word you want to replace in the “Find” form and enter a new word that will replace the wrong word. on the “Replace with” form, then click the “Replace All” button.

Hopefully this article is useful.

4 thoughts on “Stray 302 Arduino, How to Fix It?”

  1. Pingback: Adafruit_I2CDevice h No such file or directory - CHIPPIKO

  2. Pingback: Stray 302 In Program | How To Remove Stray Error '\302' And '\342' In Arduino Program. 상위 44개 베스트 답변

  3. Pingback: Arduino error stray 302 in program arduino

  4. Pingback: Error stray 302 in program что это

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top