How to Change An Arduino Code Using AI
What’s In This Page
A step by step guide that shows you how to use the power of AI to write or change Arduino codes. Videos show you both being done.
If you are using a phone, at the bottom of the page there are links to many supplies for modelers. Otherwise those links are in the sidebar to the right. You can also find other information by using the search function that is in the navigation bar above.
Also In Addition To What’s In This Page, What This Site Can Do For You
If you are a model train enthusiast, modeler, diorama maker, or interested in making arduino projects the easy way, there is categorized information for you here. Click Here.
How to Change An Arduino Code Using AI
AI can be used to generate text, translate languages, write different kinds of creative content, and answer your questions in an informative way. It can also be used to change code. In this tutorial, we will show you how to use ChatGpt to change programs.
I recommend ChatGpt STRONGLY for coding. I have compared results given by Gemni, Bing Chat and more. Once in a while it fails and Gemni corrects the errors, but that has been in probably 3 times for a few hundred codes.
The process or writing or changing code is to tell chat what you want done. You do that by writing what is called a prompt and submitting it to the chat program
About Prompts
Before you write the Arduino code for any Arduino code you should lay out exactly what you want the code to do. The more detailed you are, the better will be the chat response.
Writing An Original Code
Let me give you an example prompt:
” I have an Arduino mini Pro micro controller. On it I have 10 LEDs.
The LEDs are on pins 2 through 11.
The LEDs on the even numbered pins are defaulted on.
The LEDs on the odd-numbered pins are defaulted off.
The pin A0 is called toggle. When toggle goes high the program starts.
During a random interval that ranges from 2 to 5 seconds all LEDs will change state. But only one LED will change state during any random interval. The led will be randomly chosen.
Write to complete Arduino code that will accomplish the above.”
Video Demonstration
This video shows you what to do with the prompt above.
Video In Editing
Changing A Code
In notepad write a prompt like this:
Change this code so that it ……
After that add the code that you want changed
This is an example prompt:
”
”
Video Demonstration
Video in editing
Feedback
Your questions and comments help us clarify and upgrade the information presented. Even if you find this helpful, please tell us.
Please let us know if this page has been helpful And if you have questions or suggestions, use this spam free system.
Or use the green WhatsApp button that is to the right.

