Search found 37 matches

by kyrpav
Thu Mar 16, 2023 8:06 pm
Forum: ESP-IDF
Topic: indexing problem variables linked completely wrong
Replies: 0
Views: 522

indexing problem variables linked completely wrong

Working on creating an simple program for lvgl framework with esp32. I am using esp-idf v5.0.1 and lvgl as component release/v8.3 There is a very strange problem which i think it is indexing but maybe i am completely wrong so i will have to change the title the operands in a function and the usage o...
by kyrpav
Sun Mar 05, 2023 1:12 pm
Forum: IDEs for ESP-IDF
Topic: Proper component setup with esp-idf
Replies: 2
Views: 18419

Re: Proper component setup with esp-idf

In the link https://forum.lvgl.io/t/implicit-declaration-of-function-gpio-pad-select-gpio/8177 shows to include rom/gpio.h to driver/gpio.h to solve the issues with esp-idf and esp_lvgl_drivers after this And https://www.esp32.com/viewtopic.php?t=18861 Shows that the .bit_num is changed to .duty_res...
by kyrpav
Sat Mar 04, 2023 3:32 pm
Forum: IDEs for ESP-IDF
Topic: Proper component setup with esp-idf
Replies: 2
Views: 18419

Proper component setup with esp-idf

I am trying to make an lvgl project with esp32. I have started with the https://docs.lvgl.io/master/get-started/platforms/espressif.html that guides you to include in component folder the lvgl and lvgl_esp32_drivers as git submodules. The drivers project is needed for the displays but on build there...
by kyrpav
Fri Feb 18, 2022 12:08 am
Forum: ESP-IDF
Topic: non blocking semaphore in task
Replies: 2
Views: 1918

Re: non blocking semaphore in task

Unfortunately i was not thinking clearly i can set the delay not to portMax_Delay but to some milliseconds. but i still need to wrap it in if condition in order to know if this happend so the question is that does the semaphoreTake return something i tried to open to see the declaration but i did no...
by kyrpav
Thu Feb 17, 2022 11:49 pm
Forum: ESP-IDF
Topic: non blocking semaphore in task
Replies: 2
Views: 1918

non blocking semaphore in task

Hi i have a Task where it waits for a Samaphore to run. Then it has to go in an infinate loop to control a motor position. I would like to break this second loop when the stop button is pressed is there any way to call SemaphoreTake function to break from the second loop but not block the while loop...
by kyrpav
Sat Feb 12, 2022 2:23 pm
Forum: ESP-IDF
Topic: pass arg to High resolution timer callback
Replies: 1
Views: 1323

Re: pass arg to High resolution timer callback

i will try to pass it in the .arg of the args of timer.
by kyrpav
Sat Feb 12, 2022 2:03 pm
Forum: ESP-IDF
Topic: pass arg to High resolution timer callback
Replies: 1
Views: 1323

pass arg to High resolution timer callback

Hi i have a high resolution timer set like this. esp_timer_handle_t timerHandle; const esp_timer_create_args_t timerArgs={ .callback = onTimer, .arg = NULL, .dispatch_method = ESP_TIMER_TASK, .name = "Measurement", .skip_unhandled_events = false }; esp_timer_create(&timerArgs,&timerHandle); I can us...
by kyrpav
Fri Feb 11, 2022 6:39 am
Forum: ESP-IDF
Topic: timer in a class
Replies: 1
Views: 1572

timer in a class

Is there a proper way to initialise a timer inside a class? I am trying to do a c++ project and i want to user the high resolution timer. The class is about XH711 adc 24 bit. I have an init function where i do everything needed for the adc and i want in there to init also the timer by seting the esp...
by kyrpav
Sun Feb 06, 2022 9:37 pm
Forum: Hardware
Topic: MCPWM - Nema17 - Frequency and Motor Temperature
Replies: 0
Views: 2150

MCPWM - Nema17 - Frequency and Motor Temperature

Hi i am trying to use MCPWM to move a nema 17 motor. I am using a TB6560 stepper motor driver and it setup is limmiting current to 1.5A and i am using 1/8 Microsteps. Motors is classic one 1.8degrees per step and 200steps per revolution. I am using the mcpwm_unit_0 and timer_0 and at mcpwm0A i am se...
by kyrpav
Wed Feb 02, 2022 12:24 pm
Forum: Hardware
Topic: ILI9481 start working issue
Replies: 1
Views: 3121

ILI9481 start working issue

Hi i am new to esp32 and completely new to lcds. i have bought a 3.5 inches lcd with ILI9481 with FT5436 for touch from aliexpress https://www.aliexpress.com/item/1005001315343725.html?spm=a2g0o.productlist.0.0.736d2fd5bLUjGK&algo_pvid=5ec34f24-d40f-4e6d-9fee-f542c38e8f93&algo_exp_id=5ec34f24-d40f-4...