Create your code

Please follow the steps from 1 to 6 to generate the code of your project

Step 1

Give a name to project

Step 2

Select board

Step 3

Add component

Step 4

Add library

Step 5

Add requirement

Step 6

Generate code

Step 1: Click button to give a name to your project

Frequently Asked Questions (FAQ)

The service is a guided procedure consisting of 6 steps. At each step, information is added about the project you want to create through automated code generation. What you need to do is select the electronic board on which you want to generate the code and the electronic components you want to connect to the board. The components will be connected to the most appropriate board pins, and only if they are compatible with the functions associated with those pins. Additionally, compatible software libraries will be preassigned for using the components.

Subsequently, you can select additional libraries that may be useful for your project. Finally, you can add your system requirements by describing what you want the board and components to do. In the last step, you can generate your code, analyze it, make corrections if you're not satisfied, and then download it. This allows you to compile and upload the code to your board through Arduino IDE or similar tools.

The boards on which you can automatically generate code include: Arduino Nano ESP32, ESP32 DevKit V1, Arduino Uno, Arduino Pro Mini 3.3V, Arduino Pro Mini 5V, Arduino Nano, Arduino Mega.

If you need to develop automatic code for other boards, please send an email to info@pleasedontcode.com, and we will make it available shortly.

Once you've selected the electronic board, you can choose the components to connect (such as a button, a display, an SD card). A dropdown menu will provide a range of components that are readily available and automatically adaptable based on the functions supported by the board. This ensures the absence of incompatibilities.

If a specific component is not listed, please feel free to contact us via email at info@pleasedontcode.com to request its addition. However, you also have the option to create your custom component by selecting the "Add custom pin function..." option. This allows you to define the pin connections one by one.

Software libraries are those available from the official Arduino repository on GitHub. They are periodically updated.

However, if you can't find a specific library, it could be due to various reasons (recently introduced library, library incompatible with the board, library not available in the official repository). In such cases, please send an email to info@pleasedontcode.com to ask for clarification and to request its addition to the list if possible.

Requirements can be introduced in a descriptive manner. Each requirement has a maximum character limit to ensure that the description is clear and concise, thereby helping the artificial intelligence understand the requirement better.

To achieve better results, we recommend adopting a top-down approach, where the initial requirements pertain to the system's description, followed by defining lower-level tasks. Furthermore, you need to be as specific as possible to avoid giving the AI room for interpretation.

😃 Here are some good examples:

  • Simple: "Write code that records data from a potentiometer onto an SD card. The data will be saved in a text file."
  • Specific: "Use an LCD1602 display to show the voltage value regulated by a potentiometer, which represents a scale from 0 to 1023, in real-time. Additionally, record the potentiometer voltage values onto an SD card every 1 minute."
  • Detailed: "Create a system to monitor the voltage level regulated by a potentiometer using an LCD1602 display. Display the potentiometer voltage value, representing a scale from 0 to 1023, in real-time. Record the potentiometer voltage values onto an SD card every 1 minute. The data in the text file must be saved in CSV format (value, timestamp), where value is the voltage data and timestamp is when it was recorded."

😔 Here are some examples of inadequate requirements:

  • Not Suitable for Arduino: "Run a machine learning algorithm to classify fruit using a camera."
  • Too Vague: "Program a robot to clean my room."
  • Requires More Detail: "Control a traffic light system that will change colors at different times of the day based on a pre-programmed schedule."

If you are unable to generate the code, here's what you can do:

  1. Check Generation Limit: If clicking on 'Generate Code' (Step 6) doesn't result in code generation, it might be due to exceeding the maximum allowed code generation limit. To address this, consider upgrading your subscription to one that offers a higher maximum number of code generations. Alternatively, on the first day of each month, the counter is reset, allowing you to start generating code again.
  2. Assess Resource Usage: You may have utilized more resources (Input/Output, libraries, and requirements) than your current plan allows. To address this, you can either upgrade to a plan that permits more resource usage or reduce the number of resources by removing entries from the Input/Output, libraries, or requirements tables. You'll notice if you've exceeded the resource limit when you see a highlighted yellow ratio next to the table title (for example, if the Requirements table shows 6/5, it means you've used 6 requirements out of a maximum of 5 available in your plan).

If the issue persists despite these solutions, please contact us at info@pleasedontcode.com for further assistance and support in resolving the problem.

Chat with us on WhatsApp