I am new to the Arduino world, but have some propeller chick (8 cores) experience. (FYI. I also asked the same question on the Arduino Forum.)
Am I asking too much from a single core processor?
I am using a Seeeduino XIAO which runs at 48MHz (SAMD21G18) to communicate to my TB6600 stepper motor driver. I am utilizing the
AccelStepper.h library. The motor is used in a continuous turning motion and I am pushing it to it’s speed limit with 1/4 steps using
Now I would like to add this VL53L0X Time-of-Flight (ToF) Laser Ranging Sensor as feedback loop into the mix. Is it recommended to dedicate the sensor communication task to another Seeeduino or can both codes be run simultaneously on just one core?
I had a look at Using FreeRTOS multi-tasking in Arduino - Arduino Project Hub but it looks like it adds an extra layer to the code.