Search found 258 matches

by boarchuz
Sun Jan 26, 2020 8:50 pm
Forum: IDEs for ESP-IDF
Topic: VS Code Extension, includes missing, menuconfig not showing up [IDFGH-3001]
Replies: 4
Views: 3949

Re: VS Code Extension, includes missing, menuconfig not showing up

Squiggles: You need to set up Intellisense. Instructions here: https://github.com/espressif/vscode-esp ... URATION.md

Menuconfig: Close VS Code, delete your project's build folder, launch VS Code and try again.
by boarchuz
Sat Jan 25, 2020 12:08 pm
Forum: ESP32 IDF
Topic: How to find the image size for OTA
Replies: 7
Views: 1371

Re: How to find the image size for OTA

I think what you want is the total binary size, so that you can determine the progress, eg. image_len_read / total_size * 100 = x%. Assuming you're downloading the firmware, most servers will automatically set the Content-Length header, otherwise you'll have to implement it on the server some other ...
by boarchuz
Sat Jan 25, 2020 11:54 am
Forum: ESP32 Arduino
Topic: WiFi/MQTT in setup() breaks code in loop()
Replies: 2
Views: 454

Re: WiFi/MQTT in setup() breaks code in loop()

Always boots with outPin HIGH Try initialising 'previous' with the current level, rather than defaulting to LOW. I don't expect that alone will fix it though. eg. void setup() { // ... previous = digitalRead(inPin); // <---- } Spams MQTT topic It's hard to tell which commented snippets are junk and...
by boarchuz
Wed Jan 22, 2020 8:13 am
Forum: ESP32 Arduino
Topic: ESP32 crashes after HTTP request
Replies: 8
Views: 2210

Re: ESP32 crashes after HTTP request

You probably should be checking that it began successfully. eg. bool httpInitResult = http.begin("http://192.168.0.105:485/esp32.html"); if( httpInitResult == false ) { Serial.println("http.begin() failed!"); //debug } else { int httpCode = http.GET(); if (httpCode > 0) { //Check for the returning c...
by boarchuz
Fri Jan 10, 2020 3:23 pm
Forum: General Discussion
Topic: Need Review of custom PCB design
Replies: 8
Views: 1922

Re: Need Review of custom PCB design

I'd suggest having another go at those power traces. Consider width, and more optimal routing.

Do you need that bottom-layer trace on 3V3 TP?

Check the vias for the exposed pad. Are they GND?
by boarchuz
Fri Jan 10, 2020 10:55 am
Forum: General Discussion
Topic: Trouble Waking from Ligh Sleep using ULP
Replies: 3
Views: 631

Re: Trouble Waking from Ligh Sleep using ULP

Light sleep behaviour is very different to deep sleep. Execution will continue from where it had a nap, rather than a 'reset' as with deep sleep. Try this: for(;;) { printf("Entering light sleep...\n"); vTaskDelay(500 / portTICK_PERIOD_MS); esp_light_sleep_start(); printf("Woke from light sleep!\n")...
by boarchuz
Fri Jan 10, 2020 7:22 am
Forum: ESP32 IDF
Topic: ESP32 define custom esp_err_t errors and best practice
Replies: 3
Views: 686

Re: ESP32 define custom esp_err_t errors and best practice

I had the exact same query as fiveowle5. If you can use only the existing built-in esp_err_t error values, return esp_err_t. BTW, if there is some reasonably generic error that you think we've missed out, feel free to make a feature request to add it. https://docs.espressif.com/projects/esp-idf/en/l...
by boarchuz
Tue Jan 07, 2020 9:40 am
Forum: Hardware
Topic: Touch GPIO of ESP32 as soil moisture sensor
Replies: 6
Views: 1375

Re: Touch GPIO of ESP32 as soil moisture sensor

Zeni241 wrote:
Tue Jan 07, 2020 8:10 am
captouch channel.
Touch pin, touch pad. Don't overthink it.
ESP_Sprite wrote:
Tue Jan 07, 2020 8:37 am
your electrodes probably will erode away
Isn't that only a concern for resistive moisture sensors? A benefit of capacitive is that he can insulate the entire probe.
by boarchuz
Sat Jan 04, 2020 11:04 am
Forum: IDEs for ESP-IDF
Topic: Official Visual Studio Code Extension for ESP-IDF Projects
Replies: 9
Views: 11234

Re: Official Visual Studio Code Extension for ESP-IDF Projects

Yep, official support for VS Code is very exciting. Special mention for the setup wizard - fantastic. But there are still red squiggles for all the #includes. Did you follow the setup guide here?: https://github.com/espressif/vscode-esp-idf-extension/blob/master/docs/C_CPP_CONFIGURATION.md You might...
by boarchuz
Tue Dec 31, 2019 1:05 pm
Forum: Showcase
Topic: HULP - ULP Helper
Replies: 2
Views: 6530

HULP - ULP Helper

https://github.com/boarchuz/HULP HULP contains a bunch of useful macros and a few functions to more easily program the ULP coprocessor (using legacy macros). ulp_var_t to easily share data between the SoC and ULP: RTC_DATA_ATTR ulp_var_t ulp_myvariable; //ULP I_GET(R0, R2, ulp_myvariable), I_ADDI(R0...

Go to advanced search