My next question is how is the Arduino required to interpret that message - just an English language explanation, please.
If this was my project I think I would be sending it like this <b,34> and using the 3rd example in Serial Input Basics to receive it, but at the moment I don't understand the purpose of the 'b'
...R
As other user said, it's python adding the b, i actually only wanted to send the number.
Arduino take that number, convert in an int and the use it to move the linear motor in that position.
The linear motor can extend up to 50 mm, so ,for simplicity, I divided this space in 50 possible position, and every time arduino receive a new position set a variable equal to the new received value.
Then a open loop controller (based on the time that the linear motor takes to do 1 mm) send a signal to two digital pin , making the motor extend or shorten based on the actual position and te position to be reached.
Inside the loop the function that update the estimated position of the linear motor is continuously called.