Page 1 of 1

square wave generator code

Posted: Sun May 14, 2023 10:44 pm
by aliyesami
how can I generate a 40Khz 50% duty cycle signal in ESP32 wroom ?

Re: square wave generator code

Posted: Mon May 15, 2023 6:54 am
by MicroController

Re: square wave generator code

Posted: Mon May 15, 2023 11:46 pm
by aliyesami
its apparently not for ESP32 as i get the following error when I try to run it .

"Error compiling for board Node32s."

can this code be adapted for node32s ? i see the micro used on the board is ESP32-wroom

Re: square wave generator code

Posted: Tue May 16, 2023 12:02 pm
by a2800276
Node32s is (probably) the name of the board and not the microcontroller. I assume you are doing something like `idf.py set-target node32s` but you should supply the name of the chip on the board instead.

It would help if you provide some context, i.e. what chip and board, which development environment, the steps you executed prior to building and/or the error messages leading up to the line you posted, else we can only mind read ;)