Search found 153 matches

by idahowalker
Sun Sep 06, 2020 7:44 pm
Forum: ESP32 Arduino
Topic: What runs on each core? And can you force ethernet callback routines onto core 0?
Replies: 3
Views: 304

Re: What runs on each core? And can you force ethernet callback routines onto core 0?

Use xTaskCreatePinnedToCore(), internet search time. BTW xTaskCreatePinnedToCore works just like xTaskCreate().
by idahowalker
Fri Sep 04, 2020 12:20 pm
Forum: ESP32 Arduino
Topic: external interrupt ESP32
Replies: 3
Views: 204

Re: external interrupt ESP32

There is this thingy that is an add on to the Arduino IDe called ESP Exception Decored which can be found here https://github.com/me-no-dev/EspExceptionDecoder that has been, for me, a great help in getting to the cause of those Guru error thingies. Why not post your code with code tags so i don't h...
by idahowalker
Thu Sep 03, 2020 9:18 pm
Forum: ESP32 Arduino
Topic: ESP32 Can't make an accurate Frequency Counter ???
Replies: 10
Views: 532

Re: ESP32 Can't make an accurate Frequency Counter ???

Will the built in pulse counter work for your application?

from the ESP32 PCNT API: The PCNT (Pulse Counter) module is designed to count the number of rising and/or falling edges of an input signal.

https://docs.espressif.com/projects/esp ... /pcnt.html
by idahowalker
Tue Jul 28, 2020 12:03 pm
Forum: ESP32 Arduino
Topic: Serial2 is noisy [ESP32 - Arduino]
Replies: 2
Views: 326

Re: Serial2 is noisy [ESP32 - Arduino]

Are the RPI and ESP32 sharing the same ground?

Have you done a loopback test on the RPi to insure the RPi can send receive serial?
by idahowalker
Tue Jul 07, 2020 6:41 pm
Forum: ESP32 Arduino
Topic: How does ESP32 drives OLED 1106
Replies: 5
Views: 497

Re: How does ESP32 drives OLED 1106

The u8g2 library works on the SH1106 OLED, https://github.com/olikraus/u8g2/wiki Example of a sh1106 instantiation, U8G2_SH1106_72X40_WISE_F_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); Select an instantiation that matches your OLED. You can see the default pin numbers/connection...
by idahowalker
Tue Jun 23, 2020 6:54 pm
Forum: ESP32 Arduino
Topic: Reliable WiFi and MQTT connection and reconnection?
Replies: 5
Views: 879

Re: Reliable WiFi and MQTT connection and reconnection?

I did 2 things, a few days ago, that increased the MQTT connection reliability. void MQTTkeepalive( void *pvParameters ) { MQTTclient.setKeepAlive( 90 ); // setting keep alive to 90 seconds for (;;) { if ( (wifiClient.connected()) && (WiFi.status() == WL_CONNECTED) ) { //log_i( "staying alive " ); x...
by idahowalker
Tue Jun 16, 2020 2:16 pm
Forum: ESP32 Arduino
Topic: The Proper Way to Reconnect to WiFi?
Replies: 6
Views: 11839

Re: The Proper Way to Reconnect to WiFi?

I use the MQTT keep alive to detect a lack of network connection with MQTT. #include <WiFi.h> #include <PubSubClient.h> #include "certs.h" #include "sdkconfig.h" #include "esp_system.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/timers.h" #include "freertos/event_gr...
by idahowalker
Sun Jun 14, 2020 2:33 pm
Forum: ESP32 Arduino
Topic: Reliable WiFi and MQTT connection and reconnection?
Replies: 5
Views: 879

Re: Reliable WiFi and MQTT connection and reconnection?

Well cool, that code, posted above, the ESP32 stayed connected for 24 hours. A first. Seems the MQTT callback does not like to run code.
by idahowalker
Sun Jun 14, 2020 9:12 am
Forum: ESP32 Arduino
Topic: 'hw_timer_t' does not name a type error when in an included file
Replies: 2
Views: 428

Re: 'hw_timer_t' does not name a type error when in an included file

In this thread I posted code that uses the hardware timer and other libraries https://esp32.com/viewtopic.php?f=19&t=16109

Go to advanced search