Search found 18 matches

by liebman
Thu Oct 19, 2023 12:25 pm
Forum: Hardware
Topic: ESP32 Can't upload a code
Replies: 3
Views: 4270

Re: ESP32 Can't upload a code

It looks like IO0 is not connected on the ESP32 module.
by liebman
Sat Aug 26, 2023 5:23 pm
Forum: Hardware
Topic: esp32-c6 adc1 ch1 vs ch2
Replies: 1
Views: 1443

Re: esp32-c6 adc1 ch1 vs ch2

For instance, with 3v at the top of the voltage divider the center measures 1.5v when not connected to gpio1, it measures 1.2v when connected to gpio1 and 1.5v when connected to gpio2. With 4v at the top of the divider, I measure 2v when unconnected and 1.5v when connected to gpio1. Is seems that th...
by liebman
Fri Aug 25, 2023 8:28 pm
Forum: Hardware
Topic: esp32-c6 adc1 ch1 vs ch2
Replies: 1
Views: 1443

esp32-c6 adc1 ch1 vs ch2

Hi, Using an esp32c6 and esp-idf version 5.1.1 I've set up a voltage divider with two 100k resistors to measure battery voltage. When I use adc1ch1 (gpio1) it pulls the voltage of the divider down throwing the measurement off. If I use adc1ch2 (gpio2) it does not. Is this something that can be disab...
by liebman
Mon Jul 11, 2022 5:05 pm
Forum: Hardware
Topic: Esp32 module with Custom Board.
Replies: 2
Views: 1989

Re: Esp32 module with Custom Board.

That should work but how do you plan on flashing the module? I generally bring these plus GND and RXD/TXD to a connector (even if unpopulated) so that in a pinch the board can be re-flashed.
by liebman
Sun Jun 12, 2022 12:16 pm
Forum: General Discussion
Topic: New custom board; how do I add to platformIO/VSCode?
Replies: 5
Views: 4801

Re: New custom board; how do I add to platformIO/VSCode?

Espressif does not control additions to platformIO. You need to contact them to see if they are willing to add it. Does that mean I can't use PlatformIO to write programs for a board that I design? That doesn't sound right. I was thinking that I would need to make some new description file that wou...
by liebman
Sun Jun 05, 2022 1:32 pm
Forum: ESP-IDF
Topic: mcpwm_capture_enable() vs mcpwm_capture_enable_channel() surprise
Replies: 0
Views: 1920

mcpwm_capture_enable() vs mcpwm_capture_enable_channel() surprise

While updating from esp-idf 4.3.x to 4.4.1 I noticed that mcpwm_capture_enable() was deprecated in favor of mcpwm_capture_enable_channel(). So in mcpwm_capture_config_t I set cap_prescale the same as I had previously passed to mcpwm_capture_enable() in num_of_pulse. This resulted in a different moto...
by liebman
Sat May 28, 2022 2:44 pm
Forum: ESP-IDF
Topic: Need help on High-Level Interrupts
Replies: 17
Views: 10063

Re: Need help on High-Level Interrupts

While this may be too late to help you I used highint 5 to sync a DS3231 RTC with I gps module. It uses highint 5 to detect the active edges of both the GPS and the RTC and computes the delta in microseconds. Code can be found here https://github.com/liebman/esp32-gps-ntp
by liebman
Thu May 12, 2022 5:27 pm
Forum: Hardware
Topic: ESP32 board appears to freeze/unfreeze when USB port disconnected/connected
Replies: 2
Views: 2334

Re: ESP32 board appears to freeze/unfreeze when USB port disconnected/connected

Maybe something happens with the DTR & RTS signals at disconnection?
by liebman
Thu Mar 03, 2022 12:36 pm
Forum: General Discussion
Topic: ESP32 PWM duty cycle measurement from input
Replies: 5
Views: 9494

Re: ESP32 PWM duty cycle measurement from input

Maybe use xt_highint4 or xt_highint5? You'll have to write it in assembler but its very low latency. (and the latency is more consistent) https://docs.espressif.com/projects/esp-idf/en/v4.4/esp32/api-guides/hlinterrupts.html. I've used it to measure the time offset of two signals to sync a DS3231 wi...
by liebman
Sun Feb 06, 2022 8:47 pm
Forum: General Discussion
Topic: GPIO Interrupt from a class file
Replies: 12
Views: 18037

Re: GPIO Interrupt from a class file

This works for me, I've used this pattern many times: (this is a 1hz signal from a DS3231 RTC, ignore the "timer" bits, I use that on a test board that does not have the RTC installed) /* * MIT License * * Copyright (c) 2022 Christopher B. Liebman * * Permission is hereby granted, free of charge, to...