Hi everyone, I am using raspberry pi pico. I was using micropython and circuitpython but there was a problem with them so I decided to use arduino ide.
I want to use 2 RFID, 2 stepper , 2 load cell and 2 relay module same time. For example if two tag has been read from 2 RFID reader module, steppers need to work same time.
I was using like this :
await asyncio.gather(data_task0, data_task1)
With this code, I was doing multitasking. data_task0 and data_task1 is:
data=uart.read() #RFID is here
if data!= None:
measureweight()
runstepper()
time.sleep(1)
stopstepper()
relay.high()
time.sleep(1)
relay.low()
postdata #posting data to internet with ethernet module
So my question is, can I do all this things with millis() or should I need to find a way RTOS ? ( I am not expert of coding, today I am trying to make this with millis() but I couldn't do yet )