# Can this arduino project easily be ported to free rtos

**URL:** <https://forums.freertos.org/t/can-this-arduino-project-easily-be-ported-to-free-rtos/23792>\
**Category:** Kernel\
**Created:** [August 25, 2025, 1:49pm UTC](https://forums.freertos.org/t/can-this-arduino-project-easily-be-ported-to-free-rtos/23792 "2025-08-25T13:49:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RoelofW](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@RoelofW](https://forums.freertos.org/u/RoelofW)\
**Post date:** [August 25, 2025, 1:49pm UTC](https://forums.freertos.org/t/can-this-arduino-project-easily-be-ported-to-free-rtos/23792/1 "2025-08-25T13:49:58Z")

</div>

Hello,

I working on this arduino project : [https://wokwi.com/projects/438929777261353985](https://wokwi.com/projects/438929777261353985)

Now I wonder can this easily be done with freertos on a esp32  
And how would you divide this project in tasks ?

---

<div class="post-metadata">

**Author:** ![tony-josi-aws](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tony-josi-aws](https://forums.freertos.org/u/tony-josi-aws)\
**Post date:** [August 26, 2025, 3:43am UTC](https://forums.freertos.org/t/can-this-arduino-project-easily-be-ported-to-free-rtos/23792/2 "2025-08-26T03:43:31Z")

</div>

Yes, but you will have to do the necessary hardware and software configuration/initialization for the specific components that are available on ESP32 with respect to Arduino which is independant of RTOS.

> And how would you divide this project in tasks ?

It depends on what your project is doing; if you can elaborate your requirements, that will help to provide better answers.

---

<div class="post-metadata">

**Author:** ![RoelofW](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@RoelofW](https://forums.freertos.org/u/RoelofW)\
**Post date:** [August 26, 2025, 5:19am UTC](https://forums.freertos.org/t/can-this-arduino-project-easily-be-ported-to-free-rtos/23792/3 "2025-08-26T05:19:43Z")

</div>

1. use a led to show a menu
2. depending on the choice , show a effect on the led ring.
3. you can use the buttons to show the next menu item, last menu item or choose a menu item.

---

<div class="post-metadata">

**Author:** ![kstribrn](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/kstribrn/32/6511_2.png) [@kstribrn](https://forums.freertos.org/u/kstribrn)\
**Post date:** [August 27, 2025, 4:33pm UTC](https://forums.freertos.org/t/can-this-arduino-project-easily-be-ported-to-free-rtos/23792/4 "2025-08-27T16:33:47Z")

</div>

I cannot rate this as easy or difficult. A lot of the challenges porting this to an ESP32 with FreeRTOS come down to familiarity. The more familiar with programming the ESP32 that you are the easier this port would be.

As for how to structure this project…

- I’d use ISRs for the three buttons (vorige, selecteer, volgende in your example). These buttons are pressed infrequently and could be structured to execute quickly so an ISR is a good fit. This will also make your buttons responsive.
- I’d use a high priority task FreeRTOS task to adjust the ring. This can be signaled (unblocked) by the button ISR. This task would largely be dormant as it sets the state of the ring and blocks. If you need flashing/blinking you could have this task periodically awaken by using a timer.
- I’d use a medium or low priority FreeRTOS task for the LCD display. This can afford to be a little less responsive and may do the most processing of you tasks.

Manipulating the I/O of the ESP32 will require some board specific knowledge. Espressif may also provide a library to simplify using the I/O. I would recommend checking for that.
