Search found 182 matches

by Gfast2
Wed Jun 05, 2019 7:14 am
Forum: General Discussion
Topic: What is the best practice for push-button event tracking/handling without any hardware debouncing circuit
Replies: 7
Views: 19485

Re: What is the best practice for push-button event tracking/handling without any hardware debouncing circuit

Sorry, I missed the dual functionality for long pressing the button. How about: - Checking for interrupts on rising and falling edge - onButtonPress => save esp_log_timestamp to uint32_t pressTimestamp; - onButtonRelease => save esp_log_timestamp to uint32_t releaseTimestamp; uint32_t pressMs = rel...
by Gfast2
Sat Jun 01, 2019 4:46 am
Forum: General Discussion
Topic: What is the best practice for push-button event tracking/handling without any hardware debouncing circuit
Replies: 7
Views: 19485

Re: What is the best practice for push-button event tracking/handling without any hardware debouncing circuit

You don't need to wait for a long button press to debounce it. Just save the esp_log_timestamp of when the button is released and ignore any new button press for the next say 100ms This should still be responsive enough and very simple to implement Also, use gpio interrupt to check for the button p...
by Gfast2
Thu May 30, 2019 2:37 pm
Forum: General Discussion
Topic: What is the best practice for push-button event tracking/handling without any hardware debouncing circuit
Replies: 7
Views: 19485

What is the best practice for push-button event tracking/handling without any hardware debouncing circuit

Hi ESP32: I think ESP32 is really cool & powerful. Thanks to its dual-core hardware & RTOS(much important then the previous one) I successfully made really something I've been pround of and would like to use. (And may be later I print the circuit and sells it, because my project is really awesome & ...
by Gfast2
Sun May 12, 2019 8:15 am
Forum: General Discussion
Topic: How to make SD card (in SPI Mode) working with other SPI Devices
Replies: 7
Views: 14525

Re: How to make SD card (in SPI Mode) working with other SPI Devices

Hi ESP32, Today I bring out this Gear to test its functionality in real. It's really a nice peace of gear! But I suddenly discovered/figured out, that some times when I try to write things to SD Card, the SD Card seems still no ready for that. I got such a log when I go back to my bench & try to rep...
by Gfast2
Sun May 12, 2019 5:31 am
Forum: General Discussion
Topic: esp32 idf errosrs while compiling the opc-ua files
Replies: 17
Views: 17676

Re: esp32 idf errosrs while compiling the opc-ua files

In my Human opinion all devices can run opc ua, even arduino uno can run opc at least. The Problem here is only, if you can "bake" a proper opc ua implementation into target device. Perhapse you'd like to read more about opc ua in open62541 project.
by Gfast2
Wed May 08, 2019 7:56 pm
Forum: General Discussion
Topic: How to make SD card (in SPI Mode) working with other SPI Devices
Replies: 7
Views: 14525

Re: How to make SD card (in SPI Mode) working with other SPI Devices

WiFive wrote:
Wed May 08, 2019 7:18 am
Zero initialize your structs, adafruit
Hi WiFive,

It just works. Thanks really a lot! I never suppose the error is such a simple one! :lol:

Now everything works fine!

Cheers

Gfast2
by Gfast2
Wed May 08, 2019 6:55 am
Forum: General Discussion
Topic: How to make SD card (in SPI Mode) working with other SPI Devices
Replies: 7
Views: 14525

Re: How to make SD card (in SPI Mode) working with other SPI Devices

Hello ESP32, I'm still fight for stopping & restarting SPI Bus "HSPI_HOST" again. Now I believe I can stop HSPI_HOST and do the SD Card I/O job as I wished. But I get no luck to reinitialize the SPI for the Nokia 5510 Display again. The Error Log: I (12920) MAIN: long btn press get triggered I (1292...
by Gfast2
Sat Apr 20, 2019 6:54 am
Forum: General Discussion
Topic: How to make SD card (in SPI Mode) working with other SPI Devices
Replies: 7
Views: 14525

Re: How to make SD card (in SPI Mode) working with other SPI Devices

Jo, I got this working. There is really no trick or change in esp-idf itself. The solution right now is just unplug the display from SPI bus & deinitialize the SPI bus, reinitialize the same SPI bus for SD Card accessing, mount/plug this card (the two job would be done by those automagic functions i...
by Gfast2
Sat Apr 13, 2019 4:05 pm
Forum: General Discussion
Topic: How to make SD card (in SPI Mode) working with other SPI Devices
Replies: 7
Views: 14525

Re: How to make SD card (in SPI Mode) working with other SPI Devices

Hi WiFive,

Thank you very much for the Quick reply. I will checkout the possible solution for my setup and may be post a nice little video if both of them works properly.

Cheers

Gfast2
by Gfast2
Sat Apr 13, 2019 6:15 am
Forum: General Discussion
Topic: How to make SD card (in SPI Mode) working with other SPI Devices
Replies: 7
Views: 14525

How to make SD card (in SPI Mode) working with other SPI Devices

Hello ESP-IDF, Recently I decide to make a "gps camera" for myself. It has many parts. but its core is simple: I read GPS Sentence from UART, If I push that button, I write this info into SD card. But the problem is, I would like to use a Nokia 5510 Display for some information display. It would sha...