square wave generator code

aliyesami
Posts: 11
Joined: Wed Jul 20, 2022 3:53 am

square wave generator code

Postby aliyesami » Sun May 14, 2023 10:44 pm

how can I generate a 40Khz 50% duty cycle signal in ESP32 wroom ?

MicroController
Posts: 1705
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: square wave generator code

Postby MicroController » Mon May 15, 2023 6:54 am


aliyesami
Posts: 11
Joined: Wed Jul 20, 2022 3:53 am

Re: square wave generator code

Postby aliyesami » Mon May 15, 2023 11:46 pm

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

a2800276
Posts: 78
Joined: Sat Jan 23, 2016 1:59 pm

Re: square wave generator code

Postby a2800276 » Tue May 16, 2023 12:02 pm

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 ;)

Who is online

Users browsing this forum: No registered users and 107 guests