Search found 4 matches

by mcmillanje
Tue Feb 28, 2023 2:18 am
Forum: ESP-IDF
Topic: bdc_motor doesn't work with psram enabled
Replies: 2
Views: 2145

Re: bdc_motor doesn't work with psram enabled

I actually figured it out. I had to enable "Place MCPWM ISR function into IRAM" and "Place MCPWM control functions into IRAM" in menuconfig.

Thanks for the tip about io16 though! I was having weird behavior where it spun the motor on boot as well so maybe that's why. Thanks!
by mcmillanje
Tue Feb 28, 2023 12:31 am
Forum: ESP-IDF
Topic: bdc_motor doesn't work with psram enabled
Replies: 2
Views: 2145

bdc_motor doesn't work with psram enabled

Wondering if anyone can help me figure this out. Here's my sample code. I've broken it down to as simple as I can to eliminate potential causes:

#include <stdio.h>

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "driver/gpio.h"
#include "esp_log.h ...
by mcmillanje
Sat Feb 11, 2023 11:52 pm
Forum: ESP-IDF
Topic: Using esp-camera blocks MCWPM
Replies: 0
Views: 1168

Using esp-camera blocks MCWPM

I'm trying to use MCWPM to control a servo motor and esp-camera at the same time.
My code is basically a copy of the example here: https://github.com/espressif/esp32-camera/tree/master/examples but I also added in the following function at the top:
[Codebox]static int targetAngle = 0;
static inline ...
by mcmillanje
Fri Feb 10, 2023 5:26 am
Forum: ESP-IDF
Topic: esp-cam - send buffer over MQTT
Replies: 2
Views: 1990

esp-cam - send buffer over MQTT

Hello,

Yes - I know this is a silly way to do this - but I have an esp32-cam and I'm using ESP-IDF.

It looks like ESP-MQTT is only able to send char*. What is the best way to encode an esp32-camera frame buffer (jpeg) to a char* to send via mqtt? (I'll decode with python)

Go to advanced search