Search found 26 matches

by Hasan Shadi
Mon Jun 01, 2020 4:50 am
Forum: ESP-IDF
Topic: Getting a "PermissionError" while scanning directories inside "/spiflash"
Replies: 2
Views: 2678

Re: Getting a "PermissionError" while scanning directories inside "/spiflash"

Do you actually have files in the spiflash structure? Asking because there is a bug in your code: on an empty directory, the first readdir will return NULL and the result of the second readdir will be undefined. I have tried it without the "readdir()" function, same results. It was not written befo...
by Hasan Shadi
Sun May 31, 2020 6:22 am
Forum: ESP-IDF
Topic: Getting a "PermissionError" while scanning directories inside "/spiflash"
Replies: 2
Views: 2678

Getting a "PermissionError" while scanning directories inside "/spiflash"

I am sure that I have written multiple files inside the "/spiflash" folder, I always get the error, but I did not get it when I scanned the root directory which is " / " and I got nothing on the console while scanning it. Based on my searches, this error is related to the python tool that is communi...
by Hasan Shadi
Fri May 29, 2020 6:15 am
Forum: Hardware
Topic: What is the voltage output range of the ESP32
Replies: 1
Views: 5366

What is the voltage output range of the ESP32

I am trying to know what is the voltage output range for the ESP32, using the GPIO library, and setting the level as high, I got 2.8V. But, using UART for example on pins 9 & 10. I have detected nearly 3.3V or above (they are internally connected to the flash memory), can you tell me the voltage out...
by Hasan Shadi
Fri May 29, 2020 4:19 am
Forum: Hardware
Topic: UART Flow Control
Replies: 8
Views: 11230

Re: UART Flow Control

Hello All, I have been using UART1 without hardware or software flow control. What are the benefits to using software flow control and if I decide to do so, when should I be calling uart_set_rts() and uart_set_dts()? First of all, flow control is only used if you want to control the data being pass...
by Hasan Shadi
Fri May 29, 2020 2:29 am
Forum: ESP-IDF
Topic: UART causing the ESP32 to reboot
Replies: 4
Views: 5363

Re: UART causing the ESP32 to reboot

Try other gpio not 9&10 I have tried other UART, like UART0. Remember that UART does not work on any pin, there are designated pins for the UART interfaces. I have tried UART0, it did not reboot, but still it did not receive any message. I have discovered that the ESP32 is not 5V tolerant, and the ...
by Hasan Shadi
Thu May 28, 2020 5:32 pm
Forum: ESP-IDF
Topic: UART causing the ESP32 to reboot
Replies: 4
Views: 5363

UART causing the ESP32 to reboot

I have written an app based on an example in the ESP-IDF. It sends a message "AT;\r\n", which should return something like "Ok\r\n". Well, it crashes and says something related rx_interrupt. Where other times it does not crash, but it stays on but does not receive anything. Before the app crashes, i...
by Hasan Shadi
Tue May 19, 2020 5:04 am
Forum: ESP-IDF
Topic: Unable to communicate correctly with the GY-521
Replies: 0
Views: 2237

Unable to communicate correctly with the GY-521

I am trying to read some registers from the GY521, which has multiple accelerometers and gyroscopes. Bascially, I am using I2C to read the data from it, but it is not responding back, I am wondering, why? It is not fried because I have tried it with Arduino Uno and it was working perfectly. And, I h...
by Hasan Shadi
Tue May 19, 2020 12:11 am
Forum: Hardware
Topic: Can't find the specified pins for the second I2C
Replies: 1
Views: 2945

Can't find the specified pins for the second I2C

I have been searching a lot about the situation of mine, which turned out to be something wrong with the name of the board. In my board, which is "ESP32-Wroom32-Dev-Kit-C" has specified pins for the peripherals, unlike other boards, you can choose any pin you like. I have found the first I2C, which ...
by Hasan Shadi
Tue May 12, 2020 1:35 pm
Forum: Hardware
Topic: ESP32-NodeMCU pinout not found
Replies: 1
Views: 3010

ESP32-NodeMCU pinout not found

I have bought an ESP32-NodeMCU from a store called "SZ Aitexm Store". The store has named it as "NodeMCU", I have searched a lot for a pinout for the NodeMCU, but found nothing. This is the link for the NodeMCU, it is the fourth choice from the left: https://www.aliexpress.com/item/32656775273.html ...
by Hasan Shadi
Mon May 11, 2020 8:18 pm
Forum: ESP-IDF
Topic: I2C not sending anything
Replies: 2
Views: 3113

I2C not sending anything

I have been trying to get the I2C working properly for the last couple days, the code is very simple, it just initializes the I2C driver, and sends a message frequently in a loop. This is the code: #include <esp_event.h> #include <driver/i2c.h> void sendMessageTo(const unsigned char registerNumber, ...