Search found 76 matches
- Fri Sep 29, 2023 10:26 am
- Forum: ESP-IDF
- Topic: ESP32S3 : How to flash/program the Esp32S3 chip using command lines ?
- Replies: 5
- Views: 1776
Re: ESP32S3 : How to flash/program the Esp32S3 chip using command lines ?
I always compile and flash from the command line, you just have to configure the esp-idf environment as indicated in the documentation in the get-stated https://docs.espressif.com/projects/esp-idf/en/v5.1.1/esp32/get-started/index.html section and then you can use idf.py to do everything you need. h...
- Thu Sep 28, 2023 12:19 pm
- Forum: ESP-IDF
- Topic: Independent and Simultaneous Tasks (ESP-IDF FreeRTOS)
- Replies: 12
- Views: 7260
Re: Independent and Simultaneous Tasks (ESP-IDF FreeRTOS)
Yes, I understand what you say about the priorities of the tasks, that is clear to me and everything works perfectly, since the most priority is the task that drives the engine.
Yes, I use PWM to control the motors.
Yes, I use PWM to control the motors.
- Thu Sep 28, 2023 8:59 am
- Forum: ESP-IDF
- Topic: Two diferents versions de esp-idf in diferents directories
- Replies: 4
- Views: 1472
Re: Two diferents versions de esp-idf in diferents directories
Hi all, for what it's worth, I have managed to install the esp-idf-v5.1 environment in another directory and make it work independently from the 4.2 version I had before. When I want to use one and the other I run . ./export.sh from the directory of the chosen version. I have had to upgrade python t...
- Wed Sep 27, 2023 7:34 am
- Forum: ESP-IDF
- Topic: Independent and Simultaneous Tasks (ESP-IDF FreeRTOS)
- Replies: 12
- Views: 7260
Re: Independent and Simultaneous Tasks (ESP-IDF FreeRTOS)
it is not the idea that I have to move each servo in an independent task that runs on each core Indeed, it's not. It's an alternative suggestion on how to control any number of servos simultaneously from a single dedicated task. One or more other tasks or ISRs can asynchronously give "commands" to ...
- Tue Sep 26, 2023 12:47 pm
- Forum: ESP-IDF
- Topic: Independent and Simultaneous Tasks (ESP-IDF FreeRTOS)
- Replies: 12
- Views: 7260
Re: Independent and Simultaneous Tasks (ESP-IDF FreeRTOS)
(Not really thread-safe, but as an idea:) struct ServoMove { volatile uint8_t target; volatile uint8_t increment; }; ServoMove servos[NUM_SERVOS] = {}; void servoMoverTask(void*) { while(1) { for( int i = 0; i < NUM_SERVOS; ++i ) { const uint8_t target = servos[i].target; const uint8_t increment = ...
- Thu Sep 21, 2023 8:35 am
- Forum: ESP-IDF
- Topic: Independent and Simultaneous Tasks (ESP-IDF FreeRTOS)
- Replies: 12
- Views: 7260
Re: Independent and Simultaneous Tasks (ESP-IDF FreeRTOS)
Okay, I'm going to be very clear here: If you need to notify two tasks, do not worry about the fact that they are not notified or do not run at exactly the same time. You have a 240MHz CPU here, the time it takes for the notification to take place (or even for the task to entirely complete) is zero...
- Thu Sep 21, 2023 6:29 am
- Forum: ESP-IDF
- Topic: Independent and Simultaneous Tasks (ESP-IDF FreeRTOS)
- Replies: 12
- Views: 7260
Re: Independent and Simultaneous Tasks (RTOS)
Good morning everyone, sorry for reopening this post, the thing is that seeing this video https://youtu.be/fBWu8sCuat4?si=uoCsErB2rurPCQ1K , I return to the idea of being able to move two servos simultaneously using two different tasks, each tied to a different core. If I use SoC with dual core, lik...
- Fri Aug 25, 2023 11:36 am
- Forum: ESP-IDF
- Topic: Two diferents versions de esp-idf in diferents directories
- Replies: 4
- Views: 1472
Re: Two diferents versions de esp-idf in diferents directories
All right, I'll give it a try, I think it should be fine too.
Thank you both very much for your answers.
Best regards,
Thank you both very much for your answers.
Best regards,
- Wed Aug 23, 2023 5:51 pm
- Forum: ESP-IDF
- Topic: Two diferents versions de esp-idf in diferents directories
- Replies: 4
- Views: 1472
Two diferents versions de esp-idf in diferents directories
Hi all, I would like to know if I would have any problem if I install another version of esp-idf on my ubuntu computer (I am interested in testing with 5.1 stable). I think that if I save the repository in another directory, for example esp-idf51 and when I want to compile with this version I load t...
- Fri Aug 18, 2023 11:32 am
- Forum: ESP-IDF
- Topic: Independent and Simultaneous Tasks (ESP-IDF FreeRTOS)
- Replies: 12
- Views: 7260
Re: Independent and Simultaneous Tasks (RTOS)
Hi, I wonder if with the new MCPWM driver version 5.1 I could use the synchronisation of two PWM signals (that move the two servos of a turret, horizontal and vertical servo) to improve the synchronisation of the turret movement. Thanks from advance https://github.com/espressif/esp-idf/blob/v5.1/exa...