Hot answers tagged

4 votes
Accepted

Using esp-wroom-32 without a development board

This is what I was looking for. The development board is not the minimum as @Majenko and @StarCat stated on their comments. This is exactly what I need as I plan to run my project from a battery. ...
user avatar
  • 898
3 votes
Accepted

Is 1MB flash enough for OTA upload in ESP-01?

Yes, 1MB is fine for OTA. There are, though, a few caveats when working with OTA that you must observe regardless of the flash size: The maximum OTA program size is less than half the available flash ...
user avatar
  • 102k
2 votes
Accepted

How to prevent flickering relay upon waking from deep sleep using ESP01 board?

The only two pins that don't glitch or change state during reset and boot are GPIO4 and GPIO5, and neither of them are brought out to the 2x4 header on an ESP-01. https://rabbithole.wwwdotorg.org/2017/...
user avatar
2 votes

How to prevent flickering relay upon waking from deep sleep using ESP01 board?

Apparently it's a pretty common issue for people using this board. There are a couple of solutions here that I will try: https://github.com/IOT-MCU/ESP-01S-Relay-v4.0/issues/1 The most non invasive ...
user avatar
  • 131
2 votes

Using esp-wroom-32 without a development board

There are programming boards available to which you can plug one of these SOCs into them. There are different boards for different types of ESP SOCs. You can find them at popular Chinese vendors, and ...
user avatar
2 votes

NodeMcu 1.0 resets automatically after sometime

From your description it sounds like a Watchdog Timer reset. The ESP8266 needs to regularly run internal householding tasks outside of your own code, such as Wifi/network related tasks. It will ...
user avatar
  • 1,370
2 votes

ESP send string to Arduino

readStringUntil('\n') //Receiver Mega void setup() { pinMode(LED_BUILTIN, OUTPUT); Serial1.begin(9600); Serial.begin(19200); delay(100); } void loop() { if (Serial1.available()) { ...
user avatar
2 votes
Accepted

ESP8266 Arduino Json object array deserialisation into struct

No memory is allocated for the strings. You should declare your struct like so: struct Departure { char destination[32]; char departure[32]; int deviation; } depart; This assumes the max ...
user avatar
2 votes

Can't enable face detection on esp32 cam : CORRUPT HEAP: Bad head at 0x3ffe2eb4. Expected 0xabba1234 got 0x00000008 abort()

I don't have enough reputation to be able to add a comment, but using the answer from Andrew Hart I was able to resolve this. For completeness of this thread in case the linked solution ever ...
user avatar
  • 21
2 votes

Is 1MB flash enough for OTA upload in ESP-01?

For OTA uploads, the size of the compiled (old sketch + new sketch) should not exceed the flash size. Due to this, large sketches (more than 500KB with 1MB flash) cannot be OTA uploaded directly if ...
user avatar
2 votes
Accepted

Parsing JSON response from Stream

httpClient.getStream() returns an instance of Stream that you can pass to deserializeJson(), like so: deserializeJson(doc, httpClient.getStream()); However, by doing so, you bypass the code in ...
user avatar
1 vote
Accepted

Wifi Scanning code for esp32 wroom 32

This is a issue raised on github about this: https://github.com/espressif/arduino-esp32/issues/3294 And the issue seems to be that a failed connect prevent the scanning and the solution is: So what i ...
user avatar
  • 1,297
1 vote

Can't enable face detection on esp32 cam : CORRUPT HEAP: Bad head at 0x3ffe2eb4. Expected 0xabba1234 got 0x00000008 abort()

Rollback your ESP32 board driver to 1.04. works for me ;-)
user avatar
  • 111
1 vote

ESP32 Arduino Bluetooth Serial does not reconnect after disconnecting

Nothing wrong with your code, I've the exact same issue as you have. It bothers me whole week long and fortunately, we (along with my colleague) accidentally figured that was caused by Windows 10, ...
user avatar
  • 11
1 vote

Calculate battery (18650 Li-ion) voltage using ESP8266-12E

Everything was correct and my circuit is also good. The only difference i found is to this below line: temp = (analogvalue * 3.3) / 1024.0; Which should be temp = (analogvalue * 1.0) / 1024.0; We are ...
user avatar
1 vote

Is it possible to check for correct architecture on OTA update (ESP32 or ESP8266)?

I assume you are the one creating the OTA update. If so, then why don't you just include a "signature" in the code that is the architecture, i.e. ESP8266 vs. ESP32 and then check for that ...
user avatar
  • 1,016
1 vote

What is the best way to init wifi communication between two devices (get IP address)?

One is a server and the other is a client. The server do not need to know IP of the client, but the client need to know IP address of the server. See more in communication between two Arduino
user avatar
1 vote

Capture GRAYSCALE image with ESP32 Cam

I guess that 1 year later you shouldn't work on this anymore, but for every one that need the grayscale too, here my solution. For reference I've found here that we can set : s->set_special_effect(...
user avatar
  • 11
1 vote

Capture GRAYSCALE image with ESP32 Cam

I just tried this with my ESP32Cam with no problems. I would check that you are supplying enough power; I've definitely seen the 'Camera capture failed' when I had power issues. Also, I would try a ...
user avatar
  • 111
1 vote
Accepted

How to assign ESP8266 access point a hostname that can be resolved by the stations?

I'm unclear on the distinction being drawn here: the hostname and not mDNS mDNS, like DNS, and hostname lists are all things a "resolver" would use to map a "hostname" to an IP ...
user avatar
  • 3,913
1 vote

Using esp-wroom-32 without a development board

You could use wireless. First, use OTA programming (eg Elegant OTA) to burn a basic OTA uploader. Then, in principle, you can then upload any sketch you want so long as it ALWAYS has the basic OTA ...
user avatar
1 vote

ESP32 softAP SSID not const

A const parameter to a function doesn't define what can be passed. It is, instead, a "promise" by the function that it will not modify the data you pass it. In C when you pass a "string&...
user avatar
  • 102k
1 vote
Accepted

I2C comunication, ESP->Nano on endTransmission no ACK fron nano

I'm a fool, I tried to detect other devices in the setup function before the Wire.begin(PIN_SDA, PIN_SCL, I2C_MASTER); I Found it only because of you. The rubber duck. I started to write the program ...
user avatar
  • 15
1 vote

I'm getting an error while uploading my code to esp8266 via an arduino (FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error)))

You need to set esp 8266 to flash mode. Please connect en PIN to Gnd pin. Then flash again.
user avatar
1 vote

Problems with detecting button digital state

turns out that it is very simple, I shouldn't put buttonPin[1] a variable for PressNHold, I had to put just1, buttonPin was used already in button_state, also, PressnHold local variables should be ...
user avatar
1 vote
Accepted

ESP01 and Arduino - Serial port confusion

The Arduino UNO only has one serial port. That is pins 0/1 (RX and TX), which is mapped to the Serial object. Those pins and that object are also used for communication with the PC through the USB ...
user avatar
  • 102k

Only top scored, non community-wiki answers of a minimum length are eligible