This is the advanced sound box that can make your voice turn into any beat
Project tutorial by Ultra sonic 5 flame
This is taking care of household performance to the next level
by Ultra Sonic Flame 5
This is slime made by Team Magic Robot it helps Children under 15 to deal with stress and also have fun
by Ultra Sonic 5 Flame
You need one semaphore for each resource you are giving indepentldent access to. That is one for each serial port.
The Arduino loop() function is still available when using the FreeRTOS library in the Arduino IDE. The only thing to be aware of is that it MUST NOT contain any delay or blocking code. It is run by the FreeRTOS idle task, which is used when no other task is scheduled to run.
If you put blocking code, like waiting for a character, or key stroke, or some external event, or even a timer, in the loop() function, particularly if it disables interrupts, then the FreeRTOS scheduler won't be run again. This is bad.
But, you can put your code in the loop() function, as long as you remember that it will be run at the lowest priority, when no other task can be scheduled to run.
There's not much I can say directly, except to comment that I built (potentially) a similar system using a RTC and temperature sensor for input, and some servos and a display for output some time ago.
I have some code in my Retrograde Clock repository, which supports the Retrograde Clock described in the posts. Pehaps it will be useful for you to have a look at it and take it as an example?
Or connect with your social account:
New here? Create an account