Search found 6 matches

by dotbot
Fri Oct 23, 2020 1:30 am
Forum: ESP-IDF
Topic: Ledc PWM frequency not being set correctly
Replies: 1
Views: 1956

Re: Ledc PWM frequency not being set correctly

worked it out, silly mistake

I was setting the timers freq_hz with an integer when it needed uint32_t, not sure how it worked in my last project but it seems to be working now
by dotbot
Thu Oct 22, 2020 2:57 pm
Forum: ESP-IDF
Topic: Ledc PWM frequency not being set correctly
Replies: 1
Views: 1956

Ledc PWM frequency not being set correctly

Hi All I've been trying to configure PWM on GPIO 5 and 17 (used esp-idf) and while I can get the duty cycle to be set correctly the frequency does not match the value set in the ledc_timer_config_t object. For whatever reason, the period is set to 3.6seconds (rather than a frequency of 25kHz as set)...
by dotbot
Wed Jan 15, 2020 3:33 am
Forum: ESP32 Arduino
Topic: How to avoid initial flashing of common anode RGB LED
Replies: 3
Views: 4463

Re: How to avoid initial flashing of common anode RGB LED

This might do the trick https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/gpio.html " void gpio_deep_sleep_hold_en(void) Enable all digital gpio pad hold function during Deep-sleep. When the chip is in Deep-sleep mode, all digital gpio will hold the state before sleep, ...
by dotbot
Tue Jan 14, 2020 8:10 am
Forum: ESP32 Arduino
Topic: ESP32 SPI default config
Replies: 2
Views: 6150

Re: ESP32 SPI default config

I have been able to solve the problem myself. If i instatiated the TS7735 object using the default hardware SPI bus Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST); rather then the bit banged SPI Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST); I can...
by dotbot
Tue Jan 14, 2020 1:53 am
Forum: ESP32 Arduino
Topic: How to avoid initial flashing of common anode RGB LED
Replies: 3
Views: 4463

Re: How to avoid initial flashing of common anode RGB LED

Can you describe the circuit you are using a bit more, are you using a pull up resistor on the cathode of the LEDs? Are you sinking the LED current through the GPIO Pins? Any chance you have a scope and can measure the voltage of the GPIO durring the reset where the flash happens? I'm not sure what ...
by dotbot
Mon Jan 13, 2020 7:42 am
Forum: ESP32 Arduino
Topic: ESP32 SPI default config
Replies: 2
Views: 6150

ESP32 SPI default config

Hello All I’m using the SPI bus (VSPI) to communicate with an AD9833 chip and a TS7735 LCD display (via the arduino SPI lib), I have been able to communicate with each individually and I have also been able to communicate with the TS7735 and then the AD9833. However, I can’t communicate with the TS7...