Search found 5 matches
- Mon Mar 30, 2020 4:31 pm
- Forum: ESP-IDF
- Topic: Interfacing Encoder Switch with ESP 32
- Replies: 2
- Views: 4132
Re: Interfacing Encoder Switch with ESP 32
I had a debouncing circuit already in place, I see some curved rising and falling edge. Let me make it straight by tweaking the R in the RC circuit.
- Sun Mar 29, 2020 8:59 am
- Forum: ESP-IDF
- Topic: Interfacing Encoder Switch with ESP 32
- Replies: 2
- Views: 4132
Interfacing Encoder Switch with ESP 32
Hi,
I am interfacing ESP32 with an encoder switch and not able to read it properly in both directions. If I limit it to one direction, it works almost fine.
Here is the configuration:
#define ENC_DATA 25
#define ENC_CLK 33
#define ENTER 26
inside main before while(1):
gpio_set_direction(ENTER ...
I am interfacing ESP32 with an encoder switch and not able to read it properly in both directions. If I limit it to one direction, it works almost fine.
Here is the configuration:
#define ENC_DATA 25
#define ENC_CLK 33
#define ENTER 26
inside main before while(1):
gpio_set_direction(ENTER ...
- Fri Mar 27, 2020 11:53 am
- Forum: ESP-IDF
- Topic: UART Config Issue
- Replies: 2
- Views: 4139
Re: UART Config Issue
what is that?
which API you mean?
which API you mean?
- Tue Mar 24, 2020 7:31 pm
- Forum: ESP-IDF
- Topic: UART Config Issue
- Replies: 2
- Views: 4139
UART Config Issue
[Codebox]
#define UART2_TX_PIN 17
#define UART2_RX_PIN 16
char uartTxBuff[11] = "INDIA WON\n";
inside the main function
//Initialize the UART
//Baud Rate
//Parity
//Data Bits
//Stop Bits
//Flow Control
uart_set_baudrate(UART_NUM_2, 115200);
uart_set_parity(UART_NUM_2, UART_PARITY_DISABLE);
uart_set ...
#define UART2_TX_PIN 17
#define UART2_RX_PIN 16
char uartTxBuff[11] = "INDIA WON\n";
inside the main function
//Initialize the UART
//Baud Rate
//Parity
//Data Bits
//Stop Bits
//Flow Control
uart_set_baudrate(UART_NUM_2, 115200);
uart_set_parity(UART_NUM_2, UART_PARITY_DISABLE);
uart_set ...
- Wed Mar 18, 2020 5:38 pm
- Forum: General Discussion
- Topic: ESP32 - GPIO speed lower than expected
- Replies: 10
- Views: 116096
Re: ESP32 - GPIO speed lower than expected
I was able to get 10Mhz @ESP32 working at 240Mhz with following instructions:
You can save on bit shifting the bit 1<<(2)
GPIO.out_w1ts = 0x04; // GPIO2 HIGH
GPIO.out_w1tc = 0x04; // GPIO2 LOW
My code was compiled still in debug mode.
Not sure, if there is a way to increase the speed a bit more?
You can save on bit shifting the bit 1<<(2)
GPIO.out_w1ts = 0x04; // GPIO2 HIGH
GPIO.out_w1tc = 0x04; // GPIO2 LOW
My code was compiled still in debug mode.
Not sure, if there is a way to increase the speed a bit more?