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!
Search found 4 matches
- Tue Feb 28, 2023 2:18 am
- Forum: ESP-IDF
- Topic: bdc_motor doesn't work with psram enabled
- Replies: 2
- Views: 1657
- Tue Feb 28, 2023 12:31 am
- Forum: ESP-IDF
- Topic: bdc_motor doesn't work with psram enabled
- Replies: 2
- Views: 1657
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" #inc...
- Sat Feb 11, 2023 11:52 pm
- Forum: ESP-IDF
- Topic: Using esp-camera blocks MCWPM
- Replies: 0
- Views: 951
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 ...
- Fri Feb 10, 2023 5:26 am
- Forum: ESP-IDF
- Topic: esp-cam - send buffer over MQTT
- Replies: 2
- Views: 1559
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)
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)