Where is the problem ?

Hi I downloaded signal generator master from here GitHub - vdeschwb/esp32-signal-generator: Open-Source Signal Generator using the ESP32 uC, but it is complying with error = Settings_Module.h: No such file or directory, This file is included in downloaded file. Where is the problem ?

Is it? The tab name should read Settings_Module.h so not sure what's happened here. Other tabs appear to be missing.

You might want to review this as well:

To be fair to the OP, the project is not packaged correctly on Github. I did a git clone, but some files were missed. One can download the ZIP, extract the contents and rename it to SigGen. The ZIP does appear to include all of the files and does compile.

Hi @tom321. I see that @BitSeeker already correctly explained the cause of the problem and solution while I was writing, but since what I wrote has a bit more detail, I'll post it anyway to supplement @BitSeeker's reply:

The Arduino sketch folder name must match the primary .ino filename. Unfortunately the creator of this "esp32-signal-generator" project did not put the sketch in an appropriately named folder. The primary .ino file is named SigGen, but when you download the project repository it is put in a folder named esp32-signal-generator-master.

When you open a sketch file that is not in a folder with matching name, Arduino IDE asks you whether you want to move it to an appropriately named folder so that it can be used as a valid sketch. However, when you do that, Arduino IDE only moves that .ino file to the new folder. This project contains other source code files in addition to the .ino file, so this broke the project and that is why it fails to compile.

It is a ino file

I downloaded another version, which is giving a different error.

Indeed.

As multiple people have already explained to you: the folder must have the same name as the .ino file. It seems like you didn't read what we wrote carefully enough.

The .ino file is named SigGen.

The folder is named esp32-signal-generator-master.

Do you see that the names SigGen and esp32-signal-generator-master are not the same???

Please follow these instructions very carefully and exactly:

  1. Click the following link to open the "esp32-signal-generator" project's GitHub repository homepage in your web browser:
    https://github.com/vdeschwb/esp32-signal-generator
  2. Click the "Code ▾" button you see on that page.
  3. Select Download ZIP from the menu.
    A download of the ZIP file of the "esp32-signal-generator" project will start.
  4. Wait for the download to finish.
  5. Extract the downloaded file to any convenient location.
  6. Rename the downloaded folder from esp32-signal-generator-master to SigGen.
  7. Verify that the folder now has the following structure:
    SigGen/
    ├── DAC_Module.cpp
    ├── DAC_Module.h
    ├── LICENSE
    ├── PWM_Module.cpp
    ├── PWM_Module.h
    ├── README.md
    ├── Settings_Module.cpp
    ├── Settings_Module.h
    ├── SigGen.ino
    ├── WiFi_Module.cpp
    ├── WiFi_Module.h
    ├── data/
    ├── gui/
    └── images/
    
  8. Select File > Open.. from the Arduino IDE menus.
    The "Open" dialog will open.
  9. Select the file SigGen.ino from the SigGen folder in the "Open" dialog.
    The "SigGen" sketch will open in a new Arduino IDE window.
  10. Select Sketch > Verify/Compile from the Arduino IDE menus.

You should now see that the sketch compiles successfully BECAUSE YOU GAVE THE SKETCH FOLDER THE CORRECT NAME.

I think it will be best to focus on solving the first problem you requested assistance with instead of jumping to a whole new project while you are still failing to compile the first one.

Once you have managed to successfully compile the first sketch, then we can switch to assisting you with this new problem.

Up to #8 it is ok.

One step was missing, I copied SigGen folder from desktop and paced to Arduino folder and is working.
Thanks
Now I can explore what it is

This is not required. It is convenient to store sketches in the Arduino sketchbook folder (which is named Arduino by default), but this is not mandatory. You can use File > Open... to open files from any location on your hard drive.

You are welcome. I'm glad it is working now.

Sounds fun :slightly_smiling_face: .

If you decide you want to look at that other project you found, and still need help getting it to work, just let us know and we'll provide assistance.

the first problem = SPIFFS Create Failed!

nothing on pin 25

 // PWM-specific parameters
    ledc_timer_t timer_num = LEDC_TIMER_0;
    ledc_channel_t pwm_channel = LEDC_CHANNEL_0;
    ledc_timer_bit_t resolution = LEDC_TIMER_10_BIT;
    bool highspeed = true;
    uint32_t duty = 512;
    uint32_t out_pin = 25;

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.