New answers tagged

1

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 sketch included within your program.


0

The DevKit is a development board by ESP32 manufacturer Espressif to demonstrate ESP32 usage and to support prototyping. The NodeMcu is a board by NodeMcu intended for the NodeMcu Lua language firmware. There is no standard pinout. The labels on the DevKit are io pin numbers of the MCU. You can use both development boards with the ESP32 "Arduino boards ...


1

OK, I got it to work as follows: Not passing the binary anymore, passing the file name so the FTPPost function will do its own reading of the file on SPIFFS and will post in 256 bytes chunks. The same strategy works with HTTP post to the WebService. File picFile = SPIFFS.open(fileName,FILE_READ); const size_t bufferSize = 256; uint8_t buffer[bufferSize]...


1

You should not use String to store binary data. Instead allocate yourself an array of uint8_t of the right size. uint8_t *imageData; size_t len = file.size(); imageData = alloca(len); file.readBytes(imageData, len); webClient.write(imageData, len); With that said, without knowing what the rest of your program is doing I can only surmise that you're just ...


-1

Although not strictly required, maybe use parentheses around millis() - sendDataPrevMillis for readability; I guess you will have initialised sendDataPrevMillis to 0 but the first time you assign sendDataPrevMillis to millis() some time will have elapsed since you evaluated. So calling millis() twice will give different results. That makes it less easy to ...


3

Found the Adafruit NeoPixel is the reason for the problem (or the way it is implemented above is not the best). Solved with the fastLED library as below: #include "FastLED.h" #define NUM_LEDS 128 #define DATA_PIN 14 #define BRIGHTNESS 10 CRGB leds[NUM_LEDS]; int delayval = 10; // delay for half a second boolean N0[8][8] PROGMEM = {{0,0,1,1,1,1,0,0}...


0

There's an official Telnet-to-Serial example on Espressif's Arduino GitHub repository. It shows how to set up an ESP32 to act as a serial (over USB if your board has it) to WiFI (using telnet). Hopefully this is something that will help you get along.


1

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, weird right? We don't believe it at very beginning either, but after several back-N-forth testing, it just like that. When we upload exact same code from another ...


0

There is no such thing as an "interrupt on a value changing" since that is something that only exists in software, and interrupts are things triggered by hardware. All you can do is check the value in loop() and send the data if the value is above your threshold. If you want to wake from sleep then you will have to do that periodically through ...


1

The way you have it set up is fine if you aren't going to light up all the LEDs at full brightness. And if you do, you're not going to break your ESP32 Dev Board the way you have it set up in your diagram (since you are not running the power THROUGH the board). The LiPo battery probably has its own little regulator on it to prevent it from being damaged. ...


1

This is a resistive sensor and "plain" water is not infinitely conductive. In fact, pure or distilled water is a very poor conductor. Also, "plain" water - tap water, I assume - will vary in its dissolved solids, not only from source to source, but likely over time, too, for some sources and it is these solutes that are responsible for ...


1

The power wire is just needed, well, to power the servo. The control is done via the third wire (the other wire being Ground). You can connect the second servo's power in parallel, only the control wire must be separated from the first servo's control wire. Note: You need to make sure that the current consumption of both servos does not exceed the provided ...


3

0x1000 is the "second stage" bootloader. This is the code that is responsible for loading the code according to the layout specified in the partition table. In ESP-IDF, the binary image which resides at offset 0x1000 in flash is the second stage bootloader. Second stage bootloader source code is available in components/bootloader directory of ESP-...


2

I directly see 3 problems with your code: Serial.write() will not return the written data, but the number of send bytes. This means that in your for loop you are only assigning the written number of bytes to the variable, not the data. But I guess you want to display the actual data, which was read from the file. You should assign the return value of fr....


0

The m5stack timer camera X (OV3660) lacks support. There is nothing on how to flash and use micropython in this device. There is a cameratool you can download and take snapshots via serial port, there is the standard arduino software you can flash and that's it. I miss some guides on how to flash micropython on it and make it work with mqtt and more complex ...


1

decoded backtrace in your question is missing, one of the choices to see stack trace is https://github.com/littleyoda/EspStackTraceDecoder i dont know exactly if this is your case or not, but calling esp_ble_gap_stop_scanning() before esp_bluedroid_deinit() possibly avoids your crash.


0

After some Tests i recognized, that the problem is between the miro-USB-connector to the Vin Pin. So i soldered a thin wire from Pin 5 of the USB-Connector (5V-Pin) to the Vin-Pin of The Dev-Board. And it works without Problems.


Top 50 recent answers are included