Search found 17 matches

by mchahn
Wed Dec 13, 2023 8:55 pm
Forum: Hardware
Topic: esp32-c camera module?
Replies: 2
Views: 18518

Re: esp32-c camera module?

I think I was incorrect and that deep sleep works the same in all version of the esp32. So ignore this post.
by mchahn
Wed Dec 13, 2023 9:25 am
Forum: Hardware
Topic: esp32-c camera module?
Replies: 2
Views: 18518

esp32-c camera module?

I need an esp32 which can come out of a deep sleep and immediately capture a still image from a camera module. This is for a cheap wifi camera with a single button to take pictures and no power switch. As I understand it the esp32-s2 can connect to a cheap camera but it has no real deep sleep (slow ...
by mchahn
Sun Nov 14, 2021 6:17 pm
Forum: ESP32 Arduino
Topic: what is the proper way to reset I2C after an error? Is there a Wire.reset()?
Replies: 1
Views: 5295

what is the proper way to reset I2C after an error? Is there a Wire.reset()?

Way back in 2017 there was a post here about not being able to reset the I2C state after an error: https://esp32.com/viewtopic.php?f=14&t=3152 . One of the replies said ... "A reset method is now available in the Arduino master for the Wire library. You can use it as a part of recovery of the I2C un...
by mchahn
Thu Nov 11, 2021 1:47 am
Forum: ESP32 Arduino
Topic: What is the difference between gpio modes OPEN_DRAIN and OUTPUT_OPEN_DRAIN?
Replies: 0
Views: 2077

What is the difference between gpio modes OPEN_DRAIN and OUTPUT_OPEN_DRAIN?

Aren't all open-drain pins output pins? I have i2c pins (with pull-ups). Which should I use? I'll assume I should use OUTPUT_OPEN_DRAIN for now.
by mchahn
Tue Nov 09, 2021 1:44 am
Forum: General Discussion
Topic: how to do I do I2C master reads and writes in background?
Replies: 0
Views: 1233

how to do I do I2C master reads and writes in background?

I apologize if this is a duplicate question but forum search always gives me an error page. I couldn't find any good answer on google. I need to read bytes from one slave, perform heavy calculations, and then send result bytes to another slave. I would like to do the I2C master reads and writes in t...
by mchahn
Wed Oct 20, 2021 8:54 pm
Forum: Hardware
Topic: how do I send audio though sigma-delta and can it use DMA?
Replies: 0
Views: 1716

how do I send audio though sigma-delta and can it use DMA?

I am starting to design an audio output from the esp32-s2. The sigma-delta 1-bit output looks like a good solution. However, I'm confused about how you send audio samples to the sigma-delta output gpio. The esp docs seem to only talk about config. There is one param called duty-cycle which I think i...
by mchahn
Fri Aug 27, 2021 1:57 am
Forum: ESP-IDF
Topic: WiFiClient.cpp:395] write(): fail on fd 60, errno: 11, "No more processes"
Replies: 0
Views: 2602

WiFiClient.cpp:395] write(): fail on fd 60, errno: 11, "No more processes"

I have an esp32 aurdino app that is serving a video stream (see code below). I'm constantly getting the error message: WiFiClient.cpp:395] write(): fail on fd 60, errno: 11, 'No more processes'. It is clogging up my logs. Strangely enough I don't see any symptoms in my app, but I really want to fix ...
by mchahn
Mon Jun 21, 2021 4:53 am
Forum: General Discussion
Topic: what are the differences (pros and cons) between webserver, asyncwebserver, and esp_http_server?
Replies: 0
Views: 1509

what are the differences (pros and cons) between webserver, asyncwebserver, and esp_http_server?

What are the differences (pros and cons) between the WebServer, asyncwebserver, and esp_http_server libraries? I've seen examples of each but why do three different ones exist? How do I choose one over another?
by mchahn
Mon Jun 21, 2021 4:30 am
Forum: General Discussion
Topic: Server hangs inside httpd_resp_send_chunk when client goes away
Replies: 3
Views: 3380

Re: Server hangs inside httpd_resp_send_chunk when client goes away

Thanks. I found different code for the esp32 cameras. It uses WebServer inside tasks without chunking and the code not only handles disconnects but allows up to 10 connections at once. That gets me around the send chunk hangups, assuming it works. I'm going to give that a try. I'm curious about the ...
by mchahn
Sun Jun 20, 2021 5:49 pm
Forum: General Discussion
Topic: Server hangs inside httpd_resp_send_chunk when client goes away
Replies: 3
Views: 3380

Re: Server hangs inside httpd_resp_send_chunk when client goes away

It occurs to me that having the send_chunk call time out would be ideal. Is there a way to set a timeout for send_chunk or a tcp connection in general? Is there a way to set a timeout for a raw response? Could I code the chunk responses using raw or is raw hard-wired to close the response? Is the so...