Controlling servo with serial port

19 Oct 2019

Hi, im in two minds about how to controll a servo using putty and serial port. If i write 40 on the terminal, servo will rotate to 40 grades. How could i do it?

22 Oct 2019

Hi Pablo,

Mbed provides an API called RawSerial, which is easily used and should fit your idea.

Please refer to the documentation and sample code here.

https://os.mbed.com/docs/mbed-os/v5.14/apis/rawserial.html

Thanks,

Desmond