Search found 151 matches

by meowsqueak
Wed Apr 04, 2018 4:39 am
Forum: General Discussion
Topic: Q on gpio_set_direction()
Replies: 7
Views: 11653

Re: Q on gpio_set_direction()

thanks for your response. OK, so if I get this right, an INPUT/OUTPUT pin is really just an output pin where you can use a read operation on the same pin that will simply return the value you have written. It doesn't mean that you can read from an external device connected to that pin. Is this corr...
by meowsqueak
Wed Apr 04, 2018 4:29 am
Forum: ESP-IDF
Topic: Request for observations: RMT rmt_driver_install crashing repeatedly after a previous crash
Replies: 5
Views: 6734

Request for observations: RMT rmt_driver_install crashing repeatedly after a previous crash

I've seen some issues with RMT on the ESP-IDF v3.0rc1 branch recently. In particular, RMT-heavy operations (such as reading from multiple DS18B20 devices regularly) seems to work well, until something unrelated causes the ESP32 to crash and reset. Then when the device boots up and tries to initialis...
by meowsqueak
Wed Apr 04, 2018 4:10 am
Forum: ESP32 Arduino
Topic: Newbie in need of a little help (DS18B20)
Replies: 12
Views: 16339

Re: Newbie in need of a little help (DS18B20)

Yes i have seen a lot of i2c problems on the interweb. I did consider putting on a i2c io expander and a RTC also on i2c. I might end up using a thrusty old arduino mega and only use the esp32 as a wifi module. Some projects as my current one requires reliability. Just in case it's not clear, the D...
by meowsqueak
Wed Apr 04, 2018 4:03 am
Forum: General Discussion
Topic: Q on gpio_set_direction()
Replies: 7
Views: 11653

Re: Q on gpio_set_direction()

Usually on microcontrollers/CPUs there are two separate electrical paths on the pin's hardware driver, the output path and the input path. They are connected to each other at the pin. When set to input-only, the output is put into a high-impedance tri-state, so it does not drive the pin. Depending o...
by meowsqueak
Wed Mar 28, 2018 9:58 am
Forum: ESP-IDF
Topic: I2C crash with release/v3.0 - what's an effective way to debug this?
Replies: 28
Views: 33620

Re: I2C crash with release/v3.0 - what's an effective way to debug this?

Looks like this might be fixed with https://github.com/espressif/esp-idf/co ... b190eff1ad

I've tested it on my boards and the problem is no longer occurring, however I'm also running a long-term test to be sure.
by meowsqueak
Mon Mar 26, 2018 4:26 am
Forum: General Discussion
Topic: Trigger an action every "exact" second after syncing with NTP Server
Replies: 4
Views: 11361

Re: Trigger an action every "exact" second after syncing with NTP Server

You can also use vTaskDelayUntil() in ESP-IDF v3.0rc for a slightly more accurate delay, if you need to take into consideration some processing between reading the current time and the task actually going to sleep, although note that your task is only going to start running on a scheduler tick bound...
by meowsqueak
Mon Mar 26, 2018 4:15 am
Forum: Showcase
Topic: JTAG Debugger that fits most ESP32 Projects
Replies: 12
Views: 22450

Re: JTAG Debugger that fits most ESP32 Projects

I found a lot of JTAG debuggers that could be used with the ESP32. But most of them are out of stock or discontinued. Others too expensive. Cool project! I'm curious though - what do you consider "too expensive"? I have a C232HM that works well with the ESP32, and they are US$26 (ex. shipping) each...
by meowsqueak
Fri Mar 16, 2018 4:15 am
Forum: ESP-IDF
Topic: I2C crash with release/v3.0 - what's an effective way to debug this?
Replies: 28
Views: 33620

Re: I2C crash with release/v3.0 - what's an effective way to debug this?

Just curious about this. The OP does not give enough information to actually help you. What sensor are you trying to talk to. Are you using IDF or Arduino, What ESP32 are your using. Do you have pullup resistors on the I2C lines and what are there values. You have not shared any of your code so tha...
by meowsqueak
Wed Mar 14, 2018 6:25 am
Forum: ESP-IDF
Topic: Getting the uptime
Replies: 9
Views: 41260

Re: Getting the uptime

esp_timer_get_time returns 64-bit time since startup, in microseconds. Oh, now that IS useful! - now I wish I hadn't just spent the last hour implementing the exact same thing :) By my calculations that should last for about 584,000 years before overflow. Should be sufficient for most IoT applicati...
by meowsqueak
Wed Mar 14, 2018 5:08 am
Forum: ESP-IDF
Topic: Getting the uptime
Replies: 9
Views: 41260

Re: Getting the uptime

xTaskGetTickCount will probably do the trick. P.S: The tickcount will wrap every 49 days I guess. You'll have to check it periodically and adjust your uptime calculation. With a default tick rate of 100 Hz and TickType_t being a uint32_t, wouldn't it overflow every ~497 days? In [7]: 2**32 / 100 / ...