I'm new to pyserial and python, i'm working with a project in which i have to move a motor (stepper) every 5 min.
i'm using a raspberry pi to control the data measurement and an arduino to control the motor. I used pyserial and got them to talk but only to send or receive data, i need them to do both in the same code.
First i'm sending a message to the arduino for it to move the motor, and i want that, when the motor stops, the arduino sends an "ok" to the raspberry so I have reports of the motor movements.
The raspberry sends data, the arduino receives the data but when i tried to send the "ok" back to my rpi nothing happens. Can you help me please!! i've read a lot of information but i wasn't able to find an answer!!