Search found 155 matches

by idahowalker
Fri Dec 18, 2020 12:43 pm
Forum: ESP32 Arduino
Topic: repetitive timerAlarmWrite problem?
Replies: 4
Views: 245

Re: repetitive timerAlarmWrite problem?

take the code out of the isr volatile bool ItrippedOut=false; isr my thing() { ItrippedOut= true; better yet use a freeRTOS event trigger to trigger the task to be ran.} loop() { If Itrippedout then run the code that was in the isr and set iTrippedOut = false; ready for the next isr} So now loop run...
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: 833

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: 614

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: 1664

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: 710

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: 1068

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: 6
Views: 2049

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: 15720

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...

Go to advanced search